How to install Android Studio?
A Manual tester want to start and learn automation, there are many curiosity come to their mind about what tool to use?, which IDE(Integrated Development Environment) to select?, what testing framework to select? This tutorial will help you to know about an IDE called Android Studio. IDE is nothing but development environment for writing and executing code.
Android Studio is the official IDE for coding android app, but it is also very good alternative for writing and executing test cases. Android Studio is very easy to install and faster to write, deploy and run.
Let us see why Android Studio is best suitable for testing
- Android Studio supports both JUnit and TestNG testing framework which are most commonly used for building automation framework.
- We can use various automation tool with Android Studio like Appium, Espresso and Robotium etc.
- Android Studio provides support for Unit Testing (White box testing) and Instrumentation Testing (Black box testing).
- After Test case execution, Android Studio generates html report as an overview of passed and failed test cases.
- Most interesting feature provided by Android Studio is we can calculate code coverage on the basis of test cases written. This helps us measure our testing efforts.
After knowing, how we can effectively use Android Studio for our testing effort. Now, we will see how to install Android Studio. Before installing Android Studio, it is required to install Java.
- First of all Download latest JDK version from This Link
- Click on “Accept License Agreement” and download latest code.
- Click on .exe file and then java installation window will open.
- Click on next and finish installation.
- Installation doesn’t complete unless you set JAVA_HOME.
- So go to my computer properties.
- Click on Advanced System Settings -> Advanced > Environment Variables
- Click on New under System Variable. Then in Variable Name enter “JAVA_HOME” and Variable Value as “Java Installed Path” (It mostly lies in : C:\Program Files\Java\jdk1.8***)
- Now, edit path variable and add “;%JAVA_HOME%\bin” at the end.
- To verify that java is installed successfully, go to command prompt and enter “java – version”. You will see “Java Version 1.8.***”
- Now Download Android Studio from THIS LINK
- Click on .exe and install the Android SDK into your system.
- Installation doesn’t complete unless you set ANDROID_HOME. So go to my computer properties.
- Click on Advanced System Settings -> Advanced -> Environment Variables -> New Variable and Variable Name – “ANDROID_HOME” and variable value-” C:\Users A\Downloads\android-sdk . The same way as we did for Java Home
- Then, Select Path Variable -> Edit and then add following path after semicolon (;) %ANDROID_HOME%/tools;%ANDROID_HOME%/platform-tools