Hi,
OS: debian
Appium version: 1.9.1 / 1.11.1
I launch docker container with selenoid/android:6.0
Share volumes where apk file
Setup caps:
capabilities.setCapability(
MobileCapabilityType.AUTOMATION_NAME,
AutomationName.APPIUM
);
capabilities.setCapability(
MobileCapabilityType.PLATFORM_NAME,
MobilePlatform.ANDROID
);
capabilities.setCapability( MobileCapabilityType.DEVICE_NAME, device.getName() );
capabilities.setCapability( MobileCapabilityType.UDID, device.getId() );
capabilities.setCapability( MobileCapabilityType.APP, getApplication() );
capabilities.setCapability(
MobileCapabilityType.NEW_COMMAND_TIMEOUT,
COMMAND_TIMEOUT
);
capabilities.setCapability( MobileCapabilityType.CLEAR_SYSTEM_FILES, true );
capabilities.setCapability(
MobileCapabilityType.ORIENTATION,
ScreenOrientation.LANDSCAPE
);
capabilities.setCapability(
AndroidMobileCapabilityType.RECREATE_CHROME_DRIVER_SESSIONS,
true
);
capabilities.setCapability( MobileCapabilityType.TAKES_SCREENSHOT, true );
capabilities.setCapability( "autoGrantPermissions", true );
capabilities.setCapability(
AndroidMobileCapabilityType.CHROMEDRIVER_EXECUTABLE,
getMobileChromeDriverPath()
);
capabilities.setCapability(
AndroidMobileCapabilityType.NATIVE_WEB_SCREENSHOT,
true
);
capabilities.setCapability(
AndroidMobileCapabilityType.APP_ACTIVITY,
"com.some.app.activity.main.MainActivity"
);
capabilities.setCapability(
AndroidMobileCapabilityType.APP_WAIT_ACTIVITY,
"com.some.app.activity.login.LoginActivity"
);
capabilities.setCapability( AndroidMobileCapabilityType.UNICODE_KEYBOARD, "true" );
capabilities.setCapability( AndroidMobileCapabilityType.RESET_KEYBOARD, "true" );
capabilities.setCapability( AndroidMobileCapabilityType.DISABLE_ANDROID_WATCHERS, "true" );
capabilities.setCapability(
AndroidMobileCapabilityType.ANDROID_NATURAL_ORIENTATION,
"true"
);
capabilities.setCapability( "setWebContentsDebuggingEnabled", "true" );
capabilities.setCapability( MobileCapabilityType.FORCE_MJSONWP, true );
capabilities.setBrowserName( "android" );
capabilities.setVersion( AppConfig.getAndroidVersion() );
capabilities.setCapability( "enableVideo", false );
capabilities.setCapability( "enableVNC", false );
capabilities.setCapability(
MobileCapabilityType.NEW_COMMAND_TIMEOUT,
LAUNCH_TIMEOUT
);
capabilities.setCapability(
"newSessionWaitTimeout",
LAUNCH_TIMEOUT
);
capabilities.setCapability(
"session-attempt-timeout",
LAUNCH_TIMEOUT
);
capabilities.setCapability(
"showChromedriverLog",
true
);
When run it on teamcity have an error:
errorAppium.txt (54.4 KB)
Browser json example:
{
"android": {
"default": "6.0",
"versions": {
"6.0": {
"image": "some/android:6.0",
"port": "4444",
"volumes": [
"mobileApplication/app-universal-debug.apk:/etc/app-universal-debug.apk:ro"
],
"path": "/wd/hub"
},
"7.0": {
"image": "some/android:7.0",
"port": "4444",
"volumes": [
"mobileApplication/app-universal-debug.apk:/etc/app-universal-debug.apk:ro"
],
"path": "/wd/hub"
},
"8.0": {
"image": "some/android:8.0",
"port": "4444",
"volumes": [
"mobileApplication/app-universal-debug.apk:/etc/app-universal-debug.apk:ro"
],
"path": "/wd/hub"
}
}
},
"chrome": {
"default": "latest",
"versions": {
"latest": {
"image": "selenoid/chrome",
"port": "4444",
"tmpfs": {
"/tmp": "size=512m"
}
}
}
}
}
Checked this configuration on my local machine with ubuntu, docker, selenoid, etc everything works perfectly, but on agent I have an error.
Thanks,