Table of Contents |
---|
In order to automate mobile test cases on Windows Computers, you must download and install Appium and Android Studio.
...
- Download Android Studio.
- Once downloaded, double-click android-studio-bundle-windows.exe.
This will start installation of Android Studio. - Follow the on-screen instructions and complete the studio installation.
Select Standard Installation.
Expand title View Image Note Android Studio is developed for Android application development. In order to get started with application testing using virtual devices, users need to have at least one project created. Once project is created, users can create and start emulators and download required platform images from the Android Studio.
- Once the installation is complete, launch Android Studio.
- Create a dummy project.
- From the File menu, click Settings.
- Under Appearance & Behavior, expand System Settings and select Android SDK.
- In the right pane, select SDK Platforms.
Select required packages to install and click Apply.
Expand title View Image Tip Google system images are required to create and start virtual devices (emulators). Generally, emulators created with Google APIs Intel x86 Atom System Image serve all the testing requirements, however, users can download and install any system image depending on the testing requirements.
If you want Google Chrome in the Nougat emulator, please select Google API as system image. Google Chrome comes as a default browser for Nougat and not for other Android operating systems.
System displays the list of components selected to be installed.Go to SDK Tools and ensure that Android SDK Build-Tools is installed. If not, then download it.
Expand title View Image Click OK.
Once all the required components are installed, click Finish.
Now you can start creating virtual devices. For more information about creating and managing virtual devices (emulators), click here.
...
- From desktop, right-click the Computer icon.
- Select Properties from the context menu.
- In the left pane, click Advanced System Settings.
- On the System Properties window, click Environment Variables.
- In the User Variables section, create new variable as ANDROID_HOME and enter the path of Android SDK.
To find the Android SDK location, launch Android Studio > File > Settings. Copy the path specified in Android SDK Location.
For example: D:\Android - Click OK.
Note: The Android_Home path should not contain any white spaces. - If Java_Home is not already set, create a new variable as JAVA_HOME, type the path to JRE/JDK and then click OK.
- In the System Variables section, select the PATH variable and type to enter the following paths:
- Type the path to 'Platform-tools' from the Android SDK location (which you added in the step 5 above).
For example: D:\Android\platform-tools
- .
- Type the path to 'tools' from the Android SDK location (which you added in the step 5 above).
For example: D:\Android\tools.
- Type the path to 'Platform-tools' from the Android SDK location (which you added in the step 5 above).
- Click OK.