Is there a way to run a scenario multiple times based on the data sets specified in a yaml/json file ? #1876
ayankumaar
started this conversation in
General
Replies: 1 comment 15 replies
-
|
There is no direct support for this. But you could write a script to parse the YAML to generate csv's and a command or script to run scenarios by name using |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to specify data sets in a yaml file and along with that I would like to specify the specs and scenarios within it to run. The actual data sets will be specified in a csv file. The yaml file will just be used to specify which data set to be picked. For each data set specified I would like to run each scenario once. Is there any way in gauge to achieve this ?
Here is a sample yaml file that I have created for this purpose.
TestInfo.yaml
command:
Creating Sample Spec for Automation Demo(spec): Register a user Automation Demo(scenario)
Search for a string(spec): Search for a string in google(scenario)
dataset:
DS1, DS2, DS3, DS4
---------------------------------------- End of Yaml File---------------------------------------
My requirement is to run scenario 1- Register a user Automation Demo four times (one time each with DS1,DS2,DS3,DS4)
and then run scenario 2- Search for a string in google four times (one time each with DS1,DS2,DS3,DS4)
My configuration is given below:
Gauge version: 1.1.4
Plugins
dotnet (0.1.9)
html-report (4.0.8)
screenshot (0.0.1)
I am using gauge with C#.
I have already looked into the following issues:
#1240 and #1242. From these two I came across the concept of config.yaml file. But, didn't find any documentation or example on that. If there is a way to achieve my requirement using that then I would like to see an example on that.
Beta Was this translation helpful? Give feedback.
All reactions