Forum Discussion

User999's avatar
3 years ago

Repeat Test Case until Successful Response

I would like to repeat a test step in my Test Case as my 3rd Test within the DataSource Loop is failing but it will work fine if I manually send it again with that particular test step and then gets the 201 created.  Endpoints and data for that service is fine.


Does anyone know of any groovy code that I could add as part of a new step to repeat the step about 2/3 times until I get a successful response?



4 Replies