문제

I have Web Driver code that works without issue when running on a local instance of a browser. My code interacts with the browser, but has a period where it kicks off some background tasks via terminal in order to set up data for the remainder of the test. This is an end to end test and it needs to execute in this order, leaving the browser idle for a short period of time, usually under 5 minutes. After the background tasks complete, the browser is then again interacted with.

Unfortunately when I run my rests remotely from Sauce Labs, when running the background tasks Sauce Labs finds the browser as being inactive for longer than 90 seconds and assumes there is an issue. This results in a failure even though the test never fails. I can't seem to find anything in the documentation regarding how to increase the idle timeout. Is there a way to do this?

도움이 되었습니까?

해결책

Saucelabs has a few different types of timeouts:

  • Max test duration
  • Command timeout
  • Idle test timeout

More info: https://wiki.saucelabs.com/display/DOCS/Test+Configuration+Options#TestConfigurationOptions-Timeouts

Either the max duration or idle timeout should help you out. I think the idle time still burns down sauce test minutes though.

다른 팁

when you set up your desired_capabilities add:

desired_capabilities["idle-timeout"] = "180"

I did 180 seconds here, but you can do whatever...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top