【问题标题】:Sauce Labs OnDemand: multiCapabilities build information is not acceptedSauce Labs OnDemand:不接受 multiCapabilities 构建信息
【发布时间】:2017-07-29 21:00:24
【问题描述】:

我们正在 Sauce Labs 上使用量角器运行 mocha nodejs 测试,并且属性“build”被忽略。这是我的 protractor.conf.js

    multiCapabilities: [
    {
        name: 'chrome-tests-windows',
        browserName: 'chrome',
        version: '52',
        platform: 'Windows 7',
        shardTestFiles: true,
        maxInstances: 25,
        build: 'solisko-1',
        tags: ['tag1', 'tag2']
    }]

当我查看 Sauce Labs Dashboard 中的元数据时,我看到:

Build null
Tags ["tag1","tag2"]
Browser googlechrome
Browser version 52.0.2743.82
OS Windows 2008

知道为什么忽略构建名称吗?

【问题讨论】:

    标签: node.js protractor saucelabs


    【解决方案1】:

    我猜是为了在 Sauce 平台上填充构建。您需要在 Protractor 配置文件中发送以下属性。 Check here

    /** * 如果您想按 构建 ID */

      sauceBuild?: string;
    

    根据documentation here,我没有在功能对象中看到build 选项

    【讨论】:

      【解决方案2】:

      从不同的来源我发现这是正确的属性:

      multiCapabilities: [
          {
              Build: 'some-build-name',
              BuildName: 'some-build-name',
              name: 'chrome-tests-mac',
              browserName: 'chrome',
              version: '52',
              platform: 'OS X 10.12',
              shardTestFiles: true,
              maxInstances: 25
          }
      ]
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-12-16
        • 2015-09-22
        • 1970-01-01
        • 2015-05-09
        • 2014-03-01
        • 2016-08-27
        相关资源
        最近更新 更多