In this repository is code of autotest of some Android application
JavaScript (TypeScript) - NodeJs - Mocha - Webdriver.io - Appium;
Local
cd e2eMobile
npm install
npm test
-
Install node.js
-
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
-
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
-
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
- 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%
-
The mobile application can be here
./app
-
The last point is install Appium doctor and check is everything alright
-
If you have any problems during the installation process, please read here:
When you test a mobile application, it is highly likely that you have a problem with the selector.
-
Install Appium
-
Read manual about Appium inspector
Or you may using UIAutomatorViewer.
How to Locate Element using UIAutomatorViewer
Webdriverio and mobile selectors
Start the Emulator from the Command Line
Stop the Emulator from the Command Line
More information here