Forum Discussion

jackluo1981's avatar
jackluo1981
New Contributor
12 years ago

Do not fail the test step if it times out

I got a scenario as following: there is a particular rest api that will take a long time to run and I knew it's gonna be time out which is a normal process here, then I will use another api to check the run status. I knew it's a bad design. If it takes a long time to run something on the server side then server should return a message rather than leaving the request times out. Unfortunately I don't have control around the server.

So I'm looking for a setting like "do not fail the test step if it times out" but I couldn't find it. The test step always failed whenever there's a timeout error.

Anybody got some idea will be appreciated.

Thanks

1 Reply

  • nmrao's avatar
    nmrao
    Community Hero
    May be you should talk to team who is developing the application to suggest that.
    Looks, the job is an asynchronous. But, when user sumbits the request, it should show a synchronous response and say something like your request is submitted and provide some transaction or event id if applicable. And later, user can get the status using whatever supproted criteria.