Install local packages:
npm install
Then when running the tests, add your Sauce Labs credentials as npm config parameters, example :
npm run ios-simple --appium-sample-code:sauce=1 --appium-sample-code:username=<SAUCE_USERNAME> --appium-sample-code:key=<SAUCE_ACCESS_KEY>
Or set the config parameters directly in package.json :
// package.json
...
"config":{
"sauce":"1",
"sauce_username":"<SAUCE_USERNAME>",
"sauce_access_key":"<SAUCE_ACCESS_KEY>"
},
...
If you also want to use Sauce Connect (secure tunelling):
- Read the doc here
- Install and start the Sauce Connect client
Install appium and start the appium server for your device, please refer to:
###Android
Test local App
DEV=1 npm run android
Test installed App
SYSTEM=1 npm run android