Most complex part in Mobile testing is connecting to a simulator or device. In this article we describe steps necessary to configure the testing environment.
Note: In brackets we specify versions of software components we used at the time of writing this article.
You will need a computer with macOS.
[macOS 10.13 High Sierra]
It is also possible to use Windows. Please refer to Appium documentation for details.
[Android Studio 3.1.4]
Appium is the bridge between Rapise and mobile simulators and devices. The easiest way to install it is to use Terminal.
> brew install node # get node.js
> npm install -g appium # get appium
Use appium-doctor to diagnose and fix common Node and iOS configuration issues before starting Appium.
> npm install appium-doctor -g # install
> appium-doctor --ios # check iOS environment
If upon connecting to a device you get an error
An unknown server-side error occurred while processing the command.
Original error: unknown error: Chrome version must be >= 55.0.2883.0
then navigate the link below to find out how to fix.
Android device must be connected via USB cable and it should have USB debugging option enabled.
Android Debug Bridge (adb) is a versatile command-line tool that lets you communicate with a device.
To get list of connected devices open the terminal and run the command
> adb devices
We published a sample application on GitHub. Clone the repository and build with Android Studio.