Gopesh Sardana
Gopesh Sardana

Reputation: 11

How to implement for loop in karate using feature files

I want to call a feature file 15 times and each time output of previous call will go in next call's input

just as this loop use count's updated value in next iteration:

for(i=0;i<4;i++)
{
j=count+i;

count = count + 1;
}

Upvotes: 1

Views: 4716

Answers (1)

Peter Thomas
Peter Thomas

Reputation: 58058

Read the docs: https://github.com/intuit/karate#data-driven-features

* def result = call read('cat-create.feature') kittens

And __loop will be a built-in variable.

Upvotes: 1

Related Questions