Somesh Rathi
2016-04-20 04:51:51 UTC
Permalink
Hi All,Raw Message
I have feature file Scenario like below. Here instead of specifying the input into the "Examples" section , i want to read from external CSV file.
My step file ( where i write step definition ) is in java language.
I googled a lot before posting into this forum, but i couldnt find any solution for java on how to read input from CSV file into feature file. I found some solution for ruby.
But we are not using ruby language to write step defintion.
Scenario Outline: Testing to verify service returns till date response when passing all the mandatory parameters
When I pass the CIF <CIF>,BU <BU>
And I hit the service
And I Check for the Success Status Code
Examples:
|CIF|BU|
| 12345|58|
| 98765|59|
I could write the new step , for e.g. Read data from <File> , corresponding step defintion (java file) - read the values from CSV and assign to variables like CIF , BU.
However problem is i wanted to run the same scenario for different data set ( for e.g. for second record in table), value of variables like BU , CIF should change.
my CSV file is like data.csv
CIF,BU
12345,58
98765,59
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.