Forum Discussion

silvestrpeknik's avatar
silvestrpeknik
Occasional Contributor
11 years ago

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

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    You should move that test step to another test case and uncheck "Abort on error" for that test case. Then use a Run testcase test step to call that test case, so your test case will keep running as normal even if the request time out one fails.



    Regards,
    Marcus
    SmartBear Support