Forum Discussion
Awesome
17 years agoFrequent Contributor
so i wrote something like:
fieldList = parse out all fields from wsdl
for (field in fieldList){
create request_for_field
set request values to field
create assertion for field
}
now if i run my test case this groovy script will create a request for each field each with an assertion. after the groovy script finishes each request will run. and i quickly see which request failed, thus identifying which field didn't assert for the response. so far so good.
the question still remains is this the most efficient way to do this? since this script will be building ~ 100 requests. is it better to try and loop around one request and pass it a field each time (of course this means looping ~ 100 around one request...)
fieldList = parse out all fields from wsdl
for (field in fieldList){
create request_for_field
set request values to field
create assertion for field
}
now if i run my test case this groovy script will create a request for each field each with an assertion. after the groovy script finishes each request will run. and i quickly see which request failed, thus identifying which field didn't assert for the response. so far so good.
the question still remains is this the most efficient way to do this? since this script will be building ~ 100 requests. is it better to try and loop around one request and pass it a field each time (of course this means looping ~ 100 around one request...)