angular / protractor

E2E test framework for Angular apps
http://www.protractortest.org
MIT License
8.75k stars 2.31k forks source link

setScriptTimeout (allScriptsTimeout) fails in SauceLabs (http://saucelabs.com) and there is no option to disable it #4869

Open renatoch opened 6 years ago

renatoch commented 6 years ago

Bug report

Protractor tries to set setScriptTimeout using value allScriptsTimeout. In SauceLabs, that causes the error reported above, so besides not working, it consumes time from the test run.

https://github.com/angular/protractor/blob/0fbc2c0ac12992bd61712188a96aef6684bef0c1/lib/runner.ts#L281

It could both:

CrispusDH commented 6 years ago

I suggest to use defaultTimeoutInterval only. There is almost the same idea. could you explain what your purpose in using allScriptsTimeout?

renatoch commented 6 years ago

The issue is that protractor runs setScriptTimeout, even if I don't set any value, using the default value 0.

Have a look at the default behavior on the code line I've mentioned, it's executed regardless if the parameter has been set or not.

joelgrimberg commented 5 years ago

@renatoch did you find a fix or workaround for this issue?

renatoch commented 5 years ago

@joelgrim Unfortunately not, I ended up accepting the time loss and ignoring the error messages...