Hello Mukesh, I just wanted to tell you THANK YOU VERY MUCH for all the knowledge you share with us. Truly, you are serving immensely to IT field. Once again, thank you very much. Stay always blessed and happy.
Thanks Mukesh. I am a beginner and face many issues trying to execute the scripts. Many a times even stack overflow doesn't come to the rescue. But have resolved many issues after watching your vidoes. Thanks once again.
Man you are just brilliant. I faced some issues before starting to watch this video and I just followed the step by step and it worked without any issues. Keerthi doing the great work man. Cheers
Hello Mukesh, I just wanted to thank you for this wonderful video. After trying several videos, this is the first time I am able to setup a Cucumber projects.
Really good and clear instructions on how to start with this. Appreciate it. I would also like some examples on how to manage different test regarding priority or dependency to other tests / features / scenarios.
Finally got the video i was searching for so long. U described it so well tht i did not face any problem to implement it.Thanks a lot. I regularly follow ur videos and now eagerly waiting for the next part of this topic. please show us the parameterization and other features . Want to know more details.
Hey Deblina first of all cheers for your first cucumber program. Yes in future videos I have planned the same and more videos yet to come. Keep visiting and let me know if any help from my side.
Great work Mukesh ! Your videos are very helpful for interview preparation. Thorough explanation and easy to understand. I've gone through other videos of you regarding Se, TestNG etc. Really appreciate it :)
Hi Mukesh...I found this video very informative . you have explained it very well. Thanks a ton!! waiting for more videos to come with other features of cucumber as well.
Hello Mukesh, Awesome explanation, really like it. You are helping lot others, thanks from others who are watching but unable to comment. Keep posting new videos. Thanks
+mahendra sonavane Hey Mahendra thanks Mate :) Some are very lazy to comment as well. Please try this from your side and let me know if any help from my side.
+Mukesh otwani : your explanation is clear, and the best part in you, Explaining proper installation of any tool with steps and then scripting part .. i done the same my end within half hour .. thanks a ton :)
Hi Mukesh, I don't know how to thank you for this video clip, it did really help me understanding java-cucumber I will repeat the example you demonstrate here in the clip, I will let you know if anything goes wrong (Hope NOT). regards Nagag S
I went through all the videos of this tutorial and really effective in terms of getting a good start in cucumber and selenium testing. Furthermore it would be excellent if you can demonstrate how we can have run prerequisite in features. As an example there would be a login feature and before that Registration should be executed. How to handle those in cucumber.
Hi , small update from this video, use @CucumberOptions instead of @Cucumber.Options as Cucumber.Options seems deprecated. Good work Mukesh thank you so much.
Hi Mukesh, I noticed cucumber-testng dependecy on the Maven website as well. I tried using it, but as we have to use @RunWith(Cucumber.class) --> this imports JUnit package. Can you please make a video on using TestNG with Cucumber? It will be of great help. I will also try more to find out about its use. Thanks.
Hi Mukesh Nice explanation i have few questions here 1. How to execute the multiple feature files one by one 2. How could we prioritize the feature files for executing in sequence Kindly let me know possible to solutions
Hi Sunil, Please find my comments inline. 1- You can give feature file using @Tag which will run scenario based on your requirement. 2- This I have to check as of now I am using @Tags to run
Hi Mukesh , I am getting exception "Exception in thread "main" cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH." Please suggest. Unable to execute scripts
Really amazing Mukesh :) But i'm little bit confused if selenium is there then why we should use cucumber ? any additional feature available in Cucumber apart from specifying feature,scenario and steps. Because at the end you're integrating the Cucumber with selenium itself. Would be helpful if you clarify this :) Thanks a lot for sharing the such useful information with everyone :) Cheers.
+Dinesh Ahuja Hi Dinesh BDD will make test easy to understand for everyone. Selenium test is in pure java code which is hard for business users to understand. BDD main intension is to make requirement clear in plain english for client developer and tester.
Okay Mukesh, I have another question, I tried to follow your tuturial to integrate Maven Cucumber projet with Jenkins, but when I run the build I have this following errorn do you have any idea? Executing Maven: -B -f C:\CWorkSpace\olaf.cucumber.selenium\pom.xml clean install java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FILE at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings(DefaultMavenExecutionRequestBuilder.java:658) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:149) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.getMavenExecutionRequest(Maven33Launcher.java:150) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:127) ... 21 more ERROR: Echec à la lecture des POMs java.io.IOException: java.lang.reflect.InvocationTargetException at hudson.maven.Maven3Builder.call(Maven3Builder.java:179) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at ......remote call to Channel to Maven [C:\Program Files\Java\jdk1.8.0_111/bin/java, -cp, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\automatisation\apache-maven-3.5.0\boot\plexus-classworlds-2.5.2.jar;C:\automatisation\apache-maven-3.5.0/conf/logging, jenkins.maven3.agent.Maven33Main, C:\automatisation\apache-maven-3.5.0, C:\Users\ooutabar\.jenkins\war\WEB-INF\lib emoting-3.7.jar, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar, 58680](Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545) at hudson.remoting.UserResponse.retrieve(UserRequest.java:253) at hudson.remoting.Channel.call(Channel.java:830) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:873) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1728) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:405) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:153) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:336) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:179) ... 14 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) ... 14 more Caused by: java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FILE at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings(DefaultMavenExecutionRequestBuilder.java:658) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:149) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.getMavenExecutionRequest(Maven33Launcher.java:150) at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:127) ... 21 more channel stopped Finished: FAILURE
Hi Mukesh am very happy after go through your videos.its realy helpfull.suppose i have a large number of data instead of writting in Examples can we use apache poi to fetch those data in cucumber???do you have any video for this???
Hi Pranita, please try below two plugin any of one should work marketplace.eclipse.org/content/cucumber-eclipse-plugin marketplace.eclipse.org/content/natural
Hi @Mukesh otwani. Generally In a project who will be writing the feature files and who will be writing step definitions. Because I do not see much difference in using cucumber when step definitions since the same can be done with selenium alone r8? Please correct me if my understanding is wrong.
Hi Mukesh, I followed the exact steps as given. When I run my test using Run As, in Console I am not able to get any of the messages as you got. But still of left hand side panel everything is passed but there is nothing to expand after the Scenario(In your case you got Given, When and Then). As there is no error message i am not able to figure out what could have gone wrong.
Hi, After setting up the BDD cucumber framework in Eclipse jee Neon and after creating the feature file getting the error on feature file " "mismatched input '' expecting 'Feature:" How to fix this could you please suggest
Hi Mukesh... thank you for the great video, If i have more than one ".Features files" in the same folder, but I'm interested in specific ".Features file", do we need to give the complete path of that .features files example : (@CucumberOptions(features="Features/ProfilePage.features")) ??
I have planned to learn either TestNG or Cucumber . So which should i learn first (that is, which has immediate requirement / demand during interviews as i am currently preparing for interviews).
Great video. It is likely that I would need to know anymore about cucumber & Gherkin for an automated testing job or are these fundamentals pretty much the standard being used for most clients? Thanks
Yes Steve For Cucumber you just need small information about Gherkins and all cucumber concepts. This is just as an example but in industry we have to create some robust framework to handle complex scenarios.
Hi mukesh I really like ur videos....I have a question....for example if we have 10 scenarios in the feature file I want to execute only one scenario fro test runner....how we will do it....please clarify
You need to use annotations. and in Runner class use --> @CucumberOptions(tags={"@Smoke"}). So it`s run only that feature file or Scenario, depends where are you going to put that annotation.
Just write an annotation before Scenario: @youCanGiveAnyNameToThisAnnotation Scenario: As user I should be able to log in with vilid credentials Given I`m on amazon home page... And in the runner class: @CucumberOptions(tags={"@youCanGiveAnyNameToThisAnnotation"})
Hi Mukesh, Thanks for such a good videos. I have a question, after running the feature file, an exception message as "Exception in thread "main" cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.". But as per your video there should be nothing in console. Can you please post your suggestion.
Hi Anamika, Please check below thing if glue code is not generated 1- Installed the latest plugin 2- Feature file should be in proper format 3- Use latest cucumber jars Please try with all above and if is still not done then let me know.
Hello Mukesh,
I just wanted to tell you THANK YOU VERY MUCH for all the knowledge you share with us. Truly, you are serving immensely to IT field. Once again, thank you very much. Stay always blessed and happy.
Thanks Mukesh. I am a beginner and face many issues trying to execute the scripts. Many a times even stack overflow doesn't come to the rescue. But have resolved many issues after watching your vidoes. Thanks once again.
Even if this video is 5years old but still greatest of all videos
This means alot to me @Acchut
Everytime I want to learn a new Topic I prefer your tutorials. thanks for the wonderful Job..👍
Thanks Komal :) I am glad you started Cucumber too . Stay updated with new tools.
Man you are just brilliant. I faced some issues before starting to watch this video and I just followed the step by step and it worked without any issues. Keerthi doing the great work man. Cheers
I am gald it worked for you Hari :) Keep learning.
Hi Mukesh, your explanation is brilliant. I am beginner , learned step by step to run cucumber. thanks for your video.
Cheers Yash :) keep visiting
Hello Mukesh, I just wanted to thank you for this wonderful video. After trying several videos, this is the first time I am able to setup a Cucumber projects.
+Mushfiqua Zaman Cheers mate
Really good and clear instructions on how to start with this. Appreciate it.
I would also like some examples on how to manage different test regarding priority or dependency to other tests / features / scenarios.
+chris zet Hi Chris yes i will upload soon. Keep watching.
+Mukesh otwani thank you
Finally got the video i was searching for so long. U described it so well tht i did not face any problem to implement it.Thanks a lot. I regularly follow ur videos and now eagerly waiting for the next part of this topic. please show us the parameterization and other features . Want to know more details.
Hey Deblina first of all cheers for your first cucumber program. Yes in future videos I have planned the same and more videos yet to come. Keep visiting and let me know if any help from my side.
very clear explanation. awesome Mukesh
+Upendra D Thanks Upendra
Hi mukesh... Thanks for posting such a wonderful video.. I wrote the script exactly what u explained in your video and It's working fine ...
This video is really helpful for my interview prep and learning new skills. Thank you so much.
Great work Mukesh ! Your videos are very helpful for interview preparation. Thorough explanation and easy to understand. I've gone through other videos of you regarding Se, TestNG etc. Really appreciate it :)
Awesome, everything worked the way you have showed. Thanks a ton for the info, this help get started on cucumber
Clear explanation Mukesh . Thanks for the video. Please upload as many as you can. :)
Yes Prashanth will so soon.
Hi Mukesh...I found this video very informative . you have explained it very well. Thanks a ton!! waiting for more videos to come with other features of cucumber as well.
hI sUMITA Your welcome. Keep visiting and will upload complete video series soon.
Hello Mukesh,
Awesome explanation, really like it.
You are helping lot others, thanks from others who are watching but unable to comment.
Keep posting new videos.
Thanks
+mahendra sonavane Hey Mahendra thanks Mate :) Some are very lazy to comment as well. Please try this from your side and let me know if any help from my side.
+Mukesh otwani : your explanation is clear, and the best part in you, Explaining proper installation of any tool with steps and then scripting part .. i done the same my end within half hour .. thanks a ton :)
+mahendra sonavane Cheers
Brilliant! Clear and concise what I wanted. thank you Mukesh.
Thanks @Pradeep
Hi Mukesh, Thank you.... Simple and understandable... Thank you and happy diwali in advance...
Thanks Kiran and Happy diwali to you and your family.
Your tutorials are very much helpful.. Please continue your knowledge sharing... :)
+shammika dahanayaka Hi Shammika your welcome keep visiting.
Hi Mukesh,
I don't know how to thank you for this video clip, it did really help me understanding java-cucumber
I will repeat the example you demonstrate here in the clip, I will let you know if anything goes wrong (Hope NOT).
regards
Nagag S
Hope it will work without issues.:)
Very clear explanation. Thank you Mukesh.
Great video, Mukesh! Thank you for step by step explanation! its awesome!
Crystal Clear Explanation.. Thanks Mukesh
Thanks Kishore :)
very informative video . . thanks a ton mukesh . .
+Priya Iyer Thank you 😊Priya
Keep visiting
I went through all the videos of this tutorial and really effective in terms of getting a good start in cucumber and selenium testing.
Furthermore it would be excellent if you can demonstrate how we can have run prerequisite in features. As an example there would be a login feature and before that Registration should be executed. How to handle those in cucumber.
U are just awesome bhai♥️ i just love to learn by watching ur videos!!👍
Good Mukesh, Very nice explanation with good examples
Thanks a lot Mukesh.. You explain really well.
Thanks Varsha :) keep visiting
Much appreciate this video, easy to understand!
Hey Adilet Mamyrov I am glad you liked my tutorial . Keep learning and Sharing. Feel free to contact for any issues related to Automation.
Wonderful video, very well explained with step by step ...Thanks a lot:)
Thank you Maria 🙏
Very useful video ! Expecting a lot from you
Thanks Sankar more yet to come.
point to point .. Nice and clear.
Thanks Ramki
Excellent, tks for your time.
Thanks mate
Dude, That was clear and concise. Thank YOU.
Thanks Muthu
Please restore the jar file in your google drive.. Simply well explained..thanks
Thanks Raj sure I will do today.
Very good tutorial! Excellent explanation!
Thanks a ton Massiel 😀 Keep learning and let me know if any help required from my side.
Very good explanation. Thanks, my friend.
Welcome mate
It was a very useful tutorial, thanks
All I can say is loads and loads of thanks it is very clear vedio
Thanks mukesh...this tutorial helped a lot..
Most welcome Ciara :) I am glad it helped you..
THis is a great tutorial. Appreciate all your efforts, however please note that 'Cucumber' should be pronounced as 'Q- cum- ber' and not 'ku-kum-ber'
Thanks Prashant for nice feedback. I must agree that I am very bad in pronunciation 😬
Thanks mukesh, this is really helpful.
Most welcome mate :)
Great!!!! Informative.
Thansk Naz keep visiting.
Hi , small update from this video, use @CucumberOptions instead of @Cucumber.Options as Cucumber.Options seems deprecated. Good work Mukesh thank you so much.
Thanks @Raj yes I agree Cucumber.Options deprecated after 1.2.4
Hi @Raj, I'm facing some problem. If you cqn help me
Awsome explanation.Thank you.
+vasavi Selenium thanks vasavi
Man, Ur just an awesome guy, keep share the videos.
Thanks Rama keep visiting,
Very nice! Excellent class...
Thank you @Tiago 😀
hey Mukesh, u did not use System.setproperty to set the path of chrome driver executable. How does it work without it?
Hi Swarup, If you set driver folder in path variable in windows, then no need to give in test scenario.
@@Mukeshotwani do we need to create separate path variable in environment settings? Is that what you are saying?
Hi Mukesh,
I noticed cucumber-testng dependecy on the Maven website as well.
I tried using it, but as we have to use @RunWith(Cucumber.class) --> this imports JUnit package.
Can you please make a video on using TestNG with Cucumber? It will be of great help.
I will also try more to find out about its use.
Thanks.
Very useful. Thank u buddy Mukesh.
Thanks Raj :)
Thanks so much mukesh
Welcome mate
Hi . I am getting error on @Cucumber.Options() as cannot be resolved to a type.
Hi Mukesh, Can we have the Test Runner class and Step Definition class in the same package?
Yes you can have.
Hi Mukesh
Nice explanation i have few questions here
1. How to execute the multiple feature files one by one
2. How could we prioritize the feature files for executing in sequence
Kindly let me know possible to solutions
Hi Sunil,
Please find my comments inline.
1- You can give feature file using @Tag which will run scenario based on your requirement.
2- This I have to check as of now I am using @Tags to run
explanation is amazing!!!
Thanks mate
Hey mukesh pls let me know LinkedIn of you to follow...mine is karthik survepalli....
Hi Mukesh ,
I am getting exception "Exception in thread "main" cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH." Please suggest. Unable to execute scripts
Hi Nitish,
Try with maven ruclips.net/video/WYdTkTzGFxE/видео.html
Really amazing Mukesh :) But i'm little bit confused if selenium is there then why we should use cucumber ? any additional feature available in Cucumber apart from specifying feature,scenario and steps. Because at the end you're integrating the Cucumber with selenium itself. Would be helpful if you clarify this :) Thanks a lot for sharing the such useful information with everyone :) Cheers.
+Dinesh Ahuja Hi Dinesh BDD will make test easy to understand for everyone. Selenium test is in pure java code which is hard for business users to understand.
BDD main intension is to make requirement clear in plain english for client developer and tester.
Thanks mukesh for explanation :)
Well explained..many thanks!
Very helpful video:-)
thanks Sumatha
Really Helpful video.Thank you!!
Hi Mukesh,
In my eclipse Install new software option is disabled. Can please provide solution how to enable.
Hi Mukesh,, can you please post videos on jbehave framework with serenity
+jitendra parate sorry jitendra I have worked on these tools till now
As i see you added junit jar file ,i'm wondering why didn't you use TestNg instead ?
Thanks Mukesh, What about if we want to use the Cucumber Gherkin (given, when, then) in other language, do you have any idea ?
Sorry Omar I worked on JAVA only.
Okay Mukesh, I have another question, I tried to follow your tuturial to integrate Maven Cucumber projet with Jenkins, but when I run the build I have this following errorn do you have any idea?
Executing Maven: -B -f C:\CWorkSpace\olaf.cucumber.selenium\pom.xml clean install
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FILE
at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings(DefaultMavenExecutionRequestBuilder.java:658)
at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:149)
at org.jvnet.hudson.maven3.launcher.Maven33Launcher.getMavenExecutionRequest(Maven33Launcher.java:150)
at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:127)
... 21 more
ERROR: Echec à la lecture des POMs
java.io.IOException: java.lang.reflect.InvocationTargetException
at hudson.maven.Maven3Builder.call(Maven3Builder.java:179)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at ......remote call to Channel to Maven [C:\Program Files\Java\jdk1.8.0_111/bin/java, -cp, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-agent-1.8.1.jar;C:\automatisation\apache-maven-3.5.0\boot\plexus-classworlds-2.5.2.jar;C:\automatisation\apache-maven-3.5.0/conf/logging, jenkins.maven3.agent.Maven33Main, C:\automatisation\apache-maven-3.5.0, C:\Users\ooutabar\.jenkins\war\WEB-INF\lib
emoting-3.7.jar, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven33-interceptor-1.8.1.jar, C:\Users\ooutabar\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.8.1.jar, 58680](Native Method)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1545)
at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
at hudson.remoting.Channel.call(Channel.java:830)
at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:873)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1728)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:544)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException
at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:179)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
... 14 more
Caused by: java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FILE
at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.settings(DefaultMavenExecutionRequestBuilder.java:658)
at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:149)
at org.jvnet.hudson.maven3.launcher.Maven33Launcher.getMavenExecutionRequest(Maven33Launcher.java:150)
at org.jvnet.hudson.maven3.launcher.Maven33Launcher.main(Maven33Launcher.java:127)
... 21 more
channel stopped
Finished: FAILURE
Hello Mukesh, even on implementing step definition i am getting error as doesn't have matching glue code.
try with maven project ruclips.net/video/WYdTkTzGFxE/видео.html
Hi Mukesh am very happy after go through your videos.its realy helpfull.suppose i have a large number of data instead of writting in Examples can we use apache poi to fetch those data in cucumber???do you have any video for this???
Hi ,
here you go www.seleniumframework.com/cucumber-jvm-3/data-driven-framework-with-excel/
This plugin is not working in my system also
same error showing
Hi Pranita, please try below two plugin any of one should work
marketplace.eclipse.org/content/cucumber-eclipse-plugin
marketplace.eclipse.org/content/natural
@@Mukeshotwani sir even these links are giving the same error please help me
Hi @Mukesh otwani. Generally In a project who will be writing the feature files and who will be writing step definitions. Because I do not see much difference in using cucumber when step definitions since the same can be done with selenium alone r8? Please correct me if my understanding is wrong.
Hi Pavan feature files are business requirement so when all requirement are clear you will get from BA
Hi Mukesh,
I followed the exact steps as given. When I run my test using Run As, in Console I am not able to get any of the messages as you got. But still of left hand side panel everything is passed but there is nothing to expand after the Scenario(In your case you got Given, When and Then).
As there is no error message i am not able to figure out what could have gone wrong.
Can u run maven clean maven test
Hi, After setting up the BDD cucumber framework in Eclipse jee Neon and after creating the feature file getting the error on feature file "
"mismatched input '' expecting 'Feature:" How to fix this could you please suggest
Hi Priya,
Try with maven to fix this issue ruclips.net/video/WYdTkTzGFxE/видео.html
HI.. Please upload the data driven using data tables and tags and hooks in cucumber videos.
drive link is not working..
Hi Raj Aryan, please use below dependencies now
io.cucumber
cucumber-java
7.15.0
io.cucumber
cucumber-junit
7.15.0
test
Hi Mukesh... thank you for the great video,
If i have more than one ".Features files" in the same folder, but I'm interested in specific ".Features file", do we need to give the complete path of that .features files example : (@CucumberOptions(features="Features/ProfilePage.features")) ??
Hi David you can give specific file path as well to run test.
Nice video and well explained (y)
Thank you so much Justin
I have planned to learn either TestNG or Cucumber . So which should i learn first (that is, which has immediate requirement / demand during interviews as i am currently preparing for interviews).
First Learn TestNG then Cucumber because in Cucumber as well you will use TestNG or JUnit
Hi mukesh ,
Could you please clarify the following :
Along with these jar files ,do we need to add cucumber plugin via eclipse help menu ?
Thanks
Yes it would be good if you will install it will help you to understand keywords properly.
Thank you man, I solve the problem
I just need to install the last update
Great video. It is likely that I would need to know anymore about cucumber & Gherkin for an automated testing job or are these fundamentals pretty much the standard being used for most clients? Thanks
Yes Steve For Cucumber you just need small information about Gherkins and all cucumber concepts. This is just as an example but in industry we have to create some robust framework to handle complex scenarios.
Hi Mukesh, do you have more sessions on this training?
Not yet but planned to upload all
Hello Mukesh while adding "cobertura" facing error missing Artifact id . tried with adding other version as well but facing the same issuee
Hi Ankit please refer this link and try changing versions based on your current project mvnrepository.com/artifact/net.sourceforge.cobertura/cobertura
Do you tutorial where Selenium+cucumber with parametrization?
Yes here you go ruclips.net/video/bo46D8uHXTs/видео.html
I have been try your video,
when i run as cucumber in the feature, the gherkin is not run . I found issue " no definition found" can you help me ?
Hi,
Can you please run the same from TestRunner.
After running TestRunner, I am not getting 'missing steps with snippets' message
Hi Pallavi, you can also run feature file directly to get missing snippet.
hi mukesh,
I am facing 404 error when clicking the JAR_link which you provided in description field
Check this drive.google.com/drive/u/0/folders/0B5v_nInLNoqualhZWHk3eGFfd0k
Hi Mukesh, Is it possible to run 2 features and stepDefinitions from one Runner class? Please let me know.
Hi Mukesh, your video is very useful. Could you please guide me where can i get all required JAR files. Thanks
Jar link i have given in video description.
Do we need to create different step runner classes and step definition classes for each feature class?
Hi mukesh I really like ur videos....I have a question....for example if we have 10 scenarios in the feature file I want to execute only one scenario fro test runner....how we will do it....please clarify
You need to use annotations. and in Runner class use --> @CucumberOptions(tags={"@Smoke"}). So it`s run only that feature file or Scenario, depends where are you going to put that annotation.
Thanks for ur reply Erla....
Smoke is the feature file, if we want to execute only one scenario in smoke what has to be done
Just write an annotation before Scenario:
@youCanGiveAnyNameToThisAnnotation
Scenario: As user I should be able to log in with vilid credentials
Given I`m on amazon home page...
And in the runner class:
@CucumberOptions(tags={"@youCanGiveAnyNameToThisAnnotation"})
Got it thanks a lot....
Hi,
I am working on flex application, so can you help me in automating the sale with selenium+cucumber
Hi Rao, Cna you please tell me what challenges you are facing ?
Hi Please assit,i am new to Selenium Automation.when i add @cucumber i am getting "cucumber not an annotation type" please advise on what i should do.
Hi Priscilla,
Please follow below video to fix this issue
ruclips.net/video/WYdTkTzGFxE/видео.html
Hi Mukesh,
It seems that the link for Jars is pointing to other location so jars are no more available . Can you point me to right location please?
It is pointing to the correct location. drive.google.com/drive/folders/0B5v_nInLNoqualhZWHk3eGFfd0k
Hi Mukesh,
Thanks for such a good videos.
I have a question, after running the feature file, an exception message as "Exception in thread "main" cucumber.runtime.CucumberException: No backends were found. Please make sure you have a backend module on your CLASSPATH.". But as per your video there should be nothing in console. Can you please post your suggestion.
thanks for share Knowledge ;)
Hi mukesh !!
I am getting Step doesn't have matching glue code while writting feature file . Why is that ?
HI Nabin, You can run the feature file and it will generate Glue code and you need to implement the same
the code that you are copying from console window at 23:30 is not displayed for me. is there anything missing from my side
Hi Anamika,
Please check below thing if glue code is not generated
1- Installed the latest plugin
2- Feature file should be in proper format
3- Use latest cucumber jars
Please try with all above and if is still not done then let me know.
nice video keep uploading bro good job
Feel free to connect with me for any issue in Cucumber
Hi Mukesh, I just tried this but couldn't get Cucumber.Options one. Can you please help me?
Hey Venu Please use maven project to fix this issue ruclips.net/video/WYdTkTzGFxE/видео.html
can we integrate the TestNG,Maven and Jenkin with Cucumber with selenium?
Hi Mukesh, as I am new to cucumber and I facing error that "doesn't have a matching glue code" even after restarted the eclipse
Hi Raja, have you created step defination for each glue code?
Hi Mukesh,
I am not able to open link of jar files.
Hey Trushna Please use maven project to fix this jar issue ruclips.net/video/WYdTkTzGFxE/видео.html