简体   繁体   中英

how to set timer in a loop based on response time?

I'm trying to archive the following test with a loop of 50 HTTP requests:

  • when the response of the current request is received, the next request is made
  • if the response is not completed within 60 seconds, the current request is terminated and the next request is executed.

I have already put a loop and a constant timer in it. The problem with constant timer is that it does not care about the request's response. Hence each request is executed based on a constant time rather than each other's result.

Please help me if you know how to. Thanks alot.

Use response timeouts, not Timers here. Set Response Timeout to 60 seconds and that's it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM