Skip to content
This repository was archived by the owner on Mar 23, 2020. It is now read-only.

Files

Latest commit

7fc0c08 · Nov 14, 2017

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 9, 2014
Oct 29, 2017
Nov 17, 2014
Nov 17, 2014
Mar 6, 2016
Apr 17, 2017
Apr 28, 2016
Apr 28, 2016
Apr 28, 2016
Feb 26, 2017
Feb 9, 2017
Feb 9, 2017
Apr 28, 2016
Apr 28, 2016
Feb 9, 2017
Feb 9, 2017
Feb 9, 2017
Feb 9, 2017
Nov 14, 2017
Apr 28, 2016
Feb 9, 2017

README.md

Node.js samples

Prerequisites

Install local packages:

npm install

To run tests using Sauce Labs cloud

Sign up here

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):

To run tests locally

Install appium and start the appium server for your device, please refer to:

Running tests

iOS

npm run ios-simple
npm run ios-complex
npm run ios-webview
npm run ios-actions
npm run ios-local-server
npm run ios-selenium-webdriver-bridge

Android

npm run android-simple
npm run android-complex
npm run android-webview
npm run android-local-server

Selendroid

npm run selendroid-simple

Node.js 0.11 + Generator with Yiewd

prerequisite: switch to node > 0.11

npm run ios-yiewd