GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Alioshka/mobile-js: How to run tests on real devices using node.js

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
apps
apps
 
 
helpers
helpers
 
 
native
native
 
 
protractor
protractor
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 

Repository files navigation

Prerequisites

Here you can find a helpful links how to setting up required environments for drive your texts through Appium:

  • https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/running-tests.md
  • http://developer.android.com/intl/ru/sdk/installing/index.html?pkg=tools
  • http://spring.io/guides/gs/android/

Use Git

Open a command window and run:

$ git clone https://github.com/Alioshka/mobile-js.git

Use NPM

Go the project root directory:

$ cd mobile-js

and run:

$ npm install

to install all required node.js modules for your project

Install Protractor

$ npm install -g [email protected]

to install Protractor(Version 2.5.1) globally on your PC

!!! do not do this:

$ npm install -g protractor

because his command(without @2.5.1) will install the latest version of Protractor(Version 3x) this version of protractor compatible only for node.js Version 4x For our project and I strongly recommend to use Node Version v0.12.7

Install Mocha

$ npm install -g -f mocha

to install Mocha globally on your PC

Run Tests:

Start Appium

Open a command window and run:

$ appium

or

$ appium -p 4444

to specify a port to use

Run Web tests with Protractor:

$ protractor protractor/ios-conf.js

to run tests in Safari on iOS Simulator

$ protractor protractor/android-conf.js

to run tests in Chrome on Android real device (don't forget to connect device to PC through USB, and device should be connected to Wifi)

Run Native tests with Mocha:

$ mocha native/android.js

to run tests on Android real device (don't forget to connect device to PC through USB, and device should be connected to Wifi)

$ mocha native/ios.js

to run tests on iOS Simulator

Allure result report:

  • install Allure for work with tests result report:
$ npm install -g allure-commandline
  • download the necessary binaries:
$ webdriver-manager update
  • run tests:
$ protractor protractor/desktop-conf.js
  • after tests executed generate HTML report using Allure CLI:
$ allure generate test-reports/allure-result -o test-reports/allure-report
  • open the report using Allure CLI(will open report in Browser):
$ allure report open -o test-reports/allure-report

About

How to run tests on real devices using node.js

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.