1

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;
}
1
  • What is your real life use case? You are calling the same feature file 15 times, in that case what will be the input to the first call as there is no preceding call? If the 15 is a static number, you can chain the request one after another in a single scenario. Commented Feb 6, 2020 at 11:23

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.