所以我试图同时测试桌面和移动设备是否可以使用 codeceptjs 或者我需要一个接一个地运行?
这是我的 codecept 配置文件:-
tests: './*_test.js',
output: './output',
multiple: {
parallel:{
// Splits tests into 2 chunks
chunks:2,
//Run all tests in chrome and firefox can add internet explorer 11 very slow though
browsers: ['chrome', 'firefox'] //'internet explorer']
}
},
helpers: {
WebDriver: {
url: 'http://localhost',
browser: 'chrome',
Appium: {
app: '/path/to/app/foo.app',
platform: 'iOS',
desiredCapabilities: {
deviceName: "iPhone 6",
bundelId: "com.app.foo",
automationName: "XCUITest",
autoWebview: false,
newCommandTimeout: 3600,
platformVersion: "11.2",
fullReset: false,
noReset: true,
locationServicesEnabled: true
locationServicesAuthorized: true,
calendarAccessAuthorized: true
}
},
include: {
I: './steps_file.js'
},
bootstrap: null,
mocha: {},
name: 'CodeCeptJs'
}```