'Karate : repeat a request

I want to repeat 6 times a post request of a scenario:

Given url <url>
And path 'toto'
And header Authorization = 'Bearer ' + <token>
And request processData.signer1
When method post
Then status 201

I have seen the "repeat" method in the documentation, but I have the impression that it is not suitable for my case

Thanks



Solution 1:[1]

Use 2 feature files. Then you can do this:

* karate.repeat(3, () => karate.call('called.feature'))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Peter Thomas