#12 - Scenario Outline with Examples keyword in

  Рет қаралды 57,680

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

Пікірлер: 57
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
Full Cucumber code repo: github.com/naveenanimation20/Cucumber6LatestFeatures
@tharvik1
@tharvik1 4 жыл бұрын
Hi Naveen Good work, it is definitely a bug, however the bug is at the step generation, if the examples contains both int and double, it should just generate a method with double param only. I verified by removing the int method and keeping the double method, the execution worked well. So instead of resorting to String where lots of parsing need to be done within step code, or reverting to 4.8.1missig some other good stuff from latest version. just removing the overloaded method should work fine. I enjoy learning from you, looking forward to more videos from you.
@vinharman2192
@vinharman2192 4 жыл бұрын
Many Thanks, Naveen for your tremendous efforts in teaching the needy.
@sz3uz
@sz3uz 3 жыл бұрын
Best tutorial for automation i recommend for anyone :)
@kavishautomationfactory170
@kavishautomationfactory170 4 жыл бұрын
Hi Naveen, this kind of learning is very important nowadays. Please keep doing this wonderful job.
@mazharkhatri779
@mazharkhatri779 4 жыл бұрын
True
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
I will try my best :)
@rohanchristopher2265
@rohanchristopher2265 2 жыл бұрын
this video is awesome
@arunsuri8568
@arunsuri8568 4 жыл бұрын
you are awesome dude.
@tulasiramsunkara
@tulasiramsunkara 4 жыл бұрын
@Naveen:: Points observed 1. If we have a double value with multiple digits eg (12,34,123). We cannot use direct parser... Solution would be instead of directly parsing the string... We can filter the string in the stepdefinition method with replaceAll("[,.]") and the parse with required wrapper class.... I thought this is one of the scenario...... Thanks for this video again..... You rocks
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
You can avoid writing double values with commas in feature file.
@tulasiramsunkara
@tulasiramsunkara 4 жыл бұрын
@@naveenautomationlabs my understanding is that if we have to validate these type of scenarios we need to play with string methods instead of avoiding those scenarios....Because we cannot avoid scenarios only because of data. Let me know if we have any other way to achieve it.
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
I'm not saying not to cover such scenarios. I'm saying you can write comma floating values with point instead of comma. So that you can avoid unnecessary string manipulations.
@tulasiramsunkara
@tulasiramsunkara 4 жыл бұрын
@@naveenautomationlabs As per my knowledge we cannot write double values with more than 5 digits without comma.... Correct me if I am wrong....
@yashuy3279
@yashuy3279 2 жыл бұрын
Thank you Sir 😊!
@anithaudhayasankar6332
@anithaudhayasankar6332 Жыл бұрын
Thank you ji🙏
@user-yb2fc1ur6g
@user-yb2fc1ur6g 3 жыл бұрын
As per my understanding ,they need to update the step definition creation part.It should not create and display 2 overloaded methods with int and double params as double can handle both.
@mazharkhatri779
@mazharkhatri779 4 жыл бұрын
For Automation from where to start beginners? Your explanation style is very nice
@swatisonawane8844
@swatisonawane8844 4 жыл бұрын
Plz anyone give rpy for the same
@tulasiramsunkara
@tulasiramsunkara 4 жыл бұрын
First you should learn any one programming language either java or python .... Then working with selenium is as easy as drinking water..... But we shouldnt learn selenium first and then any other programming language...
@mazharkhatri779
@mazharkhatri779 4 жыл бұрын
Thanks
@chitradaadikrishna6874
@chitradaadikrishna6874 2 жыл бұрын
In data driven testing multiple instances of browsers are opened at time or on a single browser it performs operation one after another .could you clarify it.
@mahiii7723
@mahiii7723 3 жыл бұрын
Hi I'm using same dependencies but my console printing scenario steps with same old black colour instead of green as in this series the only difference is i downloaded cucumber natural plugin. Is this the cause??? Please let me know
@user-yb2fc1ur6g
@user-yb2fc1ur6g 4 жыл бұрын
Can we use single method with double parameter for tax and final amount ....?
@ashutoshbharati
@ashutoshbharati 2 жыл бұрын
Can we use data table with Scenario Outline ?
@derrukumar3545
@derrukumar3545 2 жыл бұрын
Thank you sir
@menagak1356
@menagak1356 2 жыл бұрын
Hi Naveen, I have one question, can we use outside values ( stored in map ) in scenario outline examples. instead of hardcode the value directly.
@rajeemega1737
@rajeemega1737 3 жыл бұрын
Hi Naveen, I'm having one query regarding passing different set of test data for a single textfield in Cucumber in a single browser without logging out from the session. For example, i have Firstname textfield - i need to pass different set of test data the field without logging out from the browser. Please help me how to achieve this.
@ashuiet
@ashuiet 4 жыл бұрын
I think 6.9 version they should address this issue because those are habitual working with Cucumber 4.x.x they will confuse and in my point of view it has to count has major bug. Otherwise we have to keep in mind to "parse" every value from examples and initially we have define "String". Thanks Naveen !!
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
Yeah already raised and they didn't accept it. Its a clear bug.
@vkmca09
@vkmca09 4 жыл бұрын
Which selenium framwork will be in demand ? In 2021
@pujasharma2937
@pujasharma2937 2 жыл бұрын
Hey Navin, Can i use different dropdown values in examples? And I select the option "" by text in drop down "#select" by JS
@vishnuchandar7073
@vishnuchandar7073 3 жыл бұрын
Hi Naveen , my doubt is we can we change the int also into double and input all the numbers in the examples as a double.
@kapilrana2361
@kapilrana2361 3 жыл бұрын
Hi Naveen, Can we use the Background keyword with Scenario Outline?
@muralimohan7005
@muralimohan7005 Жыл бұрын
Can you please make with python using pycharm Naveen and good work 👏
@LakshmiLavanya-qt2px
@LakshmiLavanya-qt2px 8 ай бұрын
I have a following scenario. Can someone explain how can the feature file be written. Need to login to a bank application with 5 different users and each user should add 5 beneficiary details.
@dnyaneshwarmore7437
@dnyaneshwarmore7437 3 жыл бұрын
Can user provide multiple examples for one scenario outline
@gorax8328
@gorax8328 3 жыл бұрын
Hi Naveen, first of all thank you so much for a wonderful cucumber series. I have one Q please, if i want to pass a date which is todays date in Example then how can I pass it? Today's date will change and I don't want to change it manually; every time i run the feature file. Is there any solution for it?
@Imran-M-
@Imran-M- 4 жыл бұрын
Hi Naveen, Is there a way to skip any row of examples table from executing without commenting it?
@abinashbehera2409
@abinashbehera2409 3 жыл бұрын
How to use the parameterization concept if we are using Background, As because Background won't come under the Scenario Outline
@arifshaik8104
@arifshaik8104 3 жыл бұрын
How can we iterate only some steps in scenario and other precondition steps should run only one time
@ahmettemel8245
@ahmettemel8245 2 жыл бұрын
thank you
@ramgyanmurty1997
@ramgyanmurty1997 2 жыл бұрын
how can i take the example data set from a json ?? I need to know this , plz help
@santoshbiswal515
@santoshbiswal515 4 жыл бұрын
Hi Naveen I implemented scenario outline but one problem I faced that is I am not able to generate report(cucumber report)...please suggest what I need to do. I already posted this in different sites but I didn't got any solution.
@tulasiramsunkara
@tulasiramsunkara 4 жыл бұрын
You should post your complete feature file to get reply.... This question seems very general....
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
exactly. please provide more details for the same.
@dishasuryawanshi2177
@dishasuryawanshi2177 3 жыл бұрын
Can anyone help me with the query that if I want to execute user name enter and password enter these 2 steps only without hardcoding ..how can I do ..as again login and following step will take time so I want to test repeatedly
@SriRam-iv9so
@SriRam-iv9so 3 жыл бұрын
How can we give alphanumeric entry using examples bro? For eg: "Pass$123"
@seconddawn9359
@seconddawn9359 3 жыл бұрын
How can we read an excel sheet from Example in scenario outline
@ragulragul1366
@ragulragul1366 Жыл бұрын
Can we use examples in Background keyword?
@ankur5510
@ankur5510 3 жыл бұрын
Hi Naveen..can you explain dependency injection in cucumber if possible for you..
@rushikeshdeshmukh3969
@rushikeshdeshmukh3969 3 жыл бұрын
Hi Naveen Can we use examples in Scenario outline title. I want to do something like this. Scenario Outline: This scenario is for Given I am on login page When I enter And I enter Then I verify home page is displayed Examples: |username|password|scenarioName| |1234|xyz_123|first user| |1235|xyz_124|second user| Can you please help me to know whether this is possible.
@rajkanjan4792
@rajkanjan4792 3 жыл бұрын
I am not sure if you tried running this or not but it works.. But it defies the purpose of running one scenario with multiple data. Cucumber is treating each row in Examples table as one scenario. So I tried 2 rows with same name "first user" but Cucumber still considers it as a separate scenario. Conclusion: It works without issues but it doesn't make much sense. Let me know if you want to try something else.
@rushikeshdeshmukh3969
@rushikeshdeshmukh3969 3 жыл бұрын
I tried this and it is not giving error, the scenario works fine, My purpose here is to give the scenario a name from example. Cucumber examples are running as expected, but the title comes out with text instead of the actual example
@rajkanjan4792
@rajkanjan4792 3 жыл бұрын
@@rushikeshdeshmukh3969 That's not the case when I run my feature file. Take a look at this output: Scenario Outline: This scenario is for "first user" # src/test/resources/AppFeatures/Dummy.feature:9 Setup Given I am on login page # null When I enter "1234" # null And I enter "xyz_123" # null Then I verify home page is displayed # null Closing out.. UNDEFINED Scenario Outline: This scenario is for "second user" # src/test/resources/AppFeatures/Dummy.feature:10 Setup Given I am on login page # null When I enter "1235" # null And I enter "xyz_124" # null Then I verify home page is displayed # null Closing out.. UNDEFINED Undefined scenarios: file:///Users/eclipse-workspace/CucumberPractices/src/test/resources/AppFeatures/Dummy.feature:9 # This scenario is for "first user" file:///Users/eclipse-workspace/CucumberPractices/src/test/resources/AppFeatures/Dummy.feature:10 # This scenario is for "second user" 2 Scenarios (2 undefined) 8 Steps (6 skipped, 2 undefined) 0m1.177s You can implement missing steps with the snippets below: @Given("I am on login page") public void i_am_on_login_page() { // Write code here that turns the phrase above into concrete actions throw new io.cucumber.java.PendingException(); } @When("I enter {string}") public void i_enter(String string) { // Write code here that turns the phrase above into concrete actions throw new io.cucumber.java.PendingException(); } @Then("I verify home page is displayed") public void i_verify_home_page_is_displayed() { // Write code here that turns the phrase above into concrete actions throw new io.cucumber.java.PendingException(); }
@yuvarajsanthanakrishnan7702
@yuvarajsanthanakrishnan7702 3 жыл бұрын
How to pass Date and Time data in Scenario Outline -- Examples. ?
@sathishyadav6517
@sathishyadav6517 2 жыл бұрын
Thank you
#10 - DataTable (asLists) in Cucumber BDD (Part 1) - Latest 2021
11:15
Naveen AutomationLabs
Рет қаралды 50 М.
Thank you mommy 😊💝 #shorts
0:24
5-Minute Crafts HOUSE
Рет қаралды 33 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Music Video)
2:50
RAAVA MUSIC
Рет қаралды 2 МЛН
요즘유행 찍는법
0:34
오마이비키 OMV
Рет қаралды 12 МЛН
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
Data Driven Testing in Cucumber BDD Framework In Selenium - Part 3
52:50
Naveen AutomationLabs
Рет қаралды 166 М.
#8 - Hooks in #Cucumber (Before/After Hooks in Cucumber)
19:05
Naveen AutomationLabs
Рет қаралды 63 М.
Selenium Cucumber Java BDD Framework 5 - Parameterization & Data Driven Testing
16:23
#6 - Tags in #Cucumber BDD Framework (Latest)
14:49
Naveen AutomationLabs
Рет қаралды 51 М.
Selenium Integration with Cucumber BDD Tool
34:39
Mukesh otwani
Рет қаралды 353 М.
Data Driven Testing in Selenium | Framework For Automation
16:13
SoftwaretestingbyMKT
Рет қаралды 4,5 М.
НИКОГДА не иди на сделку с сестрой!
0:11
Даша Боровик
Рет қаралды 729 М.
#trending #foryou #challenge #fyp #viral #short #tiktok #vs
0:15
Misiсatсh
Рет қаралды 2,4 МЛН
Американцы красят асфальт?
0:27
BAZAR CLUB
Рет қаралды 188 М.
LOVE or MONEY? ❤️💸 (PART 14)
0:47
Alan Chikin Chow
Рет қаралды 3,5 МЛН
НЕ ДАМ ЕЁ В ОБИДУ😡 #shorts
0:24
Паша Осадчий
Рет қаралды 1,6 МЛН