Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 22, 2021 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/233e610d598764be4961967980cd33cf to your computer and use it in GitHub Desktop.
Save velotiotech/233e610d598764be4961967980cd33cf to your computer and use it in GitHub Desktop.
exports.config = {
port: 4724,
path: '/wd/hub/',
runner: 'local',
specs: ['./test/specs/*.js'],
maxInstances: 1,
capabilities: [
{
platformName: 'Android',
platformVersion: '11',
appPackage: 'com.facebook.katana',
appActivity: 'com.facebook.katana.LoginActivity',
automationName: 'UiAutomator2'
}
],
services: [
[
'appium',
{
args: {
relaxedSecurity: true
},
command: 'appium'
}
]
],
logLevel: 'debug',
bail: 0,
baseUrl: 'http://localhost',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
framework: 'mocha',
reporters: [
[
'allure',
{
outputDir: 'allure-results',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: false
}
]
],
mochaOpts: {
ui: 'bdd',
timeout: 60000
},
afterTest: function(test, context, { error, result, duration, passed, retries }) {
if (!passed) {
browser.takeScreenshot();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment