TestingBot provides an online grid of real devices and emulators/simulators to run automated native app tests on via Appium. This example demonstrates how to use RobotFramework together with AppiumLibrary to run a native mobile app test on a remote TestingBot device.
-
Setup
- Clone the repo
- Install the dependencies
pip install -r requirements.txt
-
TestingBot Credentials
Retrieve your TestingBot Key and Secret from the TestingBot Dashboard and export them as environment variables:
export TB_KEY=<your TestingBot Key> export TB_SECRET=<your TestingBot Secret> -
Upload your app
Upload your
.apkor.ipato TestingBot (or host it on a public URL). See TestingBot App Automate. -
Run test:
Android Physical Device example:
PYTHONPATH=$PYTHONPATH:. robot test_android_physical.robotAndroid Emulator example:
PYTHONPATH=$PYTHONPATH:. robot test_android_emulator.robotiOS Physical Device example:
PYTHONPATH=$PYTHONPATH:. robot test_ios_physical.robotiOS Simulator example:
PYTHONPATH=$PYTHONPATH:. robot test_ios_simulator.robot