config.js 815 Bytes
module.exports = {
  port: 8889,
  iosCaps: {
    platformName: 'iOS',
    automationName: 'XCUITest',
    deviceName: process.env.IOS_DEVICE_NAME || 'iPhone 6',
    platformVersion: process.env.IOS_PLATFORM_VERSION || '12.1.4',
    app: '/Users/chenfeng/Downloads/yoho.ipa',
    udid: 'auto',
    autoAcceptAlerts: true,
    showIOSLog: false,
    noReset: true,
  },
  androidCaps: {
    platformName: 'Android',
    automationName: 'UiAutomator2',
    deviceName: 'My Android Device',
    platformVersion: '9',
    app: '/Users/chenfeng/Downloads/yoho.apk',
    autoAcceptAlerts: true,
    noReset: true,
    appPackage: 'com.yoho',
    appActivity: 'com.yoho.yohobuy.start.ui.StartActivity'
  },
  serverConfig: {
    host: process.env.APPIUM_HOST || 'localhost',
    port: process.env.APPIUM_PORT || 4723
  }
}