Hello,
I am using WebdriverIO, and prepared a config file to tests on iOS and Android in parallel execution but getting the following error
can you please help to fix this issue?
though I have included platfomName , still asking to add…am I missing anything is here?
configuration:
const host = '127.0.0.1';
const port = 4730;
config.capabilities = [
{
services: [
['appium', {
args: {
debugLogSpacing: true,
},
command: 'appium',
},
],
],
specs: [
"./test/specs/test.spec.js"
],
maxInstances: 2,
// For iOS/android bases mobile device
capabilities: [{
port: 4730,
//platformName: 'iOS',
automationName: 'XCUITest',
platformName: 'iOS',
deviceName: 'iPhone 6',
browserName: 'Safari',
clearSystemFiles: true,
acceptInsecureCerts: true,
}, {
port: 4723,
automationName: 'uiautomator2',
platformName: 'Android',
deviceName: AndroidInfo.deviceName(),
browserName: 'chrome',
commandTimeout: '7200',
noReset: false,
}]
}
];
exports.config = config;
Error:
2021-12-22T14:26:34.979Z ERROR @wdio/runner: Error: Failed to create session.
[0-0] An unknown server-side error occurred while processing the command. Original error: You must include a platformName capability
Can you please help me some one to find the solution for this?