1.

What Is The Default Time For A Protractor With Jasmine Spec To Fail And Can I Change It?

Answer»

By default, any spec in Protractor will fail after a period of 30 SECONDS because that is the default time out for a Jasmine spec to fail.

Yes, this timeout period can be configured to be increased or decreased. In ORDER to change the default timeout period for all specs, you need to add

JasmineNodeOpts: {defaultTimeoutInterval: timeout in millis}

To you conf.js file, where the second option is the time period that you WANT to set.

Note: In CASE you’re using with Mocha, this can be set using mocha. Opts file.

By default, any spec in Protractor will fail after a period of 30 seconds because that is the default time out for a Jasmine spec to fail.

Yes, this timeout period can be configured to be increased or decreased. In order to change the default timeout period for all specs, you need to add

JasmineNodeOpts: {defaultTimeoutInterval: timeout in millis}

To you conf.js file, where the second option is the time period that you want to set.

Note: In case you’re using with Mocha, this can be set using mocha. Opts file.



Discussion

No Comment Found