This guide helps you to setup the environment for testing mobile applications using useMango.
Certain prerequisites are to be fulfilled before starting the test environment. This section helps you to install and prepare them. The prerequisites are:
Java is needed for Android Studio and Appium to work. Follow the below steps to install Java.
Variable | Example Value |
---|---|
JAVA_HOME | C:\Program Files\Java\jdk-11.0.16 |
ANDROID_HOME | C:\Users\<user-name>\AppData\Local\Android\Sdk |
Path | %JAVA_HOME%\bin |
Android Studio is needed to create and run Android Virtual Devices (AVD). Follow the below steps to install Android Studio.
C:\tools\google\android
folder. (Create the required folders if not present)Appium is needed to run the tests on the Android Virtual Device. Follow the below steps to install Appium.
C:\tools\jsfoundation\appium
folder. (Create the required folders if not present)useMango is required to test mobile applications. Follow the below steps to install useMango.
Devkit is required to install Ruby Gems required to test mobile apps. Follow the below steps to install Ruby Devkit.
C:\Users\<username>\AppData\Roaming\useMango\Ruby\devkit
directory. Replace <user-name>
with your name as found in the directory structure.cd "%appdata%\useMango\Ruby\devkit"
"%appdata%\useMango\Ruby\<latest-ruby-folder>\bin\ruby" dk.rb init
<latest-ruby-folder>
with the latest ruby folder name(something like ruby-3.0.4).<username>
with your name as found in the directory structure."%appdata%\useMango\Ruby\<latest-ruby-folder>\bin\ruby" dk.rb install
C:\Users\<username>\AppData\Roaming\useMango\Ruby\devkit\bin
C:\Users\<username>\AppData\Roaming\useMango\Ruby\devkit\mingw\bin
MSYS2 is required to install Ruby Gems required to test mobile apps. Follow the below steps to install MSYS2.
pacman -Syu
Additional Ruby Gems are required to test mobile apps. Follow the below steps to install Ruby Gems.
cd C:\Users\<username>\AppData\Roaming\useMango\Ruby\<latest-ruby-version>\bin
gem install rake
ridk install
gem install appium_lib:11.2.0
gem uninstall eventmachine
gem install eventmachine --platform ruby