HomeAppium

Appium – Creating an Emulator with Android Studio

Appium – Creating an Emulator with Android Studio

<<Previous Post       <<Complete Tutorial>>       Next Post>>

Appium – Creating an Emulator with Android Studio

In this article, I will be explaining ‘How to create an Emulator using Android Studio’ in a step by step manner.

Android Emulator is nothing but a Virtual Device to test our mobile applications.

In order to test a mobile application on the desired mobile device (say One Plus 7 Pro), we need to purchase the specified mobile device and test the application on the device. But this cannot be achieved every time, as the mobile application needs to be tested on several mobile devices (Say One Plus 6, One Plus 6T, One Plus 7, One Plus 7 Pro, Samsung Galaxy S10, Samsung Galaxy S9 and so on). We cannot purchase all the devices that the Mobile App is supporting.

Instead, depending on the situations, we can use Virtual Devices (Mocks for real devices) known as Emulators for testing the Mobile Application on these huge lists of devices at free of cost.

Pre-requisite: Android Studio should be installed and launched (Click here for step by step  instructions for installing Android Studio). Ignore, if you already have Android Studio installed in your machine.

Now, follow the below steps for creating an Emulator using Android Studio:

1) Launch Android Studio and select ‘AVD Manager’ option from ‘Tools’ Menu as shown below:

Appium - Android Studio - AVD Manager

2) Click on ‘Create Virtual Device’ button on the displayed ‘Your Virtual Devices’ screen as shown below:

Appium - Android Studio - Create Virtual Device

3) Select any mobile device model say ‘Pixel 3’ from ‘Select Hardware’ screen and click on ‘Next’ button as shown below:

Appium - Android Studio - Select Hardware for Emulator

4) Select your choice of OS version (I downloaded the latest version of Android) and click on ‘Download’ link as shown below:

Appium - Android Studio - Select OS Version for Emulator

5) Select ‘Accept’ option in the displayed ‘License Agreement’ screen and click on ‘Next’ button as shown below:

Appium - Android Studio - License Agreement for downloading Emulator

6) Android Studio will start downloading the required packages.

Appium - Android Studio - Downloading required packages Emulator

7) Once the required components got downloaded and installed, click on the ‘Finish’ button as shown below:

Appium - Android Studio - Finishing Emulator Creation

8) Click on ‘Next’ button on the displayed ‘System Image’ screen as shown below:

Appium - Android Studio - Emulator Creation - System Image Screen

9) Set a name for the Emulator (AVD Name field) and click on ‘Finish’ button as shown below:

Appium - Android Studio - Emulator Creation - AVD Name

10) Created Emulator will now be displayed under the Virtual Devices list as shown below:

Appium - Android Studio - Emulator Creation - Vitual Devices List

11) Click on ‘Play Symbol icon’ to launch the created emulator as shown below:

Appium - Android Studio - Emulator Creation - Play

12) Congratulations, you have successfully created the emulator and launched in from Android Studio as shown below:

Appium - Android Studio - Emulator Creation - Launch

Next Steps:

  • > To learn more about Appium, continue to the next post (Click on Next Post Link Below)
  • > Check complete Appium Tutorial Contents here (Click here)

Please leave your questions/comments/feedback below.

Happy Learning ?

About Me > Jagadeesh Kotha

Connect to me on Linked In (Click here)

On a mission to contribute to the Software Testing Community in all possible ways.

<<Previous Post       <<Complete Tutorial>>       Next Post>>

Comments (4)

  • good blog, you can also explain how to consume that emulator with appium and in automation code

    Reply
  • Hi I’m Ganesh it is nice article u can also explain the scripting part as well every one need scripting which covers regular project scenarios take those as an examples and explain thanks

    Reply
    • Yes Ganesh, we are yet to write more articles and will be covering the scenarios you mentioned for sure.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

For FREE Testing Tutorials & Videos

X
Open chat
Contact Us on Whatsapp