首页 > 解决方案 > 即使分片文件为真,测试也会在量角器中按顺序运行

问题描述

我正在使用量角器运行测试。我有 3 个规格文件,但它仍然按顺序运行我在这里缺少什么?代码 :

capabilities: {
    'browserName': 'chrome',
    chromeOptions: {
        args: ['--headless', "--disable-gpu", "--window-size=1920,1080"]

    },
    // Ability to run the tests in parallel.
    shardTestFiles: true,
    maxInstances: 2
},

标签: javascripttestingprotractorautomated-testsselenium-chromedriver

解决方案


推荐阅读