I am trying to test a scenario where I need to post a request 100 times (this is not a performance testing). I could use the table functionality by setting up each 100 rows, where each row represent a request. However this will be long tedious.
So I found Karate.repeat and was hoping this could solve the problem. I'm just wondering if there is another way to achieve my goal.
* def users = function(i){ call read("classpath:v1/createCustomer.feature") { "firstName": '#(firstName)', "lastName": '#(lastName)' }
* def usersResult = karate.repeat(2, users )
* match usersResult [*].responseStatus == [204, 204]
I expect the feature to be called twice.