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.
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.
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
Check the new series here. th-cam.com/play/PLBiGKr76xSBCM6bZaddB-ieRYQAStN1yM.html github.com/akashdktyagi/test-automation-project-amazon-10may2024.git
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?
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 ?
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
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.
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
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.
Glad that you liked it.
Great explanation and demonstration. Thank you so much.
Glad it was helpful!
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.
very detailed and well explained tutorial. Thanku very much.
Thank you so much for you awesome and detailed explanation 👌
Glad that you like it.
Very Good session. Thanks a lot for sharing ..
Good explanation 👍
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
Check the new series here. th-cam.com/play/PLBiGKr76xSBCM6bZaddB-ieRYQAStN1yM.html
github.com/akashdktyagi/test-automation-project-amazon-10may2024.git
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?
You should use Serenity framerwork. Do not attempt to create a new FW.
Wondering why very few views on this vedio.... Awesome explanation with example sir! Thank you for sharing!!!
Glad that you liked it.
You can reach me out here: automationfraternity@gmail.com or admin@thedevopsclub.in
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 ?
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
Excellent explanation, those 2 dislikes might came from who doesn't understand English.
Glad that you liked it.
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.
This works when dependencies are adjusted- with io.cucumber. Thank you.
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