I am using Codeceptjs for automation testing in javascript which internally uses WebDriverIO. I have achieved to run on Sauce, using the mentioned framework.
I have accomplished to run automation test cases in different browsers in sauce lab by using desired capabilities but only one browser at a time.
Requesting help
- to parallelize the all test files runs on a single browsers in sauce lab.
- to parallelize the test runs on multiple browsers in sauce lab.
It would be great to have both of the above mentioned combinations.
What configuration should I provide to achieve the above two requirement on the WebDriverIO / CodeceptJS.
Here is my configuration that will be passed to sauce labs.
---codecept.conf.js---
WebDriverIO: {
url: "http://localhost:3000",
browser: chrome,
waitforTimeout: 60000,
restart: false,
logLevel: "silent",
cssSelectorsEnabled: "true",
timeouts: {
script: 60000,
"page load": 60000,
implicit : 0
},
"host": "ondemand.saucelabs.com",
"port":80,
"user":"<SAUCE_USER_NAME>",
"key": "<SAUCE_ACCESS_KEY>”,
desiredCapabilities :{
"chrome": {
"browserName": "chrome",
"name": "TEST_CHROME",
"platform": "ANY",
"version": "55.0"
}
}
}
These are the list of desired Capabilities which i am using and picking one capability based on the selected browser name:
{
"internet explorer": {
"browserName": "internet explorer",
"name": "TEST_IE",
"platform": "Windows 7",
"ignoreZoomSetting": true,
"nativeEvents": false,
"ignoreProtectedModeSettings": true,
"version": "11"
},
"chrome": {
"browserName": "chrome",
"name": "TEST_CHROME",
"platform": "ANY",
"version": "55.0"
},
"firefox": {
"browserName": "firefox",
"name": "TEST_FIREFOX",
"platform": "ANY",
"version": "51.0"
},
"safari": {
"browserName": "safari",
"name": "TEST_SAFARI",
"platform": "OS X 10.11",
"version": "10.0"
},
"opera": {
"browserName": "opera",
"name": "TEST_OPERA",
"platform": "Windows 7",
"version": "ANY"
},
"MicrosoftEdge": {
"browserName": "MicrosoftEdge",
"name": "TEST_IEEdge",
"platform": "Windows 10",
"version": "13"
}
}