support calling a scenario for data set up of dynamic scenario outlines
See original GitHub issuebased on discussion in #1903
As of today this works:
Feature:
@ignore @setup
Scenario:
* def data = [{a: 1}, {a: 2}]
Scenario:
* def temp = karate.call('@setup').data
* match temp == [{a: 1}, {a: 2}]
what needs to work is this:
Feature:
@ignore @setup
Scenario:
* def data = [{a: 1}, {a: 2}]
Scenario Outline:
* print __row
Examples:
| karate.call('@setup').data |
right now the karate.call()
fails, there is some work to do in sequencing the call, making sure it runs at the time we init the feature etc. cc @edwardsph @joelpramos
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (22 by maintainers)
Top Results From Across the Web
Scenario Outline with Examples keyword in #Cucumber (Data ...
Cucumber #CucumberLatest #NaveenAutomationLabsIn this video, I have explained what is Scenario Outline with Examples keyword in #Cucumber ...
Read more >Dynamic Scenario Outline does not evaluate background ...
When evaluating a dynamic Scenario Outline, the Background section isn't evaluated correctly and the first action in the scenario outline ...
Read more >Behave: Writing a Scenario Outline with dynamic examples
I've come up with another solution (behave-1.2.6):. I managed to dynamically create examples for a Scenario Outline by using before_feature ...
Read more >Data Driven Testing Using Examples Keyword in SpecFlow
Examples – All scenario outlines have to be followed with the Examples section. This contains the data that has to be passed on...
Read more >How do I share multiple scenarios between feature files?
In cases such as these, the set-up and the contents of the scenarios are ... Scenario outlines are the usual way of reducing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 This is a great solution, thanks.
1.3.0 released