Awesome
17 years agoFrequent Contributor
what is the best way to test many (~100) submission of the same requests
i have a request which takes query string (similar to a sql query). so i can query 'fields' (n=100) in a record with the request and the response is the value of the field.
what is the best way to test/assert the responses:
1) using a groovy script, i was thinking to create a request for each field that i can query for, and creating an assertion for the field at the same time. this would create ~ 100 request.
but then if i want to run the test again i would have delete all these request to make sure i'm starting from an "initialized state".
2) the other thought was to loop around one request and pass in a new field value each time, one by one. but how would i verify/grab the results of the assertions?
hope that made sense.
Thanks in advance!
what is the best way to test/assert the responses:
1) using a groovy script, i was thinking to create a request for each field that i can query for, and creating an assertion for the field at the same time. this would create ~ 100 request.
but then if i want to run the test again i would have delete all these request to make sure i'm starting from an "initialized state".
2) the other thought was to loop around one request and pass in a new field value each time, one by one. but how would i verify/grab the results of the assertions?
hope that made sense.
Thanks in advance!