Skip to content

filmaj/appium-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appium Mobile Tests

Get up and running with Appium on mobile in no time.

Tests written in fancy new JavaScript :D

Requirements

$ cd into/this/repo
$ npm install

Running Locally

You will need to install and configure the following things to run tests locally on devices connected to your computer, or emulators running on your machine:

Running on Saucelabs.com

Doin' it

Locally

Make sure you have one or more Android device(s) connected to your computer, and an instance of Appium running. An emulator might work, too. Then do:

npm test test/android-whatever.js

Remotely on saucelabs.com

Make sure you create a relevant dev.json or prod.json file in the root of the repo. Production saucelabs.com credentials should look like this:

{
    "KEY":"somethingsomething,
    "USER":"filmaj",
    "HOST":"ondemand.saucelabs.com",
    "PORT":80
}

Once set up, set a SAUCE_ENV environment variable matching the name of the json file containing your credentials.

To run a speedtest with production credentials, do:

SAUCE_ENV=prod npm test test/sauce-chrome-speedtest.js

About

Get up and running with Appium on mobile in no time.

Resources

Stars

Watchers

Forks

Packages

No packages published