Forum Discussion
omatzura
16 years agoSuper Contributor
Hi,
hmm.. easiest is just to wrap the code in a try-catch for NPE, but otherwise you could check for the response with
hope this helps!
regards,
/Ole
eviware.com
hmm.. easiest is just to wrap the code in a try-catch for NPE, but otherwise you could check for the response with
def response = testRunner.testCase.testSteps["GetRecommendationItemsInList - Programs"].testRequest.response
if( response == null || response.contentLength == 0 )
{
...
}
else
{
...
}
hope this helps!
regards,
/Ole
eviware.com
Related Content
- 11 months agoIrinaManea
- 2 years agonormgean
- 6 months agonado