silvestrpeknik
11 years agoOccasional Contributor
how to ignore test step that times out?
Hello,
i have a test where the first request occasionaly times out (java.net.SocketTimeoutException: Read timed out). This happens only for the 1st request.
I need to ignore this error in my test case. I tried to get around this by creating a test step that calls the service, without any assertions. But if the request times out, it is considered failed, regardless of assertions.
After this first "fake" test step, i have number of other test steps that all must pass for the test to be considered passed, so i cannot uncheck "fail testcase on error". I also tried to find out a way to use groovy to edit the result of the test step, but i dont know how to do it.
Is there a way to ignore one particular step's result, when evaluating whole test case?
edit: this is SOAP request, in case it matters.
Thank you,
Silvestr
i have a test where the first request occasionaly times out (java.net.SocketTimeoutException: Read timed out). This happens only for the 1st request.
I need to ignore this error in my test case. I tried to get around this by creating a test step that calls the service, without any assertions. But if the request times out, it is considered failed, regardless of assertions.
After this first "fake" test step, i have number of other test steps that all must pass for the test to be considered passed, so i cannot uncheck "fail testcase on error". I also tried to find out a way to use groovy to edit the result of the test step, but i dont know how to do it.
Is there a way to ignore one particular step's result, when evaluating whole test case?
edit: this is SOAP request, in case it matters.
Thank you,
Silvestr