I have seen the below method in one of the posts, I tried with that but I’m getting an error as “Caused by: java.lang.IllegalArgumentException: requirement failed: Scenario names must be unique but found duplicates”.
def scn(feederName: String) = scenario(“foo”)…feed(csv(feederName))…
Can anyone Help with this issue.
Hi Bala Krishnan,
scn is a variable name basically. Try giving different names for each of scn like scn1,scn2 and so on.
Thanks for the Reply. But here scn is a function name where I need to call that function(scn) with multiple CSV files.
If you have any idea kindly help with this issue.
Bala Krishnan C
Give different names for those functions.
Again Thanks for your comment. But I need the scenario like below one :
Where scn is a function which is called multiple times with different CSV file. My requirement is like the above one. Can you help me if you had any idea?
The scenarios created by the scn function all have the same name - “foo”.
You need to pass on the scenario name along with the feeder name
Tried with below code. It Worked for me. Scenario Name should be unique.
def scn(fileName: String)= scenario(fileName).feed(csv(fileName))