Considering that this video is 3 years old, still valid. Very easy to follow and learn a lot. Thank you for not cutting the parts when something went wrong. Those parts were the key for me. I now know how to approach the defects and where to look!
@01:37 Creating a Maven Project @03:02 Adding dependencies to pom.xml @06:50 Creating Feature folder @07:05 Creating PageObjects package @07:34 Creating stepDefinition package @07:51 Creating Utility package @08:00 Creating Drivers folder @08:46 Copying browser drivers into Drivers folders @12:06 Creating feature file @12:23 Writing a scenario with Gherkin syntax with parameters @15:00 Creating page object class @19:35 Creating StepDefinition class @26:26 Changing parameters inside StepDefinition class @27:52 Creating WebDriver object inside StepDefinition class @28:15 Creating object for page object class inside StepDefinition class @29:04 Instantiate object of page object class inside StepDefinition class @29:40 | @50:50 Configuring the browser driver path inside StepDefinition class @32:23 Using get() method inside StepDefinition class @33:07 Calling credentials methods of page object class into StepDefinition class using parameters @35:21 Validating login page inside StepDefinition class using parameters and assertions @37:58 Calling logout method from page object class into StepDefinition class @39:33 Calling closing the browser method from page object class into StepDefinition class @41:05 Creating TestRunner package and its class. @47:51 Running the TestRunner class as Junit @48:34 Adding monochrome to TestRunner class and running as Junit @51:46 Viewing reports. @53:08 Data driven in Cucumber by adding one more scenario into feature file @57:13 Running the TestRunner class as Junit 01:01:42 Viewing reports.
Hello Meena, can you help me with one thing. After performing exactly this way m getting error as this.driver is null instead of declaring it as public. It only works aftr declaring it as static in stepdefinitions. Can you plz help me with this
OMG thank you so much for the videos you create! I finished Part 1 in 2 days with a lot of hard work, googling, even crying. since dependencies and our environments are different, but it was totally worth it. Looking forward to Part 2
Hey, can you pls tell how you have downloaded tools.jar file in pom.xml. Do we have to download the jar file and from where you have downloaded the jar file?
Thanks Pavan sir. You make learning so easy. I like the way you teach. I have left other RUclipsrs and come to you just because of your teaching style and valuable information you provide in a easy to understand manner.
To say that, it is very clear and step by step and that's why when we see your video clips we get confidence and we could think that we have lean it everything that always gives us confidence very much
Before I was following my institute lecture but not get the cucumber icon and I was worry about 4-5 days in cucumber but after follow this lecture I get the cucumber icon in eclipse ide.thanks......sir
The Cucumber+ Selenium part is very well explained. I was able to understand it very clearly. However, I think you should not use bad practices on other stuff, like using the Thread.sleep. You should have used 2 mins more and used a proper implicit or explicitWait. That way people that are starting by watching your video, would not use Thread.sleep which is a really bad thing to do. Other point is that method @page_Title_should_be, it should not check on the HTML source whether it had that text, it should be checking for the title, as the method signature indicates. Anyway, thank you for the video and i have learned the basics on how to use Cucumber + Selenium, which was my target :)
@@reddaboinavivek7494 well, thread.sleep is a static wait, that even if you could find an element in 1ms, its still going to wait the time you specified in the Thread.sleep. This makes your code slower than it has to be. On top of that, the built-in waits will give you a more meaningful error message and can be configured globally or per method or class on your code, so you don't need to even use any statement, it already knows it can wait for X amount of time before something times out.
Hi Pavan, Thanks for the videos. Do you share the documents used in the video with us or is it proprietary? If it isn't, could you please share the same here in comments section?
had an issue about the maven dependencies: cobertura code coverage the repository (cobertura code coverage) is dependent on tools.jar in the java folder but java version above 8 exclude that file or does not depend on that tools.jar file. Solution, use exclusion tag in the cobertura dependency tag
pls provide prerequisites for watching this video. I am in the middle stage of learning selenium. I couldn't understand what is annotations, page objects kind of things because I did not watch those videos, please provide path(order) for following your videos sir. your content is awesome by the way!
When I'm trying to run the TestRun Class as a Junit test, I'm getting following message on console : No features found at [classpath:testRunners] 0 Scenarios 0 Steps 0m0.225s The path of the feature file is correct in Cucumber options. Any help will be much appreciated.
Hi , If we want to use cucumber we need to use with any of the UI testing tools like selenium otherwise we can not test it right.? can you please clarify this.?
Sir, I am trying to run the feature file and facing the below issue .............Couldn't create a file output stream for 'target'. Make sure the file isn't a directory.
@@sumitpatil5791 I'm getting "cannot find symbol class CucumberOptions" error. I've added all the dependencies what have mentioned above. Please suggest.
I have implemented everything as you explained in this video..there is no compilation error, but my stepdefination file have 5 tests and not getting executed. The result is my all tests are getting skipped.... cucumber.runtime.junit.UndefinwdTrowable error. How to resolve this error?
Hi Pawan Sir, From where we get the dependency pom.xml file that you used in framework? I have seen in video that dependencies are already added in pom.xml file. Please share the link from where we can download the same pom.xml dependency file or we can create same in our project. Thanks
Am getting this error while doing cucumber . Cucumber.runtime.java.objectFactoryLoader loadsingleobjectfactory What does it mean sir.could u plz tell me sir.
hii sir in my pom .xml file showing error as"[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1] " how to solve this error , iam using same repository which is shown in video
Hi sir, I do not have the 'import cucumber.api.CucumberOptions' class import listed. On adding that I was getting "The import cucumber.api.CucumberOptions cannot be resolved" error. What should I do to get it?
"No backends were found. Please make sure you have a backend module on your CLASSPATH." after all doing i am getting above error where is the issue pls help
Dear Sir, Thanks for such a wonderful session. I am facing one issue here, do not get the test-output folder, instead get a file "test-ouput" which opens fine with only FF. Unable to understand the issue. Request you to help please.
Hello, I have not the drivers to add in drivers folder, would you please guild me how can add drivers in drivers folder because in the video you copy from an other project , I will really appreciated if you let me know.
I am not able to generate report html folder, only json and XML folder are generated. When trying to generate html folder, it's generating some unknown file. For html using plugin = {"pretty", "html:report-folder"}
Hi I would have loved you to use Intellij idea as the editor, I really enjoy the last session on that. Again I can not see tools.jar on my jdk and I am running into error, can you advise how to overcome this in my dependencies. Thanks for the great work.
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH. I am facing this issue . Can somebody help to tackle with it.
In feature file I am writing" plugin={"pretty", html:test-output} ", It is asking name instead of plugin, if I write name I am not getting output in Console, WHAT WILL I DO NOW
Hello, Sir, i am getting the following exception. CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
Hi Sir, Though I installed latest JDK version, tools.jar file is missing. Please help me how to get right JDK and tools.jar file Here is location of my JDK and lib version C:\Program Files\Java\jdk-17.0.1\lib
I am getting error-"You are using deprecated Main class. Please use io.cucumber.core.cli.Main" while running feature file. Please help me resolve this error.
when i run the Login.feature file , that code is not getting generated from Eclipse what should i do - i did not install natural as i am unable to install from Eclipse Market Place -- is that the reason
You are doing a good job sharing your knowledge, but you need to brush up on the what and whys of BDD. i was going along fine watching the video and then i saw your BDD example. Sorry to be so blunt, but that's a very bad example of how to write a BDD scenario. Its not a good idea to include multiple "Given", "When", "Then" in a test scenario. You can have multiple "And' included, but should not repeat "Given", "When", "Then" keywords.
how to add tools.jar i am getting error plz help sir com.sun tools 1.5.0 system C:\Program Files\Java\jdk-18.0.2\lib\tools.jar it shows tools.jar file is missing. how to resolve this issue sir?
Considering that this video is 3 years old, still valid. Very easy to follow and learn a lot. Thank you for not cutting the parts when something went wrong. Those parts were the key for me. I now know how to approach the defects and where to look!
@01:37 Creating a Maven Project
@03:02 Adding dependencies to pom.xml
@06:50 Creating Feature folder
@07:05 Creating PageObjects package
@07:34 Creating stepDefinition package
@07:51 Creating Utility package
@08:00 Creating Drivers folder
@08:46 Copying browser drivers into Drivers folders
@12:06 Creating feature file
@12:23 Writing a scenario with Gherkin syntax with parameters
@15:00 Creating page object class
@19:35 Creating StepDefinition class
@26:26 Changing parameters inside StepDefinition class
@27:52 Creating WebDriver object inside StepDefinition class
@28:15 Creating object for page object class inside StepDefinition class
@29:04 Instantiate object of page object class inside StepDefinition class
@29:40 | @50:50 Configuring the browser driver path inside StepDefinition class
@32:23 Using get() method inside StepDefinition class
@33:07 Calling credentials methods of page object class into StepDefinition class using parameters
@35:21 Validating login page inside StepDefinition class using parameters and assertions
@37:58 Calling logout method from page object class into StepDefinition class
@39:33 Calling closing the browser method from page object class into StepDefinition class
@41:05 Creating TestRunner package and its class.
@47:51 Running the TestRunner class as Junit
@48:34 Adding monochrome to TestRunner class and running as Junit
@51:46 Viewing reports.
@53:08 Data driven in Cucumber by adding one more scenario into feature file
@57:13 Running the TestRunner class as Junit
01:01:42 Viewing reports.
Thank u man
Great effort buudy Thanks !!
Thanqqqq
Thanks
wow! thats lot of efforts from your side! cheers!
Thanks for your detailed explanation. I followed the exact steps and results came out successfully.
detailed? he skipped how many steps 🤦
Hello Meena, can you help me with one thing. After performing exactly this way m getting error as this.driver is null instead of declaring it as public. It only works aftr declaring it as static in stepdefinitions. Can you plz help me with this
Getting confidence to learn any technology By watching your sessions
I didn't know how to write code in step Definition .This video solved my problem . Thanks very much Sir
You are most welcome
OMG thank you so much for the videos you create! I finished Part 1 in 2 days with a lot of hard work, googling, even crying. since dependencies and our environments are different, but it was totally worth it. Looking forward to Part 2
Hey, can you pls tell how you have downloaded tools.jar file in pom.xml. Do we have to download the jar file and from where you have downloaded the jar file?
Is the url still working ? nopcommerce site ?
A big salute to your knowledge and the way you explain concepts.Thank you for sharing your knowledge
My pleasure
Thanks Pavan sir. You make learning so easy. I like the way you teach. I have left other RUclipsrs and come to you just because of your teaching style and valuable information you provide in a easy to understand manner.
You are most welcome
The best automation class, best thing is no step is skipped !
Thanks
Thank you for the detailed explanation, I have completed the 4 videos for cucumber
You’re welcome
Thanks for the video on BDD With Cucumber sir so easy explained you are very good teacher.Thanks
Welcome
To say that, it is very clear and step by step and that's why when we see your video clips we get confidence and we could think that we have lean it everything that always gives us confidence very much
Thank you Sir. Great great great framework creation from scratch to great high level.
You are most welcome
THANKS FOR THE VIDEOS.....WE HAVE LEARNT SOMETHING AND GOT CLEARED THE MAXIMUM DOUBBTS
most welcome
I am reallly learning more from ur videos sir it’s very clean and clear no overlapping and to the point thank u sir
My pleasure
simply the superb I have ever seen...thanks ton
You are most welcome
Before I was following my institute lecture but not get the cucumber icon and I was worry about 4-5 days in cucumber but after follow this lecture I get the cucumber icon in eclipse ide.thanks......sir
Really well explained. You are my Guru!
Glad to hear that
You are awesome sir. Mind blowing teaching skills. Hats-off!!!!
Thanks
very well explained. Thank you Pavan sir
Welcome
This is very much underrated channel.. thank you so much.. when will other parts of the video are releasing on BDD??
This is helpful, thank you Pavanji.
welcome
Very useful and Valuable video.. !!! Thanks a lot bro .. !!!
You are welcome
I really love your lecture you a great 👍 teacher
My pleasure
Very clearly explained sir. Thank you
You are welcome
its very helpful sir.............thank u so much sir........👌👌👌👍👍👍🙏🙏🙏🙏🙏
Most welcome
The Cucumber+ Selenium part is very well explained. I was able to understand it very clearly.
However, I think you should not use bad practices on other stuff, like using the Thread.sleep. You should have used 2 mins more and used a proper implicit or explicitWait. That way people that are starting by watching your video, would not use Thread.sleep which is a really bad thing to do. Other point is that method @page_Title_should_be, it should not check on the HTML source whether it had that text, it should be checking for the title, as the method signature indicates.
Anyway, thank you for the video and i have learned the basics on how to use Cucumber + Selenium, which was my target :)
Can you explain why thread. Sleep is a bad practice?
@@reddaboinavivek7494 well, thread.sleep is a static wait, that even if you could find an element in 1ms, its still going to wait the time you specified in the Thread.sleep. This makes your code slower than it has to be. On top of that, the built-in waits will give you a more meaningful error message and can be configured globally or per method or class on your code, so you don't need to even use any statement, it already knows it can wait for X amount of time before something times out.
very good. thank you for sharing your knowledge. please do a video on rest assured
Thanks for sharing... waiting for the rest of the videos
Best videos for selenium....
Thanks
Hi Pavan,
Thanks for the videos. Do you share the documents used in the video with us or is it proprietary? If it isn't, could you please share the same here in comments section?
Great explanation sir 🎉🎉
Great explanation! thanks
welcome
Thank you sir. Your videos are really informative 🙏🙏🙏
Thanks very much, it is very impressive .
You’re welcome
you are amazing thank you so much !
You're welcome!
Thank you very much Sir!
Most welcome!
had an issue about the maven dependencies: cobertura code coverage
the repository (cobertura code coverage) is dependent on tools.jar in the java folder but java version above 8 exclude that file or does not depend on that tools.jar file.
Solution, use exclusion tag in the cobertura dependency tag
net.sourceforge.cobertura
cobertura
2.1.1
test
tools
com.sun
thanks kyo very much
Thank you very much pavan garu
Welcome
pls provide prerequisites for watching this video. I am in the middle stage of learning selenium. I couldn't understand what is annotations, page objects kind of things because I did not watch those videos, please provide path(order) for following your videos sir. your content is awesome by the way!
Such a great content
Thanks
When I'm trying to run the TestRun Class as a Junit test, I'm getting following message on console :
No features found at [classpath:testRunners]
0 Scenarios
0 Steps
0m0.225s
The path of the feature file is correct in Cucumber options.
Any help will be much appreciated.
Beautifully explained!
Thanks
Hi Sir,
while trying to setup run configurations, I'm getting "JRE not compatable with project.class file" error. Please help in resolving this
why is a method not defined for " page_title_should_be_something(String strArg1)" after clicking the Logout button
Hi , If we want to use cucumber we need to use with any of the UI testing tools like selenium otherwise we can not test it right.? can you please clarify this.?
Sir, I am trying to run the feature file and facing the below issue .............Couldn't create a file output stream for 'target'.
Make sure the file isn't a directory.
Thank you Pavan
Welcome
Thank you Bhai
Welcome
Hi, Mr.Pavan When I run the "TestRun" class I am getting an error method initialization error not found. Please advise How I can resolve this error.
add below dependencies in pom.xml
info.cukes
cucumber-java
1.2.5
info.cukes
cucumber-junit
1.2.5
info.cukes
cucumber-jvm-deps
1.0.5
provided
net.masterthought
cucumber-reporting
5.0.2
info.cukes
gherkin
2.12.2
provided
junit
junit
4.13
org.seleniumhq.selenium
selenium-java
3.141.59
@@sumitpatil5791
Thanks its working
just add the above and build the project again
@@sumitpatil5791 I'm getting "cannot find symbol class CucumberOptions" error. I've added all the dependencies what have mentioned above. Please suggest.
How can I add the com. sun tools jar file to Java .
What is the use of it.
How to add it in to my cucumber project
Pz tell me, step by step
Thank you!
Welcome
Good Video
Thanks
I have implemented everything as you explained in this video..there is no compilation error, but my stepdefination file have 5 tests and not getting executed. The result is my all tests are getting skipped.... cucumber.runtime.junit.UndefinwdTrowable error. How to resolve this error?
Hi Pawan Sir, From where we get the dependency pom.xml file that you used in framework? I have seen in video that dependencies are already added in pom.xml file. Please share the link from where we can download the same pom.xml dependency file or we can create same in our project.
Thanks
Am getting this error while doing cucumber .
Cucumber.runtime.java.objectFactoryLoader loadsingleobjectfactory
What does it mean sir.could u plz tell me sir.
hii sir in my pom .xml file showing error as"[ERROR] No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
"
how to solve this error , iam using same repository which is shown in video
Hi sir,
I do not have the 'import cucumber.api.CucumberOptions' class import listed. On adding that I was getting "The import cucumber.api.CucumberOptions cannot be resolved" error. What should I do to get it?
what is ldriver = rdriver. i don't understand
"No backends were found. Please make sure you have a backend module on your CLASSPATH."
after all doing i am getting above error
where is the issue pls help
Dear Sir, Thanks for such a wonderful session. I am facing one issue here, do not get the test-output folder, instead get a file "test-ouput" which opens fine with only FF. Unable to understand the issue. Request you to help please.
thank you so much
Welcome
In title it is mentioned bdd and video content for hybrid why sir
It's so clear understand from basic level. Could you please provide the document whatever is shared in the video
please see the snapshot shared and let me know the changes to be done to the TestRunner file
Are selenium framework tutorial available on your channel??
Thanks great
Welcome
Thank you for this tutorial. Can you please teach how to output xray json file format in the report instead of html? Thank you.
Hello, I have not the drivers to add in drivers folder, would you please guild me how can add drivers in drivers folder because in the video you copy from an other project , I will really appreciated if you let me know.
I am not able to generate report html folder, only json and XML folder are generated. When trying to generate html folder, it's generating some unknown file.
For html using plugin = {"pretty", "html:report-folder"}
bro I ma getting the same error How did u resolve
After executing the Test Runner file, test-output folder is not created and iam unable to find any html reports in that.
excellent
thanks
How to add this tools.jar dependency please explain more
Hi, did you figure it out? Ran into the same issue
Sir I'm getting plugin error,it saying "the attribute plugin is undefined for the annotation type Cucumber options"how to overcome it sir
Hi I would have loved you to use Intellij idea as the editor, I really enjoy the last session on that.
Again I can not see tools.jar on my jdk and I am running into error, can you advise how to overcome this in my dependencies. Thanks for the great work.
I'm getting the same issue..not sure how to resolve this..
@@1127swati found any solution ?
hi, you can use exact dependency version which mentioned here.
cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
I am facing this issue . Can somebody help to tackle with it.
In feature file I am writing" plugin={"pretty", html:test-output} ", It is asking name instead of plugin, if I write name I am not getting output in Console, WHAT WILL I DO NOW
Hello, Sir, i am getting the following exception.
CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.
Hello sir , Have you resolved this problem? I'm getting the same problem.
@@sridevi-jp3ic Not yet, request you tell me if you get the solution.
Class cannot be resolved to a type
Cucumber cannot be resolved to a type.................HOW CAN I RESOLVE THIS ISSUE
Please post video for latest BDD+Cucumber+TestNG+POM framework
Hi Sir , Good Session and Thankyou for the session , can you have a same kind of tutorial with Intellij using cucumber.
Good video, is there any link (eg. github) to access the code?
yes u can find github link on video discription from other videos.
Hi Sir, Though I installed latest JDK version, tools.jar file is missing. Please help me how to get right JDK and tools.jar file
Here is location of my JDK and lib version C:\Program Files\Java\jdk-17.0.1\lib
after i modified the "Run configuration" it resulted in only one method as output after running the Login.feature file
I have question how you get data from one scenario to another scenario in cucumber
Hi Pavan Sir
Please provide a platform to solve our doubts
I am getting error-"You are using deprecated Main class. Please use io.cucumber.core.cli.Main" while running feature file. Please help me resolve this error.
Did you find the solution ?
@@sheelak2023 yes
@@dineshkumarpanda7287hi bro I am also face these could you help me with solution
@@sreeram2386 give me some time, i will send my pom.xml file. You can try with that.
@@sreeram2386 i will upload my pom.xml file by eod today. You can use that and check whether your issue is resolved.
when i run the Login.feature file , that code is not getting generated from Eclipse what should i do - i did not install natural as i am unable to install from Eclipse Market Place -- is that the reason
U create 1 st pom.xml
After that save pom.xml and u get Maven dependencies After that u create feature files nd save
Thanks sir
Welcome
I am facing issue with eClipse JNI error. please check your installation and try again..... can you please resolve it
One doubt if we are not able to install cucumber plugins from eclipse market place in remote machine.then how to install it in another way?
sir, i am fimding initialization error and TestRun[JUnit] terminated, pl help. thank
You are doing a good job sharing your knowledge, but you need to brush up on the what and whys of BDD.
i was going along fine watching the video and then i saw your BDD example. Sorry to be so blunt, but that's a very bad example of how to write a BDD scenario. Its not a good idea to include multiple "Given", "When", "Then" in a test scenario.
You can have multiple "And' included, but should not repeat "Given", "When", "Then" keywords.
Thanks!
Welcome!
Thanks a lot
Welcome
Hi, Mr Pavan. am getting NullPointException. can u pls tell me how to solve it
This may be coz you have not provided life to the driver in your page objects.
Sir these videos are very helpful. By any chance you can drop some videos for Cucumber framework with Playwright and Java
how to add tools.jar i am getting error plz help sir
com.sun
tools
1.5.0
system
C:\Program Files\Java\jdk-18.0.2\lib\tools.jar
it shows tools.jar file is missing. how to resolve this issue sir?
Where to go that tools.jar file (3:53)
Hi sir. 42:01 whenever I'm entering it is showing error like "create cucumber class" . Where should I create and what I need to do in that class
Can we get all these dependencies at one place or is there any link where we can copy it all
Hi, Have you got dependency details??