Created
July 2, 2024 18:10
-
-
Save SarahElson/43af787a8a9866e32bdf03864ae82050 to your computer and use it in GitHub Desktop.
How to Run WebdriverIO Tests: Getting Started Tutorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.config = { | |
services: [ | |
[ | |
"lambdatest", | |
{ | |
tunnel: false, | |
lambdatestOpts: { | |
logFile: "tunnel.log" | |
} | |
} | |
] | |
], | |
specs: [ './test/specs/**/*.js'], | |
exclude: [], | |
reporters: ['spec'], | |
capabilities: [{ | |
"browserName": "Chrome", | |
"browserVersion": "125", | |
"LT:Options": { | |
"username": process.env.LT_USERNAME, | |
"accessKey": process.env.LT_ACCESS_KEY, | |
"platformName": "Windows 10", | |
"project": "WebdriverIO demo", | |
"build": "Simple Form demo", | |
"name": "First WebdriverIO test on LambdaTest", | |
"selenium_version": "4.0.0", | |
"w3c": true | |
} | |
}], | |
logLevel: "info", | |
coloredLogs: true, | |
screenshotPath: "./errorShots/", | |
waitforTimeout: 100000, | |
connectionRetryTimeout: 90000, | |
connectionRetryCount: 1, | |
path: "/wd/hub", | |
hostname: "hub.lambdatest.com", | |
port: 80, | |
framework: "mocha", | |
mochaOpts: { | |
ui: "bdd", | |
timeout: 50000, | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment