I have a TeamCity configuration that deploys the assembly to the QA server and, after its successful operation, runs Protractor e2e tests. I can run the tests manually from the checkout directory, and they succeed, but on TeamCity they just have a timeout (I increased the timeout threshold to 3 minutes, and now they take 3 minutes before the time runs out).
The exception that I see is:
[should find all page controls] [Test Error Output] A Jasmine spec timed out. Resetting the WebDriver Control Flow. The last active task was: Protractor.get(http://[QA SERVER]/#/) - reset url at [object Object].webdriver.WebDriver.schedule at [object Object].Protractor.executeScript_ [...] A Jasmine spec timed out. Resetting the WebDriver Control Flow. The last active task was: unknown [17:27:00][should find all page controls] Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. [17:27:00] [should find all page controls] Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at [object Object]._onTimeout (C:\Users\user\AppData\Roaming\npm\node_modules\protractor\node_modules\jasmine\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:1782:23) at Timer.listOnTimeout (timers.js:110:15)
I execute protractor as a Command line -> Executable file ( protractor ), and the parameters are protractor.conf.ci.js .
The contents of my protractor configuration file:
exports.config = { framework: "jasmine2", directConnect: true, baseUrl: 'http://[local server path]/', allScriptsTimeout: 60000, capabilities: { 'browserName': 'chrome' }, jasmineNodeOpts: { defaultTimeoutInterval: 120000 }, specs: [ 'ui/*.uispec.js' ], onPrepare: function () { var jasmineReporters = require('jasmine-reporters'); jasmine.getEnv().addReporter(new jasmineReporters.TeamCityReporter()); } }
Am I missing something? Something seems to block execution, but the Windows firewall is turned off and on again, the same tests run just fine if they run manually (using the same user account as for TeamCity agents).
Thanks!
source share