Hello!! I’m grateful to have found your page. I followed every step as given in this video and added my own url to check for login functionality and at the end for the Then step definition I used a print statement saying the user is logged in successfully and it works!!! I also gave the locators by using selectors hub. It works amazingly. Thank you for taking the time to make these videos. They have been really helpful.
Thanks a lot Raghav sir ! I dnt know how to thank you ! Your videos are very helpful ! I have manual experience but I was struggling with automation learning. And your videos are life saviour 🎉❤
Hi Raghav, I have situation like need to use two step definition class files steps in one feature file, is it possible to use in cucumber? Example: 1. I put one given statement in feature file 1 and it is mapped step definition class 1. 2. Now, I need to re-use same given statement in feature file 2 with refer to step definition file 1 and when, and, then statements are referred to step definition class 2?, Currently, when I attempted it's giving error. Could you please let me know is it possible that way? If no, is there any other way to handle this situation?
Hi Trilok, Yes, it is possible to use multiple step definition class files in a single feature file in Cucumber. You can do this by using the glue option in the @CucumberOptions annotation, and specifying the package names of the step definition classes. For example: E.g. @CucumberOptions(glue = {"package1", "package2"}) This will tell Cucumber to look for step definitions in both package1 and package2. Alternatively, you can use the Stepdefs annotation to specify the classes containing the step definitions. E.g. @Stepdefs class Steps1 { // step definitions } @Stepdefs class Steps2 { // step definitions } In this way, Cucumber will pick up the step definition methods from both class files
Hi Sumithra, as per the definition of some functions, it is required to capture the exception, You can do that by either adding try and catch block or add throws declaration
Hi...without creating test runner class i try to run as cucumber feature but the unimplemented steps does not shows in the console window instead it shows an error sessionnotcreated. i already downloaded the updated chromedriver but it automatically takes the old chromedriver version. how can i handle this error?
Suganya Let's troubleshoot this: Unimplemented Steps Double-check glue code and feature file location Verify annotations if using a runner class SessionNotCreated Error Check Chrome version and download the exact matching ChromeDriver Replace the old ChromeDriver with the new one Optionally, set the system property to point to the new ChromeDriver Running without Test Runner Try creating a basic runner class temporarily Check your IDE's Cucumber configuration Additional Tips Clear project and rebuild Check dependencies Pay close attention to console output for more clues -
@@RaghavPal thanks for ur reply ..actually after creating the runner class the unimplemented steps are shown in the console...but only with the feature file sessionNotCreated error come. Because it takes the old version of chrome driver... i know if I declare the system. Property it will work but without this..I dont know how to change this..
Hi Sir, Using the Cucumber ,I had created the feature file ,stepDefination and Testrunner classes.When the testrunner class is executed the print statements of stepDefination are getting printed on console.but in the Junit output console given,when,then & and steps/statements are not displayedAlso the link is not created to statements of feature file to stepdefinations
Hi sir! I'm learning Software testing your videos are useful to learn cucumber I have an error like in code 'driver.manage().timeouts().implicitlywait(40,TimeUnit.SECONDS); When I type this code the implicitlywait is been striked out automatically and the program is not running as properly can you please tell any alternative code !!! Thank you sir!
Suvasri The `implicitlyWait()` method using `TimeUnit` is deprecated in Selenium. Here's the updated alternative: 1. Use `Duration` from `java.time`: ```java driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(40)); ``` 2. Update your Selenium version to the latest one if it's outdated. - You can check for updates in your build tool (e.g., Maven or Gradle). This change aligns with the newer Selenium versions (4.x and above) -
Hi Raghav, I could not able to use test project as they discontinued their services long back. Is there are any alternative similar to testproject for testing the work just like you did for that login. I'm new to the world of testing and trying to figure it out. please help me out
Andrew If you're looking for alternatives to TestProject for testing, there are several options available. Let's explore some popular ones: 1. Selenium 2. Playwright 3. Cypress 4. Katalon Studio 5. Tricentis Testim 6. Robot Framework 7. Virtuoso 8. Rapise Remember that each tool has its strengths and weaknesses, so choose the one that best fits your project requirements and your team's expertise. Happy testing
Hi, what actually is a test here you just click elements, how you will check if a user is navigated to that logged in URL that should be an actual test or what is proper navigation?
Hello Raghav, first thank you for your helpful videos, but I forced an issue when trying to run testrunner, I didn't find "Run as Junit" option, could you please help me in that?
Hi Nada The `Run as Junit` option is not available by default in Eclipse when you are using Selenium Cucumber. You need to add the Cucumber JUnit runner to your project in order to see the option. To do this, follow these steps: 1. In Eclipse, right-click on your project and select **Properties**. 2. In the **Properties** dialog box, select the **Run/Debug** tab. 3. In the **JUnit** section, click on the **Add External JUnit Library** button. 4. In the **Add External JUnit Library** dialog box, browse to the directory where the Cucumber JUnit runner is located. The default location of the Cucumber JUnit runner is `C:\Users\\.m2 epository\io\cucumber\cucumber-junit\\cucumber-junit-.jar`. 5. Click on the **Open** button. 6. Click on the **Apply** button. 7. Click on the **OK** button. Once you have added the Cucumber JUnit runner to your project, you should see the `Run as Junit` option in the context menu for your test runner class. Here are the steps in detail: 1. Right-click on the `TestRunner` class in your project. 2. Select the **Run as** option. 3. Select the **JUnit Test** option. Your test runner should now run as a JUnit test. I hope this helps
Hi Raghav, I am getting an exception "no such element" in the login page when the control comes to 'Username' field. I tried WebDriver Wait (elementToBeClickable) and ran the test. This time I got the exception "timeout". I tried increasing the wait time. But, it doesn't work. Please help me on this.
Hi Swarnanika, When I created this video, the latest was ver 3.x, You should be able to use any version 3.x. In case you like to use the latest ver, can try with that, there may be some changes you may have to do, I have a playlist for Selenium 4 too - automationstepbystep.com/
Hi sir, Just a question Why are you writing same code in all stepdefinition to open the browser?? 1 step file is enough and all other step file can inherit right?
Hello Raghav , can you please tell me what is this error "You are using deprecated Main class. Please use io.cucumber.core.cli.Main" and even if i provide the proper path in runnerTest why am i getting "main" java.lang.IllegalArgumentException
Hi Upasana, have you updated the cucumber library ver in pom.xml Also check if you are using the correct library. Check this stackoverflow.com/questions/57177823/exception-in-thread-main-after-updating-cucumber-version
@@RaghavPalSir i have followed your tutorials of jmeter for web . But i have faced some issues like i cannot test of those page after the login page. Token pass issue
Hi Raghav, Thanks again for this tutorial. I have setup Maven Project, with Cucumber, JUNIT and html reporting. Moving forward, I need to run the login test script every morning and if login fails, it should send email to the Developer. Do I have to set up Jenkins for that or TestNG will be enough for this?
Hi Raghav, Do you have a video or documentation where you cover all the selenium webdriver Action elements code, Navigate to page, Accept alert, dismiss alert, verify elements ect...
Hello Raghav Sir, Is there a way if the chromedriver.exe is not available to us due to company privacy policy and still we are able to run explained test scenarios. Company policy does not allow to download any such driver of any of the browser. Please let me know if there is an alternative.
Hi Amit, you can use webdriver manager, it takes care of the browser drivers internally - ruclips.net/video/8vWTgyoG0nc/видео.html However, behind the scene it also downloads the exe, so not sure if that will work for you. The best bet will be to ask your network team to get the exe file for you once and then you can continue
@@RaghavPal Yes, I got chrome driver from network team. Ok one more question. Consider a scenario: Like I do not want to open browser and navigate to any site via ChromeDriver. This part I want to do manually on chrome. Now, based on the site which I have opened manually, I want to do some validations over there. Is this possible via framework which we are learning through your videos. Or is it mandatory to open browser page via ChromeDriver and then only able to proceed with further stuff.
Thanks for this perfect tutorial. Why "implicitlyWait" appears with strikethrough in my code - driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS)? Can you please help?
Hello I want to thank you for all your videos . I have one question can we check if the user can login or not in the last step by showing a valid message if the user connect successfullyor a message that contains that the the connection has failed. Thank you again.
driver.close() closes the current browser window in focus whereas driver.quit() will close the whole browser session close() - Close the current window, quitting the browser if it's the last window currently open. quit() - Quits this driver, closing every associated window. seleniumhq.github.io/selenium/docs/api/java/ References: artoftesting.com/automationTesting/difference-between-driver-close-and-driver-quit-command-in-selenium-webdriver.html stackoverflow.com/questions/15067107/difference-between-webdriver-dispose-close-and-quit www.quora.com/What-is-the-difference-between-close-and-quit
@@RaghavPal I would love to watch it, did you have it? Also you comment you'd explain later how to run a particular definition for a particular feature file, would love to see that too! Very well done and helpful videos, thank you!
@@RaghavPal Sorry for chasing this again. Do you got a chance to create a video with an example for the above question? It will help me a lot to avoid developing multiple methods which do the same work. Thanks!!!
Hi Raghav, for Cucumber java BDD framework junit it the default, so if we use testng because of more feature we get, do you think this is good practice, or can you refer any tutorial for BDD test run with testng?
just the file may not help here Keerthi, will need to check your setup and flow, I may not get enough time for that, Best will be to check the steps again and also refer some online examples
Hello , I am wondering why you don't add chromeDriver to PATH (Environment Variable) then do SetUp() method where it includes : WebDriver driver = new ChromeDriver(); i think that would be less code . Plus using data driven here with the examples to pass test multiple usernames and passwords would be very cool to see in the course. Thank you for the Cucumber Series it's very helpful
@Automation Step by Step...Hi Raghav Thanks for.sharing your knowledge. PLEASE.suggest How to Reuse Steps defined in one Feature file to other Feature File. In Katalon Studio..I have taken your udemy course on Katalon Studio .So if possible please add these things there also.
Iam getting this error while running the feature file can you please provide any solution You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Gnaneshwar The error you're encountering is due to the deprecation of the Main class in Cucumber. The Main class has been moved to io.cucumber.core.cli.Main in newer versions of Cucumber. Solution Steps: To resolve this issue, you need to update your runner class to use the new Main class. Here's an example of how to do it: Before: java import cucumber.api.cli.Main; public class TestRunner { public static void main(String[] args) { Main.main(args); } } After: java import io.cucumber.core.cli.Main; public class TestRunner { public static void main(String[] args) { Main.main(args); } } Explanation: In the updated code, we've replaced the deprecated cucumber.api.cli.Main with the new io.cucumber.core.cli.Main. This should resolve the error you're seeing. Additional Tip: Make sure you're using the latest version of Cucumber in your project. You can check your pom.xml file (if you're using Maven) or your build.gradle file (if you're using Gradle) to ensure you're using the latest version -
This is the best channel to learn BDD and Selenium with Java. Thanks so much for the effort Mr. Raghav Pal
You are most welcome Abrhaley
Hello!! I’m grateful to have found your page. I followed every step as given in this video and added my own url to check for login functionality and at the end for the Then step definition I used a print statement saying the user is logged in successfully and it works!!! I also gave the locators by using selectors hub. It works amazingly. Thank you for taking the time to make these videos. They have been really helpful.
Glad it was helpful Leela
Your videos have made learning things easy. Very well explained and very easy to implement.
Glad to hear that Sahil
Lots of love and respect from an Afghan American. Salute to you Raghav sir.
Thanks for the kind words Ahmad. Humbled
Great tutorial, I love the step by step approach from scratch. Thanks a lot!
You're very welcome!
Thanks a lot Raghav sir ! I dnt know how to thank you ! Your videos are very helpful !
I have manual experience but I was struggling with automation learning. And your videos are life saviour 🎉❤
Most welcome Rachana.. keep learning n do share your knowledge with others..
Thanks for this video. Very nicely explained. Thanks again Raghav!!!
Most welcome Mayank
Better channel about automation.
thank you very much for the teachings.
You are welcome
The best tutorial i have ever seen
Thanks Haidar
Very Nice explanation,Thank you Raghav Sir!
You're most welcome
Awesome my friend. Thank you very much for share knowledge.
Thanks for watching Rodrigo
Hello Raghav very well explained keep up Raghav
Thanks a lot Imtiaz
Hi Raghav Sir, Thanks a lot for sharing this info/video with us... :-).
My pleasure Madiraju
Hi Raghav,
I have situation like need to use two step definition class files steps in one feature file, is it possible to use in cucumber?
Example:
1. I put one given statement in feature file 1 and it is mapped step definition class 1.
2. Now, I need to re-use same given statement in feature file 2 with refer to step definition file 1 and when, and, then statements are referred to step definition class 2?,
Currently, when I attempted it's giving error.
Could you please let me know is it possible that way?
If no, is there any other way to handle this situation?
Hi Trilok,
Yes, it is possible to use multiple step definition class files in a single feature file in Cucumber. You can do this by using the glue option in the @CucumberOptions annotation, and specifying the package names of the step definition classes. For example:
E.g.
@CucumberOptions(glue = {"package1", "package2"})
This will tell Cucumber to look for step definitions in both package1 and package2.
Alternatively, you can use the Stepdefs annotation to specify the classes containing the step definitions.
E.g.
@Stepdefs
class Steps1 {
// step definitions
}
@Stepdefs
class Steps2 {
// step definitions
}
In this way, Cucumber will pick up the step definition methods from both class files
Thank you so much raghav for your time and patience ❤️
Why do we have to add throws declaration after we add the Thread.sleep method in any function??
Hi Sumithra, as per the definition of some functions, it is required to capture the exception, You can do that by either adding try and catch block or add throws declaration
@@RaghavPal
thanks Raghav for the explanation.
Top Notch Content ......♥
Thanks a lot
Another great class!!!
Thanks again!
Really helpful thanks for the clear explanation
Most welcome Harika
Thanks a lot for creating this playlist!
if you ever have the time would you make a video on how to debug in java?
I will do Abdul, you can check exception handling video here - ruclips.net/video/iSdnc1BAThI/видео.html
Hi...without creating test runner class i try to run as cucumber feature but the unimplemented steps does not shows in the console window instead it shows an error sessionnotcreated. i already downloaded the updated chromedriver but it automatically takes the old chromedriver version. how can i handle this error?
Suganya
Let's troubleshoot this:
Unimplemented Steps
Double-check glue code and feature file location
Verify annotations if using a runner class
SessionNotCreated Error
Check Chrome version and download the exact matching ChromeDriver
Replace the old ChromeDriver with the new one
Optionally, set the system property to point to the new ChromeDriver
Running without Test Runner
Try creating a basic runner class temporarily
Check your IDE's Cucumber configuration
Additional Tips
Clear project and rebuild
Check dependencies
Pay close attention to console output for more clues
-
@@RaghavPal thanks for ur reply ..actually after creating the runner class the unimplemented steps are shown in the console...but only with the feature file sessionNotCreated error come. Because it takes the old version of chrome driver... i know if I declare the system. Property it will work but without this..I dont know how to change this..
check some online examples and try to follow
Perfect. Thank you for your tutorials
Glad you like them!
thanks by your clear explanations
Most welcome
Hi Sir,
Using the Cucumber ,I had created the feature file ,stepDefination and Testrunner classes.When the testrunner class is executed the print statements of stepDefination are getting printed on console.but in the Junit output console given,when,then & and steps/statements are not displayedAlso the link is not created to statements of feature file to stepdefinations
Hi Pothukanuri, what does the logs say. Try to check again with the video and do the setup
Can you tell how to resolve this exception "java.net.SocketException"
will need to check the detailed logs
Hi sir! I'm learning Software testing your videos are useful to learn cucumber I have an error like in code
'driver.manage().timeouts().implicitlywait(40,TimeUnit.SECONDS);
When I type this code the implicitlywait is been striked out automatically and the program is not running as properly can you please tell any alternative code !!!
Thank you sir!
Suvasri
The `implicitlyWait()` method using `TimeUnit` is deprecated in Selenium. Here's the updated alternative:
1. Use `Duration` from `java.time`:
```java
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(40));
```
2. Update your Selenium version to the latest one if it's outdated.
- You can check for updates in your build tool (e.g., Maven or Gradle).
This change aligns with the newer Selenium versions (4.x and above)
-
how can I display the report nicly in cucumber graphic?
Hi Haidar, you can use several tools for this, like extent reports, cucumber reporting, etc
cucumber.io/docs/cucumber/reporting/
Hi Raghav, I could not able to use test project as they discontinued their services long back. Is there are any alternative similar to testproject for testing the work just like you did for that login. I'm new to the world of testing and trying to figure it out. please help me out
Andrew
If you're looking for alternatives to TestProject for testing, there are several options available. Let's explore some popular ones:
1. Selenium
2. Playwright
3. Cypress
4. Katalon Studio
5. Tricentis Testim
6. Robot Framework
7. Virtuoso
8. Rapise
Remember that each tool has its strengths and weaknesses, so choose the one that best fits your project requirements and your team's expertise.
Happy testing
Hi, what actually is a test here you just click elements, how you will check if a user is navigated to that logged in URL that should be an actual test or what is proper navigation?
Hi, we will add some checks and assertions or find some message or element on the home page, I may have added that in next videos
Thank you for Teaching.
You are very welcome
after colon remove still not 0 scenrio, 0 steps(can u help how to fix)
Will need more details. What are the steps you didn't if you have any logs or error messages
Hello Raghav, first thank you for your helpful videos, but I forced an issue when trying to run testrunner, I didn't find "Run as Junit" option, could you please help me in that?
Hi Nada
The `Run as Junit` option is not available by default in Eclipse when you are using Selenium Cucumber. You need to add the Cucumber JUnit runner to your project in order to see the option.
To do this, follow these steps:
1. In Eclipse, right-click on your project and select **Properties**.
2. In the **Properties** dialog box, select the **Run/Debug** tab.
3. In the **JUnit** section, click on the **Add External JUnit Library** button.
4. In the **Add External JUnit Library** dialog box, browse to the directory where the Cucumber JUnit runner is located. The default location of the Cucumber JUnit runner is `C:\Users\\.m2
epository\io\cucumber\cucumber-junit\\cucumber-junit-.jar`.
5. Click on the **Open** button.
6. Click on the **Apply** button.
7. Click on the **OK** button.
Once you have added the Cucumber JUnit runner to your project, you should see the `Run as Junit` option in the context menu for your test runner class.
Here are the steps in detail:
1. Right-click on the `TestRunner` class in your project.
2. Select the **Run as** option.
3. Select the **JUnit Test** option.
Your test runner should now run as a JUnit test.
I hope this helps
Thanks you for your great videos
Most welcome
Hi Raghav,
I am getting an exception "no such element" in the login page when the control comes to 'Username' field. I tried WebDriver Wait (elementToBeClickable) and ran the test. This time I got the exception "timeout". I tried increasing the wait time. But, it doesn't work.
Please help me on this.
Hi Ishwarya
Looks like the locator you are using is not able to find any object. Pls check the locators again and try changing
Thanks,
Raghav
which version we can use for this selenium for this
Hi Swarnanika, When I created this video, the latest was ver 3.x, You should be able to use any version 3.x. In case you like to use the latest ver, can try with that, there may be some changes you may have to do, I have a playlist for Selenium 4 too - automationstepbystep.com/
do we need to create number of runner classes if many feature files are there???
Hi Sonali, no, you can provide the feature files OR folder location in test runner file
Hi sir,
Just a question
Why are you writing same code in all stepdefinition to open the browser??
1 step file is enough and all other step file can inherit right?
Yes, can do that, Can check some online examples. This was just to begin with
@@RaghavPal thanks for the reply sir
Sir, can you please explain the statement Webdriver driver=null; why did we write null there
Hi Saikiran, so that we are just declaring the object driver but not initialising it to any value. This we can do later in the functions as shown
@@RaghavPal
Thanks for the reply sir..
why did you not create testRunner file ?
I might have shown in upcoming videos Preeti, pls check
Hello Raghav , can you please tell me what is this error
"You are using deprecated Main class. Please use io.cucumber.core.cli.Main"
and even if i provide the proper path in runnerTest why am i getting
"main" java.lang.IllegalArgumentException
Hi Upasana, have you updated the cucumber library ver in pom.xml
Also check if you are using the correct library. Check this
stackoverflow.com/questions/57177823/exception-in-thread-main-after-updating-cucumber-version
Suggest me which tool is best for performance testing of a mobile social app and tutorials?
Hi Muhammad, you can first check with JMeter.
@@RaghavPalSir i have followed your tutorials of jmeter for web .
But i have faced some issues like i cannot test of those page after the login page. Token pass issue
@@RaghavPal and plz give me the link of helping material for jmeter for mobile app
You can find in JMeter playlist here - automationstepbystep.com/
Hi Raghav, Thanks again for this tutorial.
I have setup Maven Project, with Cucumber, JUNIT and html reporting.
Moving forward, I need to run the login test script every morning and if login fails, it should send email to the Developer.
Do I have to set up Jenkins for that or TestNG will be enough for this?
Hi Mushfiqua, I doubt if TestNG can do that for you, You will need Jenkins for some scheduling system
Hi Raghav, Do you have a video or documentation where you cover all the selenium webdriver Action elements code, Navigate to page, Accept alert, dismiss alert, verify elements ect...
Hi, I have some videos, can check here - automationstepbystep.com/
Is there any video of yours related to Debugging, selenium with c sharp using BDD framework
Not yet on C sharp. Can find all here - automationstepbystep.com
Hello Raghav Sir, Is there a way if the chromedriver.exe is not available to us due to company privacy policy and still we are able to run explained test scenarios. Company policy does not allow to download any such driver of any of the browser. Please let me know if there is an alternative.
Hi Amit, you can use webdriver manager, it takes care of the browser drivers internally - ruclips.net/video/8vWTgyoG0nc/видео.html
However, behind the scene it also downloads the exe, so not sure if that will work for you. The best bet will be to ask your network team to get the exe file for you once and then you can continue
@@RaghavPal Thank you for inputs. Same issue, it does not allow it to download due to access restrictions.
Hmm as I said, will need to take help from your networks team
@@RaghavPal Yes, I got chrome driver from network team. Ok one more question.
Consider a scenario:
Like I do not want to open browser and navigate to any site via ChromeDriver. This part I want to do manually on chrome. Now, based on the site which I have opened manually, I want to do some validations over there. Is this possible via framework which we are learning through your videos.
Or is it mandatory to open browser page via ChromeDriver and then only able to proceed with further stuff.
@@AmitKumar-pf9io Open Browser headless mode. Correct me Raghav if I said wrong Ans
very well explained...
Thank you so much Sonali
Hi Raghav, Please make complete video tutorial available for cucumber.
Will do soon
Nice session
Thanks for watching Suchi
I am getting error for the step 1 browser open...
What is the error Monali, pls check the setup again
very interesting keep going bro
Thank you, I will
I am getting as couldnot load main class.what i need to do
will need to check details
Thanks for this perfect tutorial. Why "implicitlyWait" appears with strikethrough in my code - driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS)? Can you please help?
Hi Chirag, if you are using latest selenium library you will need to say
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));
@@RaghavPal Thanks Raghav for your prompt response. This worked .
@@RaghavPal hi sir .
Sir this is also not working .It is showing method has been deprecated
Hello I want to thank you for all your videos .
I have one question can we check if the user can login or not in the last step by showing a valid message if the user connect successfullyor a message that contains that the the connection has failed.
Thank you again.
Yes, we can do it Kadouri
What's the difference between driver.close() and driver.quit() ?
driver.close() closes the current browser window in focus whereas driver.quit() will close the whole browser session
close() - Close the current window, quitting the browser if it's the last window currently open.
quit() - Quits this driver, closing every associated window.
seleniumhq.github.io/selenium/docs/api/java/
References:
artoftesting.com/automationTesting/difference-between-driver-close-and-driver-quit-command-in-selenium-webdriver.html
stackoverflow.com/questions/15067107/difference-between-webdriver-dispose-close-and-quit
www.quora.com/What-is-the-difference-between-close-and-quit
@@RaghavPal Thanks Raghav for fast reply.
Hi Raghav, How to reuse the same method for different feature file. Could you please explain that as well. Thanks!!!
Example : Brwoser iss Oopen
I will plan a session Ganeshan
Thanks@@RaghavPal Looking forward to see the session number as 13
Hi Raghav, any updates on my ask. Thanks in advance.
@@RaghavPal I would love to watch it, did you have it? Also you comment you'd explain later how to run a particular definition for a particular feature file, would love to see that too! Very well done and helpful videos, thank you!
@@RaghavPal Sorry for chasing this again. Do you got a chance to create a video with an example for the above question? It will help me a lot to avoid developing multiple methods which do the same work. Thanks!!!
Hi Raghav, for Cucumber java BDD framework junit it the default, so if we use testng because of more feature we get, do you think this is good practice, or can you refer any tutorial for BDD test run with testng?
Yes, TestNG is more functional testing fw
Io. Cucumber. Java. PendingEXception
How to resolve this issue? Help
Hi Keerthi, looks like all your steps are not implemented with a step definition
@@RaghavPal sir, can u plz give your mail I'd so that I can send the file
just the file may not help here Keerthi, will need to check your setup and flow, I may not get enough time for that, Best will be to check the steps again and also refer some online examples
nice video keep uploading
Thank you, I will Amit
Hello ,
I am wondering why you don't add chromeDriver to PATH (Environment Variable)
then do SetUp() method where it includes :
WebDriver driver = new ChromeDriver();
i think that would be less code .
Plus using data driven here with the examples to pass test multiple usernames and passwords would be very cool to see in the course.
Thank you for the Cucumber Series it's very helpful
Great suggestion. Will check on this
By creating the cucumber framework google data browser n then normal browser opens
Hi Danish, pls check your script again, also see when happens when you run the next step, does it fail, in that case can check logs
Nice Tutorial !!!!!
Thanks Hari
website url is not working Raghav
which one Ajay.. can use any demo site for practice
Sir can we implement this using vscode as well. Any disadvantages?
You can,
@@RaghavPal thank u sir
How can I contact you? I have some requirements.
Jayesh.. you can let me know here.. it's the best and fastest way
where did you get this "user.dir"
it is default property
How do you check if Scenario failed ? @After step
you can use assertions or listeners
@@RaghavPal I'm using false but when assertion fails the build maven build still passes. Pleases advise, thank you.
How to fail a build when assertion fails
will check the details
@@RaghavPal did you get a chance to figure out how to fail the build if testcase fails ?
@Automation Step by Step...Hi Raghav Thanks for.sharing your knowledge. PLEASE.suggest How to Reuse Steps defined in one Feature file to other Feature File. In Katalon Studio..I have taken your udemy course on Katalon Studio .So if possible please add these things there also.
Hi Shashikant, sure, I will check and update
@@RaghavPal Thanks a lots.. I am sure I would get some advanve material on Katalon and Cucumber .Please give your time on udemy.
Hi Raghav,
Could you please share me the link of the Complete python tutorial
Hi Avanthi, you can find my tutorials here - automationstepbystep.com/
login link not working
Can try with any other demo app
Thank you
You're welcome Siddharth
Create a complete pdf file which contains all processes and end to end data of java selenium only wrt bdd
I will check on this
Iam getting this error while running the feature file can you please provide any solution You are using deprecated Main class. Please use io.cucumber.core.cli.Main
Gnaneshwar
The error you're encountering is due to the deprecation of the Main class in Cucumber. The Main class has been moved to io.cucumber.core.cli.Main in newer versions of Cucumber.
Solution Steps:
To resolve this issue, you need to update your runner class to use the new Main class. Here's an example of how to do it:
Before:
java
import cucumber.api.cli.Main;
public class TestRunner {
public static void main(String[] args) {
Main.main(args);
}
}
After:
java
import io.cucumber.core.cli.Main;
public class TestRunner {
public static void main(String[] args) {
Main.main(args);
}
}
Explanation:
In the updated code, we've replaced the deprecated cucumber.api.cli.Main with the new io.cucumber.core.cli.Main. This should resolve the error you're seeing.
Additional Tip:
Make sure you're using the latest version of Cucumber in your project. You can check your pom.xml file (if you're using Maven) or your build.gradle file (if you're using Gradle) to ensure you're using the latest version
-
@@RaghavPal Thanks raghav
java.lang.NullPointerException
at StepDefinitions.LoginSteps.user_enter_username_and_password(LoginSteps.java:45)
I got this error
i alredy checked Locator
also use Timeout but i dkn what happen pls help
Hi Nikhil, check the syntax and setup again with the video