30000毫秒后量角器超时

时间:2014-10-19 11:50:43

标签: windows selenium-webdriver jasmine nant protractor

我正在尝试将量角器e2e测试整合到我的巡航控制中我正在使用以下测试规范:

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');
    })
});

当我运行此规范虽然命令行工作正常。但是,当我在构建配置中将其作为nant目标运行时,它表示存在超时错误:

31mtimeout: timed out after 30000 msec waiting for spec to complete

如何通过cc.net进行量角器e2e测试?

2 个答案:

答案 0 :(得分:1)

您可以尝试设置超时间隔,例如:jasmineNodeOpts: {defaultTimeoutInterval: 500000}更多信息here

答案 1 :(得分:0)

尝试在配置文件中添加以下timeoutinterval

jasmineNodeOpts: {
defaultTimeoutInterval: 360000
}
allScriptsTimeout: 360000,

您可以修改超时的毫秒数