Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
assets Add sample code from appium/appium Aug 9, 2014
helpers update the other file's app path Oct 29, 2017
protractor-bridge updated ios version Nov 17, 2014
.gitignore updated doc Nov 17, 2014
.jshintrc Remove duplicate on .jshintrc options Mar 6, 2016
README.md Fix broken Markdown headings (#116) Apr 17, 2017
android-complex.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
android-local-server.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
android-simple.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
android-webview.js Fixes Node test issues Feb 26, 2017
ios-actions.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
ios-complex.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
ios-local-server.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
ios-safari.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
ios-selenium-webdriver-bridge.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
ios-simple.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
ios-webview.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
ios-yiewd.js Upgrade sample code to Appium 1.6 (#102) Feb 9, 2017
package.json SPDX-compliant license in package.json Nov 14, 2017
selendroid-simple.js use npm config paramaters instead of directly setting the environment… Apr 28, 2016
temp-output.txt Upgrade sample code to Appium 1.6 (#102) 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
You can’t perform that action at this time.