2014-10-19 152 views
3

我試着量角器端到端測試在我的CruiseControl的整合我使用以下testspec:量角器超時後30000msec

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

當我運行該規範雖然在命令行中工作正常。然而,當我運行它作爲構建配置南特目標,它說有一個超時錯誤:

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

我怎樣才能讓我的量角器端對端測試布萊恩雖然cc.net?

+0

你有沒有設法解決它?與teamcity有類似的問題。不要認爲它的超時。 – 2015-04-08 07:52:57

回答

1

你可以嘗試設置超時時間間隔,例如:jasmineNodeOpts: {defaultTimeoutInterval: 500000}更多信息here

+0

它如何解決這個問題? 30秒應該足以裝載頁面。我有同樣的問題,browser.driver.get只是掛起。 – 2015-04-08 07:56:35

0

嘗試在配置文件中添加以下timeoutinterval

jasmineNodeOpts: { 
defaultTimeoutInterval: 360000 
} 
allScriptsTimeout: 360000, 

您可以修改超時的毫秒

相關問題