简体   繁体   中英

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;
}

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM