Use Bitrise with Genymotion SaaS

Date: 2024-04-23

Note

This article is a reproduction of a Medium article.

The article title is “Learn how to integrate Genymotion Cloud Android Virtual Devices into your workflows and use the testing framework of your choice on Bitrise.”

The author is Thomas Carpentier.

Connect your Android project to Bitrise

Build an Android application

Install and start an Appium server

Add Genymotion SaaS start instances step

Run tests

#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
#export JAVA_HOME
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
npm install -g appium --unsafe-perm=true --allow-root
appium &>/dev/null &
view raw
Start Appium server
hosted with
by
GitHub

#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
echo "# Install dependencies"
pip3 install -r appium/requirements.txt
# Execute tests through pytest
echo "# Execute tests"
pytest -n 2 appium/test_send_message.py --apk $BITRISE_APK_PATH
view raw
run-tests.sh
hosted with
by
GitHub

Add Genymotion SaaS stop instances step

Conclusion