Mobile automation using Appium + Python + Behave
- Free Sauce account
- Make sure you know how to find your Sauce Labs Username and Access Key by going to the Sauce Labs user settings page
- We will run our automated tests on Sauce Labs devices; therefore, there is no need to install Appium Server.
- Install the Python packages:
- pip install Appium-Python-Client==3.1.0
- pip install selenium==4.15.2
- pip install behave
- The Android demo apps that has been used for the Android tests can be found here.
The advice is to download the files to an
apps
folder in the root of this folder.
Make sure that when you downloaded the files from the releases page, that you rename the apps to the following:
mda-{#.#.#-#}.apk
=>my-demo-app-android.apk
If you don't do that then the scripts can't find the apps!
If you want to use Android emulators, Android real devices, iOS simulators or iOS real devices in the Sauce Labs platform, you need to upload the apps to the Sauce Storage.
Execute the following steps to manually upload the apps:
- Login to the Sauce Labs platform
- Go to LIVE > Mobile App
- Click on App Upload and OR select the folder, OR drag the apps to the screen to upload them
Run the tests on the Sauce EU DC:
behave -c