Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium webdriver 量角器未停止selenium服务器_Selenium Webdriver_Protractor - Fatal编程技术网

Selenium webdriver 量角器未停止selenium服务器

Selenium webdriver 量角器未停止selenium服务器,selenium-webdriver,protractor,Selenium Webdriver,Protractor,在量角器测试完成后,出现超时错误 Error updating Sauce pass/fail status: 'Could not send request: connect ETIMEDOUT 我们已经尝试将它们添加到conf.js中的onComplete函数中: browser.driver.quit(),browser.driver.stop(),以及类似的不同形式。似乎没有人在阻止web驱动程序。对于stop()。对于browser.driver.quit(),我们仍然收到超时。我们

在量角器测试完成后,出现超时错误

Error updating Sauce pass/fail status: 'Could not send request: connect ETIMEDOUT
我们已经尝试将它们添加到
conf.js
中的
onComplete
函数中:
browser.driver.quit()
browser.driver.stop()
,以及类似的不同形式。似乎没有人在阻止web驱动程序。对于
stop()。对于
browser.driver.quit()
,我们仍然收到超时。我们如何阻止webdriver

我的量角器版本:
版本3.3.0

我的完整conf.js:

exports.config = {
  sauceUser: process.env.SAUCE_USERNAME,
  sauceKey: process.env.SAUCE_ACCESS_KEY,
  tunnelIdentifier: process.env.SAUCE_TUNNELL_IDENTIFIER,

  webDriverProxy: 'my-companies-proxy',

  specs: ['e2e/*spec.js'],

  framework: 'jasmine2',

  onPrepare: function(){
     var caps = browser.getCapabilities()
  },

 multiCapabilities: [{
   browserName: 'chrome',
   version: '41',
   platform: 'Windows 7',
   name: "chrome-tests",
   shardTestFiles: true,
   maxInstances: 25
 }],

 onComplete: function() {

   var printSessionId = function(jobName){
     browser.getSession().then(function(session) {
       console.log('SauceOnDemandSessionID=' + session.getId() + ' job-name=' + jobName);
    });
   }
  printSessionId("Protractor Tests");
  browser.driver.quit();
 }
}

根据我的经验,我们将
'tunnel-identifier':process.env.saint\u TUNNELL\u identifier
放在MultiCapability中(以及browserName和platform等)。我们在onPrepare而不是onComplete中打印
SauceOnDemandSessionID
。在onComplete部分中,您不必做任何事情。根据我的经验,我们将
隧道标识符:process.env.saint\u TUNNELL\u identifier
放在MultiCapability中(以及browserName和platform等)。我们在onPrepare而不是onComplete中打印
SauceOnDemandSessionID
。你不应该在onComplete部分做任何事情。