[英]Protractor test suites and capabilities
我希望能夠使用特定的瀏覽器配置來運行特定的套件,這可能嗎? 我嘗試執行以下代碼,但是不幸的是, 當指定套件時,功能specs
字段將被忽略,並且兩個測試套件都在兩個瀏覽器配置中執行。
{
multiCapabilities: [{
browserName: 'chrome',
'chromeOptions': browserConfig.winOsSettings,
specs: './e2e/test-suites/regression-test-suite/**/*.win.os.e2e-spec.ts'
}, {
browserName: 'chrome',
'chromeOptions': browserConfig.ubuntuOsSettings,
specs: './e2e/test-suites/regression-test-suite/**/*.ubuntu.e2e-spec.ts'
}
],
suites: {
ubuntu_tests: '../e2e/test-suites/regression-test-suite/**/*.win.os.e2e-spec.ts',
windows_tests: './e2e/test-suites/regression-test-suite/**/*.ubuntu.e2e-spec.ts',
}
}
嘗試使用以下代碼
multiCapabilities: [{
'browserName': 'chrome',
'chromeOptions':browserConfig.winOsSettings,
specs: './e2e/test-suites/regression-test-suite/**/*.win.os.e2e-spec.ts'
}, {
'browserName': 'chrome',
'chromeOptions': browserConfig.ubuntuOsSettings,
specs: './e2e/test-suites/regression-test-suite/**/*.ubuntu.e2e-spec.ts'
}],
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.