Installing JDK, Android Studio, and Appium: A Comprehensive Tutorial for Windows Users

In the ever-changing realm of mobile app development, maintaining the seamless functionality of your applications across a diverse array of devices requires a sharp focus. In this swiftly evolving landscape, mobile automation tools have become essential assets for Quality Assurance (QA) teams. Among the arsenal of powerful tools, Appium and the Android Studio Emulator stand out as a dynamic duo, collaborating seamlessly to enhance the efficiency of mobile testing.

Table of Contents

Installation for Windows

1. JDK 1.8 install https://www.oracle.com/in/java/technologies/javase/javase8-archive-downloads.html
2. Install Android studio

  1. https://developer.android.com/studio - download from this link
  2. Install Android SDK
  3. Install Android APIs (Emulators)
  4. Set system path variables
    • JAVA_HOME
    • ANDROID_HOME
    • PATH – in the path, we have to set JRE, Tools, Tools/bin, and Platform-tools
  1. Download Node from this link https://nodejs.org/en/download
  2. Set node bin path in the system environment variable as below as per your system

     C:\Program Files\nodejs\node_modules\npm\bin

  1. To install Appium through cmd open the command prompt as Administrator
  • Type this npm command: npm install -g appium
  • npm -install -g appium@1.22.3 à to download specific version of Appium

Download Specific Version Of Appium

  • To check what are driver is installed type the below command in cmd: Appium driver list

Appium Driver List

  • To install the UI Automator driver use the below command: appium driver install uiautomator2

Appium Driver Installer

Hire Us For Expert Software Testing Services

  • To open Appium/start the Appium server use the below command: Appium

Start Appium Server

Create a virtual device in Android Studio

  1. Open Android studio
  2. Click on Create a new device

Create New Device

  1. Click on the new hardware profile

New Hardware Profile

  1. Click on Finish

System Image

Android Virtual Device

  1. Click on the start icon

Start Icon

  1. The emulator will launch on a new screen

Launch Emulator

Read More Dynamic Process In Form Based Authentication

Download and Start the Appium Server

Appium desktop server

Download from this link https://github.com/appium/appium-desktop/releases/tag/v1.22.3-4

1. Open app

2. Set Host as:- localhost

3. Port: 8827

4. Select Allow CORS from the Advanced menu

Open Appium Inspector

Open Appium inspector 

  1. Click on this link https://inspector.appiumpro.com/ to open an online inspector
  2. Set below-desired capabilities
"platformName": "Android", 
"appium:platformVersion": "14.0", 
"appium:noReset": true, 
"appium:newCommandTimeout": "36000", 
"appium:automationName": "UiAutomator2", 
"appium:app": "D:\\Project\\IT path\\GrowBiz project\\Apk\\28 Jan_24\\mobile-app.apk", 
"appium:udid": "emulator-5554", 
"appium:disableIdLocatorAutocompletion": true, 
"appium:uiautomator2ServerInstallTimeout": "90000"

  1. Click on start session.
  2. After starting the session, it will launch the app in Android Studio and will get the mobile view in Appium Inspector.

Mobile View In Appium Installer 12

Forget Pin Code Of Appium

Conclusion

The synergy between Appium and the Android Studio Emulator provides a powerful solution for seamless and efficient mobile testing. By mastering their integration, QA teams and developers can navigate the complexities of diverse devices and deliver high-quality applications with confidence. Embracing the insights and best practices shared in this guide, you're equipped to elevate your mobile automation endeavors and ensure excellence in every facet of app development.

People Also Ask

Q: How does the collaboration between Appium and the Android Studio Emulator improve the landscape of mobile testing?

A: The fusion of Appium and the Android Studio Emulator creates a resilient solution for optimizing mobile testing processes. This integration empowers QA teams and developers to effectively manage the intricacies presented by diverse devices, ensuring a seamless testing experience.

Q: What benefits does expertise in integrating Appium and the Android Studio Emulator bring to QA teams and developers?

A: Proficiency in integrating Appium and the Android Studio Emulator allows QA teams and developers to confidently navigate the challenges posed by a wide range of devices. This mastery enables them to deliver high-quality mobile applications with increased efficiency and confidence.

Q: How can I apply the insights and best practices shared in the guide to enhance my mobile automation projects?

A: The guide imparts valuable insights and best practices for seamlessly integrating Appium and the Android Studio Emulator. By adopting these recommendations, you can elevate your mobile automation initiatives, ensuring excellence at every phase of app development.

Q: Are there specific hurdles addressed in the guide regarding mobile testing, and how do Appium and the Android Studio Emulator overcome them?

A: The guide delves into challenges associated with diverse devices in mobile testing. Appium and the Android Studio Emulator collaboratively tackle these challenges, providing a harmonious and efficient testing environment.

Q: Can the integration of Appium and the Android Studio Emulator extend to various mobile platforms beyond Android?

A: Although the Android Studio Emulator predominantly focuses on Android, Appium supports cross-platform testing. It can be configured to automate tests on both Android and iOS platforms, offering versatility for a range of mobile app development projects.

Q: How can I initiate the integration of Appium and the Android Studio Emulator for mobile testing?

A: The guide furnishes step-by-step insights and practical tips for mastering the integration of Appium and the Android Studio Emulator. Follow the recommendations provided to commence your journey into seamless and efficient mobile testing.

About Author

Sachin PawarSachin Pawar is a proficient Quality Executive at the Pixel QA, where he ensures top-notch quality in software products and services. His journey in the IT industry commenced in 2019 as a Software Test Engineer, and he has been making remarkable progress ever since. His long-term vision is to ascend to the QA Lead or QA Consultant role to shape the quality assurance landscape.

Beyond his professional life, Sachin enjoys playing cricket, exploring unknown destinations with friends, and seeking adventure through trekking.