Skip to content

JavaScript (TypeScript) - NodeJs - Mocha - Webdriver.io - Appium

Notifications You must be signed in to change notification settings

And93/e2eMobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

End-to-end mobile autotests

Description

In this repository is code of autotest of some Android application

Stack

JavaScript (TypeScript) - NodeJs - Mocha - Webdriver.io - Appium;

Run test

Local

cd e2eMobile
npm install
npm test

Preparation of the environment

  1. Install node.js

  2. Install Android SDK After install add variable environment ANDROID_HOME E.g: C:\Users\user\AppData\Local\Android\sdk

    2.1. Setup Android Environment Variables

    2.2. Add the variable environment ANDROID_AVD_HOME E.g.: C:\Users\user\.android\avd\

    2.3. Variables of environment for Windows/Linux here

  3. Install Java JDK After install add variable environment JAVA_HOME and write the path to the directory jdk E.g.: C:\Program Files\Java\jdk1.8.0_60

  4. Download Apache Ant It does not require installation, just unpack the archive E.g.: C:\Program Files\apache-ant-1.9.6

After unpack add variable environment PATH, where is ant E.g.: C:\Program Files\apache-ant-1.9.6\bin

  1. Install Apache Maven It does not require installation, just unpack the archive E.g.: C:\Program Files\apache-maven-3.3.3

After unpack add variable environment M2HOME with value C:\Program Files\apache-maven-3.3.3, variable M2 with value %M2_HOME%\bin and in PATH add %M2%

  1. The mobile application can be here ./app

  2. The last point is install Appium doctor and check is everything alright

  3. If you have any problems during the installation process, please read here:

    first

    second

    third

Selectors

When you test a mobile application, it is highly likely that you have a problem with the selector.

To find mobile selectors is necessary:

  1. Install Appium

  2. Read manual about Appium inspector

Or you may using UIAutomatorViewer.

How to Locate Element using UIAutomatorViewer

Configuration

Appium Desired Capabilities

How to use mobile selectors with webdriverio

Webdriverio and mobile selectors

Documentation

Appium Tutorial (official)

Appium Tutorial v1

Appium Tutorial v2

Emulator-commandline

Start the Emulator from the Command Line

Stop the Emulator from the Command Line

ADB Commands

Docker

More information here

About

JavaScript (TypeScript) - NodeJs - Mocha - Webdriver.io - Appium

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published