Cucumber - jvm (Cucumber Options) with Selenium WebDriver - Part 2

  Рет қаралды 158,094

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Cucumber - jvm (BDD Framework) with Selenium WebDriver - Part 2:
Learn:
What are the different Cucumber Options are available?
How to use Cucumber Options?
Benefits of Cucumber Options
Interview Questions on Cucumber Options
===================================================
We Will be learning following cucumber options in this video:
@CucumberOptions(
features = the path of the feature files
glue=the path of the step definition files
format= to generate different types of reporting
monochrome = display the console output in a proper readable format
strict = it will check if any step is not defined in step definition file
dryRun = to check the mapping is proper between feature file and step def file
)
================================================
Cucumber BDD Framework Code Base GIT URL:
github.com/nav...
====================================================
Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion:
t.me/joinchat/...
~-~~-~~~-~~-~
Follow my Site/Blog: www.naveenautom...
========================================================
Please watch: "Selenium & Automation Interview Preparation - By Naveen AutomationLabs"
• Selenium & Automation ...
~-~~-~~~-~~-~ Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 114
@shenbagaraman6295
@shenbagaraman6295 3 жыл бұрын
Explanations are Cristal clear!! Kudos to you
@chvishnu619
@chvishnu619 4 жыл бұрын
This is my first task at my first job as a dev. Your tutorials are a lifesaver. Thanks a lot buddy!
@RaviVerma-Personal
@RaviVerma-Personal Жыл бұрын
Wow , Nicely explained. Just wanted to add we can also use the shortcut Ctrl+1 to create a stepdefinition for the respective feature scenario step ..😃
@pbhosale406
@pbhosale406 3 жыл бұрын
Explanation khup mast kela 👍🙏
@testauto5245
@testauto5245 4 жыл бұрын
another nice tutorial sir thanks for sharing all this knowledge
@arpitmalaiya7425
@arpitmalaiya7425 8 ай бұрын
Thanks buddy for making meaningful session
@mayankjain9941
@mayankjain9941 4 жыл бұрын
Hi Naveen, your videos are really amazing and your teaching is just superb
@sudhakarkm4626
@sudhakarkm4626 6 жыл бұрын
Hi Naveen, It's really a unique teaching pedagogy techniques you have. Everyone can understand the topics what you teach.. great...
@jeyhunaliyev1765
@jeyhunaliyev1765 5 жыл бұрын
awesome explanation thank you very much . i would say all your videos so detailed and no need to again again watch them . watch once and use rest of your life
@manibhute1455
@manibhute1455 4 жыл бұрын
Hi Naveen your all videos are too good .I rate them (9.99/10) ,only one small suggestion here Format is now deprecated so you can writes only Plugin .Otherwise with Format it throws error.
@RajaSingh-is5sk
@RajaSingh-is5sk 2 жыл бұрын
Thanks Naveen, For this nice lecture..........
@suganyas62
@suganyas62 4 жыл бұрын
Hi Naveen, Ur teaching is really nice..but want to bring one point is, ur eclipse screen font size is very small so if you maximize it and explain means it would be really helpful..
@testinginsights-muktasharma
@testinginsights-muktasharma 6 жыл бұрын
yes yes, I really liked this video. I love your interview tips which you give in the video while explaining each and every small little thing which makes the concept very easy to grasp. Thank you so much!
@abraham2961
@abraham2961 6 жыл бұрын
Really very very helpful video Naveen thanks for your contribution and support very thankful you save lot of people life
@dikshasrivastava8346
@dikshasrivastava8346 3 жыл бұрын
Videos are really helpful , but please let us know how to write code in definition file , if feature file contains multiple scenarios.
@arafatahmed6803
@arafatahmed6803 4 жыл бұрын
Hi Naveen, Thank you very much for the lectures of Cucumber. I am working on it. I found it very useful. It's helping me a lot. Can you please make a video for Parallel Execution in Cucumber by using Maven test execution plugins? I would greatly appreciate it.
@meghraj
@meghraj 3 жыл бұрын
Amazing tutorials
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad you like them! You can watch the latest cucumber 6 videos here : kzbin.info/aero/PLFGoYjJG_fqpObjigKg4bunu6_Ki7Ppn-
@rashmi6611
@rashmi6611 4 жыл бұрын
Thanks Sir, Your videos are really very helpful while learning and interview preparation
@bharatkumar5277
@bharatkumar5277 6 жыл бұрын
Nice learning Videos...can you please clarify the question on execution front....if we have multiple feature files,how can all those feature files can be run in the runner class?If we prepare different step definition files for each feature file,how do we give in the runner class?
@sanjuk2484
@sanjuk2484 3 жыл бұрын
Your awesome naveen.... I really like your vedios... I love the way your explaning...
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Glad that it's helping you
@sanjuk2484
@sanjuk2484 3 жыл бұрын
@@naveenautomationlabs I have one doubt naveen.. We are writing selenium code in step definition file instead of test runner.. Why??? Bcz I used to work cucumber framework in my company.. They used to write selenium code in test runner file..
@jaydalsaniya3259
@jaydalsaniya3259 4 жыл бұрын
Hi Naveen, your videos and explanation is awesome. but i have one doubt. can you please brief me what is the difference between strict and dryRun cucumber option if both are checking for missing steps in Step Definition file. please revert. waiting for response.
@amitbhardwaj7824
@amitbhardwaj7824 4 жыл бұрын
Nice video 👍
@krishnan30990
@krishnan30990 5 жыл бұрын
One question here, what would happen when both dry run and strict is true here? Do we have a precedence, please tell exact output...
@introductionofsoftwaretest6686
@introductionofsoftwaretest6686 4 жыл бұрын
Good Morning Naveen How are you ... You are doing a great job yours videos are user friendly .... Question : I have 35 test case in my frame work and i wanted to run smoke test . So what I did i have put all test cases in a new feature file name smoke.feature and now when i am running this feature file I am getting an error " Invalid Session Id " . I will appreciate if you please help me fix this error ..... All of my test cases are working great individually ...... Thank you You have a nice day Frank
@gowthamreddy8929
@gowthamreddy8929 6 жыл бұрын
Hi naveen somuch thankful to this video.Great video and awesome teaching
@MrMadhur18
@MrMadhur18 7 жыл бұрын
awesome video... Naveen please come with the video of collections with interview questions ....
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
+Madhur Bharadwaj sure will do that.
@shriprasadgujare8639
@shriprasadgujare8639 5 жыл бұрын
Just to add, if we have strict = true and in our step definition file if have an undefined step , all the subsequent steps will not be executed and system will exit with return 1. In the explained example the undefined step is in the last line therefore we are not able to see the use of strict.
@srividyan7979
@srividyan7979 7 жыл бұрын
Hi Naveen, You give us a very nice and clear explanation in videos, thanks for your contribution. do we need to write saparate runner class for every feature? could you design a framework like how u explain in POM like end to end testing in cucumber as well please.
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
+Srividya N yes I'll cover pom with cucumber also. Stay tuned
@dineshr4732
@dineshr4732 5 жыл бұрын
Awesome videos Naveen. Why is that step definitions not in src/test/java..?
@VijayKumarKarukuri
@VijayKumarKarukuri 6 жыл бұрын
Clear understanding..thanks naveen
@mohammadchisty2129
@mohammadchisty2129 3 жыл бұрын
Hello Naveen Thanks for your video. Could you please show, how to create multiple Scenario and run.
@AnilKumar-us7yk
@AnilKumar-us7yk 7 жыл бұрын
Hi Naveen , The video is more than great but i just feel from next videos please can you increase the font size little more from preferences so its more visible thats the only concern i have other than this i dont have any words to say i mean speechless from your videos and truly delightful and awesome
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
Sure :)
@sindhumounika7788
@sindhumounika7788 4 жыл бұрын
Sir your training is excellent But screen is not that much clarity Please make vedio clarity
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
you need to change your HD setting to 720 HD or 1080 HD quality. All my videos are with HD quality.
@sureshsubramaniyan3201
@sureshsubramaniyan3201 5 жыл бұрын
Thanks for the concept. have 2 doubts 1) how to give comment on above the runner class. if we have more than one Feature file ( for single Feature file we are using like @CucumerOption( feature = "Future") 2) What is the major difference between dryRun and Strict keyword. both will act as to find out missing step definition ( method ) relevant to scenario steps
@bhamra123singh2
@bhamra123singh2 Жыл бұрын
He haven't taught about tags in this lecture so later u will know how to run multiple feature files and for second as per my experience both are having same function but with different approach...dryRun is time consuming it will first check mapping and then set to false and ur code will execute but strict it perform 2 task in one go...it will execute the code as well as it will check the mapping and fail the execution...I think this could be a satisfactory answer for an interviewer
@arunsalvi6460
@arunsalvi6460 5 жыл бұрын
Thanks a lot Naveen, All videos are really helpful and I am using Cucumber BDD framework in my project. I just want a small help, I have a question about running order of feature files, as feature files run in alphabetic order by default, in my case I have to run Login feature than Dashboard feature file, but as per the alphabetic order, Dashboard run 1st than run login feature file, is there any way to run feature files in specific order?
@Manashaist
@Manashaist 6 жыл бұрын
Really awesome.Thanks, Naveen for a wonderful video.
@dheerajsrinivas-t4v
@dheerajsrinivas-t4v Жыл бұрын
Hi Naveen, I am getting "Null point exception error" - Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because the return value of "com.qa.factory.DriverFactory.getDriver()" is null. Could you please help me with this. Looks like there is some issue in DriverFactory. I have searched online for solution and couldnt find one. Please provide provide solution. Thanks..
@krishnasowjanyamaddukuri35
@krishnasowjanyamaddukuri35 6 жыл бұрын
Really good and detailed Explanation
@shilpamittal2598
@shilpamittal2598 5 жыл бұрын
Amazing Video Naveen. Can you make a video on extent report with screenshot attachment?
@ash123mur
@ash123mur 4 жыл бұрын
same request!
@prashantmali8204
@prashantmali8204 Жыл бұрын
Hi Naveen, I used your code from Github and Import in My Eclipse but it cant work in Windows. I changing path path of chromedriver path and feature file path too. but can't execute the code . it shows an exception of initializationError. Please Can you help me Naveen.
@souravpoddar1050
@souravpoddar1050 5 жыл бұрын
Hi Naveen, Just info for your followers - "format" keyword is not in use anymore. Instead use "plugin" keyword in the TestRunner class :)
@rajendrasahu8271
@rajendrasahu8271 6 жыл бұрын
Awesome description Naveen
@piyushsinha7262
@piyushsinha7262 2 жыл бұрын
@Naveen Sir, Two Scenario for login functionality, one is with Valid username , Valid password and invalid username, invalid password, I have confusion for this I have to make one steps description file or two seprate seprate description file.
@souravdasgupta5094
@souravdasgupta5094 6 жыл бұрын
very good videos Naveen. It helped a lot..
@Shashank26g
@Shashank26g 5 жыл бұрын
Hi Naveen, I follow all the steps given in this video, however in console output , i didn't see the passed fail steps, please let me know how to handle it. One more thing it tried to generate .xml file throght format options, but when it click on generated xml file , i am getting null argument error, please let me know how to resolve that issue.
@princekr.3128
@princekr.3128 5 жыл бұрын
hi Naveen, I want to generate an intelligent report using cucumber like an overview, overall summary, and screenshots for failure. please make a video on it, it will be very helpful.
@sasikumarm1776
@sasikumarm1776 4 жыл бұрын
Hi Sir Thanks for the nice training. I have a below query When using * keyword in feature file, how we need to create step in the definition file
@sunitaaryal2330
@sunitaaryal2330 5 жыл бұрын
Best Video....Hi Naveen can u share jBehave videos please.
@jayhoss6433
@jayhoss6433 5 жыл бұрын
Hi Naveen, the format option within the @Cucumber.options() does not seem to work, does the option for the format exist?
@kranthip8581
@kranthip8581 4 жыл бұрын
Do we need to use both dryrun and strict ? Diffrence between dryrun and strict?
@amankul-yt
@amankul-yt 4 жыл бұрын
Dryrun tells mapping without execution. Strict executes test and fails test for missing stepdef.
@manojthivary3331
@manojthivary3331 2 жыл бұрын
What happens if we didn't write "preety" in the format option
@dhanashree.lavatre.6095
@dhanashree.lavatre.6095 6 жыл бұрын
Hi Naveen, if the feature file having multiple scenarios and every time the annotation given(@Given) is same in such case what to do? can we make the annotation given global?; so that every time we don't have to write the same step definition method !
@pankaj111ful
@pankaj111ful 3 жыл бұрын
Hi Naveen I am not able to generate reports files..as in eclipse I am not able to see junit 4 package however I have already added all jars in pom folder. Also mentioned this URL freecrm.com is changed.
@balakrishnan8691
@balakrishnan8691 6 жыл бұрын
Hi Naveen, I have feature which have 2 scenarios when one scenario finish executing i want cucumber to run 2nd scenario without opening new browser thread.Right now it when it finish executing one scenario it open another thread of browser and does not execute 2nd scenario. I don't want to open another thread, I want to execute the 2nd scenario after 1st in single browser thread. can you Plz help me
@srinivasmuddappa9663
@srinivasmuddappa9663 5 жыл бұрын
Hi Naveen can we have a runner class without glue defined, I have seen this in my company not sure how it would understand where my stepdef is?
@amankul-yt
@amankul-yt 4 жыл бұрын
if runner and stepdef is under same dir then glue can be skipped.
@jahangiralikhan2410
@jahangiralikhan2410 5 жыл бұрын
Awesome video Naveen :) Thanks a lot
@gautamgkp65
@gautamgkp65 5 жыл бұрын
Nice video
@bharathkumar4986
@bharathkumar4986 4 жыл бұрын
We can follow all this using BDD -Testng?
@tejutej3988
@tejutej3988 6 жыл бұрын
Please increase the font size when you are explaining the coding part
@surajbobade956
@surajbobade956 3 жыл бұрын
Right code is not visible properly it's looking small
@anupamdas1053
@anupamdas1053 Жыл бұрын
Thank You!!
@waniya-huzzu
@waniya-huzzu 6 жыл бұрын
how to control order of execution of features file? suppose i have login.feature and contact.feature , it will execute first contact then login , since its executing based on alphabet order....
@sudheerpandey5439
@sudheerpandey5439 5 жыл бұрын
really great videos Naveen:) Thanks a lot
@waniya-huzzu
@waniya-huzzu 6 жыл бұрын
we have to give full path of package under features as features = "src/main/java/Features/" then only it will execute all the features.
@prachisinghal5374
@prachisinghal5374 2 жыл бұрын
You are a GEM :)
@rameshanantha6280
@rameshanantha6280 5 жыл бұрын
Hi @Naveen Sir Can you please help me on how to get status of steps in cucumber java as I need to update status of each step in zephyr ?
@prakashpohi7314
@prakashpohi7314 6 жыл бұрын
hi naveen, with strict = true we are getting the message to implement the missing step after the execution. with strict = false also we are getting same result without strict option also we are getting the same result...... Then what is the purpose of strict cucumber option??????....i am not noticing any difference with strict cucumber option
@shriprasadgujare8639
@shriprasadgujare8639 5 жыл бұрын
if the first step in feature file or corresponding step definition is failed then all the subsequent steps will fail. Since in this case all the error is in the last line, that;s why the outputs are same. Try adding error in first step itself and see the output difference.
@Bharatiyadilse
@Bharatiyadilse 5 жыл бұрын
Check the Failure Trace, you will see the difference.
@sharathmillind3144
@sharathmillind3144 4 жыл бұрын
Bro can you make a video regarding methods reusable to for all action performed in browsers
@ArturBerkut
@ArturBerkut 4 жыл бұрын
awesome!
@ajayshetty5155
@ajayshetty5155 4 жыл бұрын
I am facing some issue unable to open chrome browser
@palash3
@palash3 5 жыл бұрын
Can you explain how to resolve the initializationError. Your code is giving the error: Method 'initializationError' not found. Opening the test class.
@reshmashaik5377
@reshmashaik5377 5 жыл бұрын
You should use the same version of Cucumber-java dependencies as the Cucumber-JVM and Cucumber-JUnit dependencies, that is 1.2.5 in POM.xml file. stackoverflow.com/questions/40992750/cant-run-cucumber-test-java-lang-nosuchmethoderror-cucumber-runtime-runtime
@jyothsnareddyp
@jyothsnareddyp 5 жыл бұрын
Hi Naveen, format is no longer working; format is look like 'Strike-through' .
@lmI1878
@lmI1878 5 жыл бұрын
You can use "features" in place of "format"and it will work.
@PrakrutiBhakti
@PrakrutiBhakti 5 жыл бұрын
@@lmI1878 i think we have to use plugin only instead of format
@saurabhgarg191
@saurabhgarg191 4 жыл бұрын
use plugin
@nandiniarumugam9772
@nandiniarumugam9772 7 жыл бұрын
Such a great explanation!!!
@naveenautomationlabs
@naveenautomationlabs 7 жыл бұрын
Thanks for watching! Keep Learning and Keep Sharing!
@nadimchouglay1947
@nadimchouglay1947 6 жыл бұрын
Naveen do u run classes in Mumbai? if yes where?
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
+Nadim Chouglay not in Mumbai, only in Bangalore. But u can join my online sessions
@nadimchouglay1947
@nadimchouglay1947 6 жыл бұрын
Naveen AutomationLabs Thanks for your reply ,would be great if you could conduct online classes how do I get in touch with you please advice
@naveenautomationlabs
@naveenautomationlabs 6 жыл бұрын
Please refer my blog here for online sessions: www.naveenautomationlabs.com/2017/12/selenium-java-training-course-content.html
@nursingism
@nursingism 5 жыл бұрын
@@naveenautomationlabs So naveen, wher do you take calsses in bangaore? i mean which area? since i would like to join im curious
@reehanshazada7867
@reehanshazada7867 5 жыл бұрын
@@nursingism Any update where in Bangalore?
@mhohossain1994
@mhohossain1994 5 жыл бұрын
hi naveen its md hossain when i use format like html or json i can not execution my test case give me a error
@moekhojaev836
@moekhojaev836 5 жыл бұрын
Hi, Hossain. Instead of using format use plugin keyword.
@abhijeets6593
@abhijeets6593 5 жыл бұрын
hey Naveen, you missed to explain tag, can u plz cover
@souravpoddar1050
@souravpoddar1050 5 жыл бұрын
"tags" keyword is used to run a particular Scenario from the Feature file. You can also exclude a Scenario by using "tags".
@AbhishekSharma-nm1ok
@AbhishekSharma-nm1ok 6 жыл бұрын
I got it. Thank you so much
@narasimhagontla
@narasimhagontla 6 жыл бұрын
Why we are writing scripts in src/main instead of src/test
@ashwajitthukral9101
@ashwajitthukral9101 6 жыл бұрын
Same question comes to my mind.
@muhammedzubair3120
@muhammedzubair3120 6 жыл бұрын
What about the plugin in cucumberOptions????
@PrakrutiBhakti
@PrakrutiBhakti 5 жыл бұрын
once upon a time we used format but now its not working so instead of format we have to use plugin this is old video so it contains format
@nishatiftekhar9579
@nishatiftekhar9579 6 жыл бұрын
format is no longer working; please use plugin
@talhachy3002
@talhachy3002 4 жыл бұрын
Nice explanation but video graphics quality is poor. its hard to watch test scripts, little blurry. Could have been better.
@neha7980
@neha7980 3 жыл бұрын
Shortcut for comment nd uncomment?
@kratik6282
@kratik6282 5 жыл бұрын
How to add multiple feature files
@souravpoddar1050
@souravpoddar1050 5 жыл бұрын
Create multiple feature files inside the Feature package and then add ONLY the path of the Feature package which contains multiple feature-files under "features" keyword in the TestRunner class. Also,make a note that if you have given a Scenario name for each feature-file,then you can add the Scenario name using "tags" keyword in the TestRunner class.
@RandomVideos-st9lz
@RandomVideos-st9lz Жыл бұрын
strict has been decommissioned starting from Cucumber 7.0. 0
@sujatapanda7397
@sujatapanda7397 5 жыл бұрын
Hi Naveen, your videos are really amazing and your teaching is just superb
Data Driven Testing in Cucumber BDD Framework In Selenium - Part 3
52:50
Naveen AutomationLabs
Рет қаралды 164 М.
What are Cucumber Tags? - Part 6
30:59
Naveen AutomationLabs
Рет қаралды 76 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 289 М.
World‘s Strongest Man VS Apple
01:00
Browney
Рет қаралды 54 МЛН
VAMPIRE DESTROYED GIRL???? 😱
00:56
INO
Рет қаралды 6 МЛН
How it feels when u walk through first class
00:52
Adam W
Рет қаралды 20 МЛН
Singleton Pattern With Selenium WebDriver + Java + TestNG
20:57
Naveen AutomationLabs
Рет қаралды 14 М.
Cucumber - jvm (BDD Framework) with Selenium WebDriver - Part 1
1:10:56
Naveen AutomationLabs
Рет қаралды 681 М.
#8 - Hooks in #Cucumber (Before/After Hooks in Cucumber)
19:05
Naveen AutomationLabs
Рет қаралды 60 М.
Taking ScreenShot ONLY for Failed Tests in Selenium using TestNG Listener
32:12
Naveen AutomationLabs
Рет қаралды 117 М.
Cucumber tutorial - Part 1 | Selenium
7:37
LetCode with Koushik
Рет қаралды 26 М.
Selenium Cucumber Java BDD Framework 8 - Tags | Step by Step
18:03
Automation Step by Step
Рет қаралды 74 М.
How to Become Genius in XPath in Selenium  - Session -18
39:48
Naveen AutomationLabs
Рет қаралды 722 М.
Хасанның өзі эфирге шықты! “Қылмыстық топқа қатысым жоқ” дейді. Талғарда не болды? Халық сене ме?
09:25
Демократиялы Қазақстан / Демократический Казахстан
Рет қаралды 289 М.