always learning something new in Naveens Channel. this guy is not only teaching us tools, programming, framework and so on he is sending us a message on the background how to be a passionate about what we are trying to achieve
Trying to figure out how to write Gherkin tests at work and looking at the best practices for gherkin. This was confusing because i didnt see how their examples would fit into automation code. It would always be Given user is on the product page When ... Then... I was thinking how does the user get to the product page when they have to login and do some navigating which was contradicting cucumber implementaion where you have a method that would be re-used over and over but in this example you would have to write out a new method for the user to login and navigate to the product page. Now i can use background to call methods @Given @When @Then to get me to the product page re-using previous code. This tutorial cleared all that up for me thank you.
I dont want to create multiple runner classes for each and every Feature. Can I directly run my Feature file through Maven commands without creating Runner class?
Naveen your really good, but when you explain an issue and before the explanation, you give us real Exp it is super good like in this video. I know most of your topics have real Exp but some of them not, please start with Exp then jump to the technology. I really Appreciated you Naveen for the hard work you do.
Thanks for sharing the Background concept, I have one query that how 'Maven' identifies which 'TestRunner' file it needs to execute (in case there are more than one files present)
Hi Naveen, On using the background feature, the basic steps are executing fine but when the actual step of the scenario comes, the browser opens twice. So pls suggest how to overcome it.
Hello Naveen, is there way to skip background for specific scenario inside a feature file which contains 5 scenarios. for 4 scenarios I need background and for one i don't need it. First of all is this possible or not. If possible is it best practices or not?
hi Naveen, @Naveen AutomationLabs in the above background there is "Given When And Then", in the scenario there is "When and Then". So in the final scenario we have "Given When Then And When Then" , my question is can "When" come after "Then"?
Thanks Naveen for this beautiful content but I have a small question? Suppose I write background steps for a particular feature file will they also be applicable for other feature files if same goes for step definitions as well? Can you please help me with this
Thank you sir for wonderful teaching....have one doubt,I have multiple environments on which I need to perform some tests. Each environment has its own set of urls and credentials to log in. Can we do that in background concept??
Hi Naveen Sir, I have one doubt Suppose my project consists of 5 feature files and in each feature file 2 scenarios created. In Background section i have added my Login steps in all the 5 features files.It is not the good practice to do.Kindly provide me the solution to run login steps at once against each feature
I am amazed at the creator of this programming language. Instead of using the keyword 'background', a keyword of perhaps 'repeat' could have been used instead? It's hard to remember these keywords! So foolish.
always learning something new in Naveens Channel. this guy is not only teaching us tools, programming, framework and so on
he is sending us a message on the background how to be a passionate about what we are trying to achieve
Thank u... For your help.. Understand cucumber easily.. Just no words
Most welcome 😊
Thank you for showing about the "Background" Keyword.Easy to understand.
You are welcome!
@@naveenautomationlabsyu by huh u h u hjj me ugg gy
so grateful to have your channel! Thank you for all your efforts Naveen :)
Continuously watching playlist...thanq for easy explanation 🙏
Most welcome 😊
Should we use cucumber feature file or excel file to save testing data??
Hi Sir,
Thank you so much for your wonderful teachings.
You are most welcome
How to ignore Background logic to one of the scenario in feature file?
did you got the answer
Too good explanation ,thanks a lot for this Naveen
Trying to figure out how to write Gherkin tests at work and looking at the best practices for gherkin. This was confusing because i didnt see how their examples would fit into automation code.
It would always be Given user is on the product page When ... Then... I was thinking how does the user get to the product page when they have to login and do some navigating which was contradicting cucumber implementaion where you have a method that would be re-used over and over but in this example you would have to write out a new method for the user to login and navigate to the product page.
Now i can use background to call methods @Given @When @Then to get me to the product page re-using previous code.
This tutorial cleared all that up for me thank you.
It was nice and clear explanation makes me to watch further 👌
Glad it was helpful!
I dont want to create multiple runner classes for each and every Feature. Can I directly run my Feature file through Maven commands without creating Runner class?
nice thank you 👍😊
Naveen your really good, but when you explain an issue and before the explanation, you give us real Exp it is super good like in this video. I know most of your topics have real Exp but some of them not, please start with Exp then jump to the technology. I really Appreciated you Naveen for the hard work you do.
Thanks for putting so much effort into educating us.
test-output folder is not getting generated for me in my cucumber project can you tell me what could be the reason for it
Thanks for sharing the Background concept, I have one query that how 'Maven' identifies which 'TestRunner' file it needs to execute (in case there are more than one files present)
What if I want to call background only for some scenarios? Could you please help
Hi naveen,could you please share link of this git repository
Hi Naveen,
On using the background feature, the basic steps are executing fine but when the actual step of the scenario comes, the browser opens twice. So pls suggest how to overcome it.
Can we run the background steps with the combination of tags ?If we can run it then the the tags should be written before background keyword?
Hi naveen what happens if our background fails?? Do we get any error for this
Thank you Sir 🙂
Hello Naveen, is there way to skip background for specific scenario inside a feature file which contains 5 scenarios. for 4 scenarios I need background and for one i don't need it. First of all is this possible or not. If possible is it best practices or not?
hi Naveen, @Naveen AutomationLabs in the above background there is "Given When And Then", in the scenario there is "When and Then". So in the final scenario we have "Given When Then And When Then" , my question is can "When" come after "Then"?
thank you
Hi Naveen, should we maintain a separate TestRunner file for each feature file? or can we use one TestRunner file for multiple feature files?
How to make Background data driven
Thanks Naveen for this beautiful content but I have a small question? Suppose I write background steps for a particular feature file will they also be applicable for other feature files if same goes for step definitions as well? Can you please help me with this
Thank you sir for wonderful teaching....have one doubt,I have multiple environments on which I need to perform some tests.
Each environment has its own set of urls and credentials to log in. Can we do that in background concept??
Waiting for selenium with java
Hi Naveen Sir,
I have one doubt
Suppose my project consists of 5 feature files and in each feature file 2 scenarios created.
In Background section i have added my Login steps in all the 5 features files.It is not the good practice to do.Kindly provide me the solution to run login steps at once against each feature
You can use cucumber hooks. Write your login implementation in @Before tag.
will cover this part in hooks.
I am amazed at the creator of this programming language. Instead of using the keyword 'background', a keyword of perhaps 'repeat' could have been used instead? It's hard to remember these keywords! So foolish.
Thank you