Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.91 KB

File metadata and controls

55 lines (37 loc) · 1.91 KB

Validate RobotFramework App Example

TestingBot RobotFramework Appium Example

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.

Environment Setup

  1. Setup

    • Clone the repo
    • Install the dependencies pip install -r requirements.txt
  2. 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>
    
  3. Upload your app

    Upload your .apk or .ipa to TestingBot (or host it on a public URL). See TestingBot App Automate.

  4. Run test:

    Android Physical Device example:

    PYTHONPATH=$PYTHONPATH:. robot test_android_physical.robot
    

    Android Emulator example:

    PYTHONPATH=$PYTHONPATH:. robot test_android_emulator.robot
    

    iOS Physical Device example:

    PYTHONPATH=$PYTHONPATH:. robot test_ios_physical.robot
    

    iOS Simulator example:

    PYTHONPATH=$PYTHONPATH:. robot test_ios_simulator.robot
    

Resources