A WebdriverIO v5 service to execute browser tests on AWS Device Farm.
WebdriverIO v5.23+ is required for this change to be available.
Support for v6 is coming soon!
Until this package is published to npmjs.com, you'll have to:
- Clone the repo locally and
cd
into - Install dependencies:
npm install
- Build package:
npm run compile
- Run
npm link
to create a symlink to the repo - Navigate to your project root and run
npm link wdio-aws-device-farm-service
to complete linking - Add the following dependencies to your
package.json
:
"dependencies": {
"wdio-aws-device-farm-service": "latest"
}
Update your config file with the following information:
exports.config = {
// ...
services: [
[
'wdio-aws-device-farm',
{
region: 'us-west-2', // Only one available as of April 2020
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
projectArn: process.env.AWS_DF_ARN,
expiresInSeconds: 300, // 5 minutes
},
],
],
capabilities: [
{
browserName: 'chrome',
browserVersion: 'latest',
platform: 'windows',
},
],
// ...
};
Now simply execute your test(s), and you should see browser sessions launching on AWS Device Farm.
https://docs.aws.amazon.com/devicefarm/latest/testgrid/techref-support.html