Batch 8 Selenium with Cucumber-Dependency Injection Implementation-DI-TestContext-Part 8

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 25

  • @urvashigupta7291
    @urvashigupta7291 2 ปีที่แล้ว

    Thank you so much for providing detailed steps and an awesome explanation. After going through many blogs and videos finally I am able to run scenarios from multiple feature files.

  • @chazergayan540
    @chazergayan540 ปีที่แล้ว

    Great explanation and demonstration. Thank you so much.

  • @fenixselfhelp7177
    @fenixselfhelp7177 3 ปีที่แล้ว

    You are so awesome, that explanation was clear concise and cleared up my parallel testing issues. I appreciate it, and you, greatly. Thank you so much.

  • @arunchauhan891
    @arunchauhan891 4 ปีที่แล้ว

    very detailed and well explained tutorial. Thanku very much.

  • @madhavibisen6785
    @madhavibisen6785 2 ปีที่แล้ว

    Thank you so much for you awesome and detailed explanation 👌

  • @zaid_imtshaik4276
    @zaid_imtshaik4276 4 ปีที่แล้ว

    Very Good session. Thanks a lot for sharing ..

  • @shankumondal2881
    @shankumondal2881 3 ปีที่แล้ว

    Good explanation 👍

  • @FunnyVideos-we1bl
    @FunnyVideos-we1bl 2 ปีที่แล้ว

    Hi I am using the same but somehow my browser is launching twice for two different feature files. Not able to figure out why webdriver is initiating twice

    • @automationfraternity7332
      @automationfraternity7332  8 หลายเดือนก่อน

      Check the new series here. th-cam.com/play/PLBiGKr76xSBCM6bZaddB-ieRYQAStN1yM.html
      github.com/akashdktyagi/test-automation-project-amazon-10may2024.git

  • @deivas9874
    @deivas9874 3 ปีที่แล้ว

    Thank you so much for you detailed explanation. Two questions
    1. I am working on an application which has more than 20+ pages in this case would it be ideal to initialize the page objects in the TestContext class or individually in the Constructor of the stepDef class ?
    2. If we need to develop a framework for all three platforms (Android, ios, web) are there any suggestions from your side? 90% of things are exactly same (UI to Flows) in all platforms. Should we use different feature files or same feature file. Can we create an interface for driver will that practically work?

  • @mahalakshmikrishnadoss2272
    @mahalakshmikrishnadoss2272 3 ปีที่แล้ว

    Wondering why very few views on this vedio.... Awesome explanation with example sir! Thank you for sharing!!!

    • @automationfraternity7332
      @automationfraternity7332  ปีที่แล้ว

      Glad that you liked it.
      You can reach me out here: automationfraternity@gmail.com or admin@thedevopsclub.in

  • @rupalikatake9874
    @rupalikatake9874 4 ปีที่แล้ว

    Hi , Nice video. I tried the same flow but I have one question - In initializePageObject() method why you passing Sceanario as an parameter? What is purpose ?

    • @zhunzargulhane6741
      @zhunzargulhane6741 3 ปีที่แล้ว +1

      That scenario object is responsible for taking screenshot using scenario.attach() method for utility method getScreenShot and it will push that screenshot in extents report as well

  • @AnilChTechChannel
    @AnilChTechChannel 3 ปีที่แล้ว

    Excellent explanation, those 2 dislikes might came from who doesn't understand English.

  • @sarikakothakonda6569
    @sarikakothakonda6569 ปีที่แล้ว

    hi, geat content! i was trying this one on cucumber Appium integration project- im seeing " io.cucumber.core.exception.CucumberException: class stepdefinitions.Loginsteps doesn't have an empty constructor. If you need dependency injection, put cucumber-picocontainer on the classpath" this error - can you please advice.

    • @sarikakothakonda6569
      @sarikakothakonda6569 ปีที่แล้ว +1

      This works when dependencies are adjusted- with io.cucumber. Thank you.

  • @saikrishna3111
    @saikrishna3111 3 ปีที่แล้ว

    Scenario scn is causing null pointer exception in my step definition files,
    @Before
    public void SetUp(Scenario scn) throws Exception {
    this.scn = scn;

    driverManager = DriverFactory.getDriverManager(browser);
    WebDriver driver = driverManager.getDriver();
    driverManager.maximizeBrowser();
    driverManager.deleteAllCookies();
    testContextUI.setDriver(driver);
    //driverManager.navigateToDriver(devUrl);
    testContextUI.initializePageObjectClasses(driver, scn);
    }
    scn is working fine in the class where I have written the hooks, for other step defs it is throwing null pointer excep
    public class Other_LeadSteps {
    private static final Logger logger = LogManager.getLogger(Other_LeadSteps.class);
    TestContextUI testContextUI;
    Scenario scn;
    // Picocontainer is a constructor based DI
    public Other_LeadSteps(TestContextUI testContextUI) {
    this.testContextUI = testContextUI;
    }
    @When("^user clicks other checkbox$")
    public void user_clicks_other_checkbox() {
    testContextUI.getOther().clickElseTxtBox();
    // scn.write("User clicked Other checkbox");
    logger.info("User clicked Other checkbox");
    // System.out.println(scn.getName());
    }
    I am commenting scn.write() line since it is throwing null pointer. Can u pls help me here