2017-02-16 62 views
0

背景:量角器停留在 「使用硒服務器在http:// ......」

我開始protractor有:

$ protractor protractor.eb.conf.js 

此指定遠程服務器的硒。

有時候我protractor測試只是停滯在這一點上:

[17:56:33] I/launcher - Running 1 instances of WebDriver 
[17:56:33] I/hosted - Using the selenium server at http://selenium-server.example.com:4444/wd/hub 

問題

需要
  1. 其他什麼信息?
    • 功能?只使用chrome。
    • 量角器版本5.1.1
  2. 這是什麼點的過程中?
    • 啓動器?託管?
    • 等待節點變爲可用?
  3. 我應該怎麼做排除故障?

編輯:

  • 使用遠程服務器的硒。

回答

0
directConnect:true, 

您可以在conf.js文件中添加這一點。這不會等待硒服務器啓動。 來到你的其他問題 - 您還需要提您所使用的框架(比如我用的茉莉框架,所以我提到它是這樣) -

framework: 'jasmine', 
+0

我使用的是遠程服務器的硒,所以我不能使用直接連接。 –