alttester / EXAMPLES-Python-Bitbar-AltTrashCat

1 stars 1 forks source link

Running python tests using Appium and AltTester on Bitbar cloud devices

Server-Side

Create a text file license.txt with your AltTester Desktop license. To prepare zip archive run create-bitbar-package.sh or follow Running Cloud-Side Appium tests.

  1. Upload zip with all tests and with run-test.sh script to launch test execution at the root level of the package.
  2. Upload .apk / .ipa
  3. Create new test run with previously uploaded files
  4. If you use trial devices provided as group, please leave just one running and stop all the others. At the moment AltServer does not allow running same tests on same app simultaneously.

Server-side with AltServer running in a separate Windows VM, accessible by both tests and game build through IP.

Tested setup using AltServer running in a Windows Azure VM. The conditions for the connection to work:

Server-side with AltServer running in Bitbar Ubuntu VM (localhost)

The script which is executed on Bitbar VM needs to contain the installation and launching of AltTester Desktop build.

Client-Side

Follow Running Client-Side Appium tests to have an overview of the requirements.

  1. Upload .apk / .ipa
  2. Set & load BITBAR_APIKEY and BITBAR_APP_ID_SDK_202 as environment variables
  3. Prepare appium and bitbar specific capabilities in SetupAppium function from base_test.py.
  4. To be able to connect to AltServer running in a separate Windows VM, accessible by both tests and game build through IP, set HOST_ALT_SERVER as environment variable.

! NOTE: Running client side tests with AltServer running on same machine is failing even if using SmartBear SecureTunnel. We assume this is happening due to websocket implementation and incompatibility with AltServer.