Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 1.22 KB

File metadata and controls

28 lines (21 loc) · 1.22 KB

Requirements to run the tests :

  • Maven
  • Java - version 1.7 and above

You can install Maven via the following methods :

Upload APK in Sauce Storage by following command :

  • Download apk
  • Run this command : curl -u $SAUCE_USER_NAME:$SAUCE_KEY -X POST "http://saucelabs.com/rest/v1/storage/$SAUCE_USER_NAME/my_app.apk?overwrite=true" -H "Content-Type: application/octet-stream" --data-binary @<path_where_apk_present>/my_app.apk

Instructions to run the script :

  1. Set following environment variables : SAUCE_USER_NAME, SAUCE_KEY

  2. For running script use following commands:

  • mvn eclipse:eclipse
  • mvn clean
  • Sample command 1: mvn install -D deviceName="Android Emulator" -D version="4.4" -D sauceUserName=$SAUCE_USER_NAME -D sauceAccessKey=$SAUCE_KEY
  • Sample command 2: mvn install -D deviceName="Google Nexus 7C Emulator" -D version="4.4" -D sauceUserName=$SAUCE_USER_NAME -D sauceAccessKey=$SAUCE_KEY
  1. For watching running script you login into sauce lab using this url https://saucelabs.com/tests, in test section you can see the live video of running tests.