Hi All, Please update the latest Cucumber Dependencies before using Examples feature, get it from here: github.com/naveenanimation20/CucumberSeleniumFramework/blob/master/pom.xml
Thank you for uploading this treasure of Selenium/Cucumber on youtube. You have a great teaching technique and like the way how you go to the core to explain even simple things. I have to mention this, whenever I listen to your videos, I envision professor from Money Heist series lol. Keep up the good work and again Thank You for these valuable tutorials.
I was confused how to use cucumber with selenium, your tutorials are giving very useful information. After watch your cucumber tutorials I can use cucumber without any doubt. Your automation videos are helping me to transform from Manual to Automation Tester. Thanks
Hi Naveen, Thanks again for such a wonderful video! Just because of your earlier videos I followed for Se+TestNG+Maven I was able to script & successfully run Cucumber + Junit in less than 2 hrs for Facebook signup page without any difficulties. I cant thank you enough for the kind of detailed hands on experience I gained and already got an job offer in UK. I have one more interview tomorrow which is for Automation Architect which if I clear would be achievement in itself for me and all credits to YOU for such amazing automation videos! Best Regards!
Thanks for this Awesome tutorial.... I have a qstion/doubt here.. >>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file looks like in that case??? Thanks in advance
Literally u r the best person in the world. The way u teach, the you explain. I become fan of you Naveen. And because of you I am "QA Automation Engineer". One thing is clicking me is what if we drive data from Excel ?? Can we integrate Apache POI in BDD also just like in TestNG ?? Please let me know
Hi Naveen Thanks for your video great learning. In cucumber is it necessary to create page wise feature file ? If we create only one feature file then how login scenario steps gets called on next scenario steps. Or we have to repeat the login steps again.
Hi Naveen for different modules can we create separate feature files or in one file only we can write. For separate feature files ,how we can write step definition and runner class file
Hi Naveen instead of opening and closing the browser to write firstname lastname and position can we just take one login and perform 3 different data for forms?
Excellent video Naveen. This is very helpful video for cucumber beginners. Just one query that, how do we reuse the code. For example: i would like to create a one login method which can be called in different tests .i.e in other feature and stepdefinition files.
i didn't try this but probably you could work.. say you have Login.java, Home.java (page objects class) and you have 1 method loginWithPassword() . you can call this method in your home stepdefinition file in a method with @Before annotation (cucumber annotation)
Thanks for this awesome tutorial. I have a question/doubt here. >>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file look like in that case??? Thanks in advance!!!
Hi Naveen, while giving the with examples keyword, I am getting error in the login feature file. when I parameterize the Then user enters "" and "". When I try to run the runner class by providing the dryrun as true, I am getting a initialization error. Please help.
Thanks Naveen it's working now. I watched your both the videos 1st and 2nd of Cucumber framework and followed it and all was working fine. But while watching your 3rd and latest video I had to update the pom.xml where as it no where mentioned in your 3rd video.
Hi Naveen Thank You , the videos are really very helpful to understand the concepts clearly..I had a question on test estimates being provided for the automation projects. When they ask in the interview on how do you provide the estimates when any requirement or Jira is for testing ?
Where all can the tags be used? Can they be used before Feature keyword in the feature file? Or do they have to be used only before the scenario/scenario outline?
I keep getting an error when running the Runner file in this format: When("user logs in with the demouser and review123", () -> { // Write code here that turns the phrase above into concrete actions throw new io.cucumber.java8.PendingException(); }); Can you suggest how the console output can be updated the way you have shown ?
Here is my runner and Feature file.. Kindly suggest: @RunWith(Cucumber.class) @CucumberOptions( features= {"src/test/java/Feature/Demo.feature"},//the path for the feature file glue= {"stepdefinition"},//package name for stepdefinition plugin = {"pretty","html:test-output", "json:json_output/cucumber.json" , "junit:junit_xml/cucumber.xml"},//generate different types of reporting monochrome = true,//display in a proper readable format strict = true, dryRun = true//mapping is proper between feature and step definition ) public class Runner { } Feature File: Feature: Validate Sales Demo IDs Scenario Outline: Ensure the Sales Demo IDs navigates to all pages Given the myCigna demo environment is launched When user logs in with the and Then validate that the user is logged in Examples: |username|password| |jpmctest1|cigna1| |demouser|review123|
Today the same interview question was asked.. I wish I could have seen this video earlier.. I am rushing for interview and referring videos In jumbled way to save time .. I know this shortcut would be a bad practice .. I will practice things.
Hi Naveen, If I create a seperate stepDefinition to add the new contacts, I will have to initialize the driver again. How do i tackle this ?? Do we need to create a base class here?
Hi Naveen, I am new to cucumber and i am going through series of videos on Cucumber one by one. The videos are really very good and helpful. I am stuck at one point. For Data driven testing using Examples keyword and Scenario Outline, i am getting initialization error as "Method 'initializationError' not found. Opening the test class". To eliminate the error i have tried different combinations of Cucumber - Java, Junit and Core jars but not able to resolve the issue. Without examples and wi have to do to rectify the ith Scenario it is working fine. Could you please suggest what i have to do to rectify the error.
Hi Naveen, I am trying to map but non of the feature steps getting mapped with step definition.unable to launch the browser even though same thing have written like VEDIO. Please help
Hi Naveen/All, the new freeCRM site has title as 'Cogmento CRM' before and after login. Please suggest some ways of doing assertions in this case. Like assertequals, is there any way we can check using contains as a keyword?
Hii Naveen How to run particular Step Definition file ..i have problem in running a particular step definition file ..when i gave path of Step Definition file on Console shows Scenarios Skipped and Steps Skipped...
Hi naveen Thanks for the video Just 1 question in parameterisation with examples keyword y u were entering login details everytime if we were already login, We should just add contacts one by one by using loop. If you change that thing here, it will increase confidence of the member. Thanks
Hi naveen, you have updated login step definition file to cover test scripts for Contacts. If i will create new step definition file for Contact and adding all code in contacts file and then i want to run Login and Contact in one go . How we can do this in Cucumber. What i have to write in Runner class for running 2 test case in one go Test case 1: Login functionality Test case 2: Create Contact functionality
Hi Naveen, Thank you for your video. I have a problem that create 100 test accounts through registration page. Should I use scenario outline to create them?
Is "format" cucumber option is deprecated now ?Because when now im Working on the cucumber thrn im not getting format under the cucumber options.Please reply back..........
Hi all I am not able to use Examples keyword with scenario outline. initialization error I have tried all the maven dependencies still not able to find it.
Hi Sir, When we pass username and password in Examples using pipe this is clear to me but when we execute the test second username and password how is it wrong . We already define there | tom | test456 . then why it is going to failed
Good Job done Naveen, Very well explained. but pls let me know how to implement waits in BDD as I am not able to login with valid cred may be bcoz the other browser session is staring before completion of login in first. Correct me If I am wrong.
cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'StepDefinition.LoginStepDefinition.title_of_page_is_FreeCRM(String,String) in file:/C:/CucumberProjectWorkspace/FreeCRM_BDDFramework/target/classes/' with pattern [^User enters "[^\"]*" and "[^\"]*"$] is declared with 2 parameters. However, the gherkin step has 0 arguments []. Step: Then User enters "test" and "123456" I am getting this error and the pom.xml is as seen in the github shared
I am getting Failed to create scenario runner Cucumber exception, tried updating the dependencies but still I face this exception. Can anyone please let me know how to resolve it? nothing found in google for this error
Hi Abhishek Rana, I am also facing the same problem while using examples keyword with scenario outline. Could you please help me if you resolved this issue. Thanks in advance!
@@kishoretalatam376 am also facing same issue in Scenario outline implementation , could you please help me out. getting "" cucumber.runtime.RuntimeOptionsFactory.(Ljava/lang/Class;)V"" error
Hi All, Please update the latest Cucumber Dependencies before using Examples feature, get it from here:
github.com/naveenanimation20/CucumberSeleniumFramework/blob/master/pom.xml
I was scared to use cucumber. After watching this series of videos I got the confidence to use cucumber. Thanks a lot Naveen.
Thank you for uploading this treasure of Selenium/Cucumber on youtube. You have a great teaching technique and like the way how you go to the core to explain even simple things. I have to mention this, whenever I listen to your videos, I envision professor from Money Heist series lol. Keep up the good work and again Thank You for these valuable tutorials.
Great explanation. I am in a project where I will work with Cucumber and Selenium. Your videos are very useful for me. Thanks.
I can see why people are moving more towards BDD framework than TDD. Gr8 job Naveen !
I was confused how to use cucumber with selenium, your tutorials are giving very useful information. After watch your cucumber tutorials I can use cucumber without any doubt. Your automation videos are helping me to transform from Manual to Automation Tester.
Thanks
Thank you so much Naveen sir
You are really good trainer and very good teacher I ever saw...
Really thank you
Nice and very clear explanations, Thank you so much Naveen
Thanks a lot naveen. Great teacher you are. Just bcoz of ur videos I am able to code.
Glad it was helpful 😊
Very Nice explanation Naveen.You are doing a Great Job.God Bless u.
Hi Naveen,
Thanks again for such a wonderful video! Just because of your earlier videos I followed for Se+TestNG+Maven I was able to script & successfully run Cucumber + Junit in less than 2 hrs for Facebook signup page without any difficulties. I cant thank you enough for the kind of detailed hands on experience I gained and already got an job offer in UK. I have one more interview tomorrow which is for Automation Architect which if I clear would be achievement in itself for me and all credits to YOU for such amazing automation videos!
Best Regards!
That's great, keep learning:)
naveen bro , your video is very helpful .I'm learning lot of stuff from your videos
Thank You .
Thanks for this Awesome tutorial.... I have a qstion/doubt here..
>>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file looks like in that case???
Thanks in advance
Hi Naveen, Your are Explain all videos in simple manner, Nice
This is awesome vedio... Thank you naveen.. I am getting lot of confidence after watching this vedios... Thank you so much.. 😚😚
Thank you so much sir..... Bz of you I understand cucumber BDD framework...
Thanks a lot Naveen :) excellent video
This is Nobel work by Naveen sir
Really superb videos for understanding cucmber ,thank u so much
Hi Naveen,
How to deal with excel (read and write)sheet in BDD ? and what is imperative and declarative feature file ?
Thank you so much, Naveen, so Nice and very clear explanations of data-driven testing in cucumber
Literally u r the best person in the world. The way u teach, the you explain. I become fan of you Naveen. And because of you I am "QA Automation Engineer". One thing is clicking me is what if we drive data from Excel ?? Can we integrate Apache POI in BDD also just like in TestNG ?? Please let me know
Your effort is really appreciable. Thank you so much.
Hi Naveen Thanks for your video great learning. In cucumber is it necessary to create page wise feature file ? If we create only one feature file then how login scenario steps gets called on next scenario steps. Or we have to repeat the login steps again.
Hi Naveen for different modules can we create separate feature files or in one file only we can write.
For separate feature files ,how we can write step definition and runner class file
Hi Naveen instead of opening and closing the browser to write firstname lastname and position can we just take one login and perform 3 different data for forms?
Thank you sir 🙂
Excellent video Naveen. This is very helpful video for cucumber beginners.
Just one query that, how do we reuse the code.
For example: i would like to create a one login method which can be called in different tests .i.e in other feature and stepdefinition files.
i didn't try this but probably you could work.. say you have Login.java, Home.java (page objects class) and you have 1 method loginWithPassword() . you can call this method in your home stepdefinition file in a method with @Before annotation (cucumber annotation)
Thanks for this awesome tutorial. I have a question/doubt here.
>>> If the user keeps adding multiple contacts without logging out and logging in again for adding 2nd contact, how will the feature file look like in that case???
Thanks in advance!!!
Hi Naveen,
while giving the with examples keyword, I am getting error in the login feature file. when I parameterize the Then user enters "" and "". When I try to run the runner class by providing the dryrun as true, I am getting a initialization error. Please help.
+Pritam Routray plz update your dependencies with the latest versions. Refer the latest pom.xml file in my GIT REPO.
Thanks Naveen it's working now. I watched your both the videos 1st and 2nd of Cucumber framework and followed it and all was working fine. But while watching your 3rd and latest video I had to update the pom.xml where as it no where mentioned in your 3rd video.
Naveen can you please share your email id please. I wanted to discuss some stuff regarding selenium. Please share.
Naveen,
Why the format in the TestRunner class has been stroked out?
Hi Naveen Thank You , the videos are really very helpful to understand the concepts clearly..I had a question on test estimates being provided for the automation projects. When they ask in the interview on how do you provide the estimates when any requirement or Jira is for testing ?
Thanks very useful 👍
same script i have written for this scenario..but somehow this frame "mainpane1" is not getting highlighted unable to mouseover on "Contacts"
same problem is with me where IDE says can not locate ID or name 'mainpanel'.. Please some one help with this
Where all can the tags be used? Can they be used before Feature keyword in the feature file? Or do they have to be used only before the scenario/scenario outline?
Why you not created second StepDef file as created the second feature file for contact form?
What happened to the freeCRM site? It doesn't allow me to login.
I keep getting an error when running the Runner file in this format:
When("user logs in with the demouser and review123", () -> {
// Write code here that turns the phrase above into concrete actions
throw new io.cucumber.java8.PendingException();
});
Can you suggest how the console output can be updated the way you have shown ?
Here is my runner and Feature file.. Kindly suggest:
@RunWith(Cucumber.class)
@CucumberOptions(
features= {"src/test/java/Feature/Demo.feature"},//the path for the feature file
glue= {"stepdefinition"},//package name for stepdefinition
plugin = {"pretty","html:test-output", "json:json_output/cucumber.json" , "junit:junit_xml/cucumber.xml"},//generate different types of reporting
monochrome = true,//display in a proper readable format
strict = true,
dryRun = true//mapping is proper between feature and step definition
)
public class Runner {
}
Feature File:
Feature: Validate Sales Demo IDs
Scenario Outline: Ensure the Sales Demo IDs navigates to all pages
Given the myCigna demo environment is launched
When user logs in with the and
Then validate that the user is logged in
Examples:
|username|password|
|jpmctest1|cigna1|
|demouser|review123|
Today the same interview question was asked.. I wish I could have seen this video earlier.. I am rushing for interview and referring videos In jumbled way to save time .. I know this shortcut would be a bad practice .. I will practice things.
Hi Naveen,
If I create a seperate stepDefinition to add the new contacts, I will have to initialize the driver again. How do i tackle this ?? Do we need to create a base class here?
Hi Naveen, I am new to cucumber and i am going through series of videos on Cucumber one by one. The videos are really very good and helpful.
I am stuck at one point. For Data driven testing using Examples keyword and Scenario Outline, i am getting initialization error as "Method 'initializationError' not found. Opening the test class". To eliminate the error i have tried different combinations of Cucumber - Java, Junit and Core jars but not able to resolve the issue. Without examples and wi have to do to rectify the ith Scenario it is working fine. Could you please suggest what i have to do to rectify the error.
Hi Naveen,
I am trying to map but non of the feature steps getting mapped with step definition.unable to launch the browser even though same thing have written like VEDIO.
Please help
Hi Naveen
Can you please add video for cucumber interview questions
Hi Naveen/All, the new freeCRM site has title as 'Cogmento CRM' before and after login. Please suggest some ways of doing assertions in this case. Like assertequals, is there any way we can check using contains as a keyword?
Hi Naveen, Do you have plan to make videos on Docker ?
Hii Naveen How to run particular Step Definition file ..i have problem in running a particular step definition file ..when i gave path of Step Definition file on Console shows Scenarios Skipped and Steps Skipped...
Hi naveen
Thanks for the video
Just 1 question in parameterisation with examples keyword
y u were entering login details everytime if we were already login, We should just add contacts one by one by using loop.
If you change that thing here, it will increase confidence of the member.
Thanks
Hi Naveen, seems like format Option has been deprecated.Could you please let me know what is the option to use for reporting?
I had a problem with list report, it was not complete. Insert "stepNotifications=true" into CucumberOptions and the junit report show all steps.
Hi naveen, you have updated login step definition file to cover test scripts for Contacts.
If i will create new step definition file for Contact and adding all code in contacts file and then i want to run Login and Contact in one go .
How we can do this in Cucumber. What i have to write in Runner class for running 2 test case in one go
Test case 1: Login functionality
Test case 2: Create Contact functionality
Hi Naveen,
Thank you for your video. I have a problem that create 100 test accounts through registration page. Should I use scenario outline to create them?
How can I get data from Excel file for the Cucumber BDD Framework? Is there any video?
Hi Naveen ,
Awesome tutorial!! Can u also explain how to fetch data from Excel sheet in BDD framework..
Is "format" cucumber option is deprecated now ?Because when now im Working on the cucumber thrn im not getting format under the cucumber options.Please reply back..........
Hello sir, is it possible to pass values from excel to feature file instead of writing them in feature file itself
Hi all I am not able to use Examples keyword with scenario outline. initialization error I have tried all the maven dependencies still not able to find it.
For few data's we can keep the data in examples...but how to manage the big data in real time ?...we will not use excel for data ?
can we reuse Examples: to verify the name on homepage after we login in different scenario
Hi Naveen, How to run multiple feature file with single runner file.
Hi Sir, When we pass username and password in Examples using pipe this is clear to me but when we execute the test second username and password how is it wrong . We already define there | tom | test456 . then why it is going to failed
hi,
how to run all scenario in one browser, because for every login details opens new browser?
If frame is not available means......any alternate solutions is available.......how to move the mouse and click the link
Good Job done Naveen, Very well explained. but pls let me know how to implement waits in BDD as I am not able to login with valid cred may be bcoz the other browser session is staring before completion of login in first. Correct me If I am wrong.
Issue resolved, Stupid mistake :-P. However still want to know how to implement waits.
did you discuss the tags or I missed?
Sir why for second record you are opening the browser again
cucumber.runtime.CucumberException: Arity mismatch: Step Definition 'StepDefinition.LoginStepDefinition.title_of_page_is_FreeCRM(String,String) in file:/C:/CucumberProjectWorkspace/FreeCRM_BDDFramework/target/classes/' with pattern [^User enters "[^\"]*" and "[^\"]*"$] is declared with 2 parameters. However, the gherkin step has 0 arguments [].
Step: Then User enters "test" and "123456" I am getting this error and the pom.xml is as seen in the github shared
Hi Naveen, Please guide me how to run cucumber with multiple browsers.
very helpful
Hi Naveen, for me format tag in runner class is deprecated.
I am also facing the same issue..!
Is there any shortcut to find duplicate step definition
Thank u so much
I am getting Failed to create scenario runner Cucumber exception, tried updating the dependencies but still I face this exception. Can anyone please let me know how to resolve it?
nothing found in google for this error
Hi
Abhishek Rana, I am also facing the same problem while using examples keyword with scenario outline. Could you please help me if you resolved this issue. Thanks in advance!
@@kishoretalatam376 try update the dependecy cucumber java and cucumber junit to 1.2.5 version
@@prettyLearn23 thank you
@@kishoretalatam376 am also facing same issue in Scenario outline implementation , could you please help me out. getting "" cucumber.runtime.RuntimeOptionsFactory.(Ljava/lang/Class;)V"" error
excellent well briefed Tutorial! - great naveen
Hi Naveen, Free CRM website is getting redirected to freecrm.co.in/. Could you please verify once.Due to which code is getting failed.
freeCRM is not working now and your user name and password is also not working . PLEASE help me
Has anyone encountered logging issues with Freecrm. Every time, I log in, I am taken back to the same page.
Free crm link is not working plz share me the link
Part 1 n part 2 link
here is the full playlist: ruclips.net/video/vHzMJuc9Zuk/видео.html