Protractor timeout after 30,000ms
I am trying to integrate protractor e2e tests in my cruisecontrol. I am using the following tests:
describe('index', function () {
var ptor;
it('should have a title', function () {
browser.get('http://juliemr.github.io/protractor-demo/');
expect(browser.getTitle()).toEqual('Super Calculator');
});
it('Check google', function () {
browser.driver.get('http://www.google.com');
})
});
When I run this spec though command line works fine. However, when I run it as the main target in the build config, it says there is a timeout error:
31mtimeout: timed out after 30000 msec waiting for spec to complete
How can I get tests of my e2e goin protractor although cc.net?
+3
user603007
source
to share
2 answers
You can try to set the time interval, for example: jasmineNodeOpts: {defaultTimeoutInterval: 500000}
more details here
+1
Dmitry
source
to share
Try to add below timeoutinterval in config file
jasmineNodeOpts: {
defaultTimeoutInterval: 360000
}
allScriptsTimeout: 360000,
You can change the milliseconds of the timeout
0
mcPetrson
source
to share