<<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:
2) Click on ‘Create Virtual Device’ button on the displayed ‘Your Virtual Devices’ screen as shown below:
3) Select any mobile device model say ‘Pixel 3’ from ‘Select Hardware’ screen and click on ‘Next’ button as shown below:
4) Select your choice of OS version (I downloaded the latest version of Android) and click on ‘Download’ link as shown below:
5) Select ‘Accept’ option in the displayed ‘License Agreement’ screen and click on ‘Next’ button as shown below:
6) Android Studio will start downloading the required packages.
7) Once the required components got downloaded and installed, click on the ‘Finish’ button as shown below:
8) Click on ‘Next’ button on the displayed ‘System Image’ screen as shown below:
9) Set a name for the Emulator (AVD Name field) and click on ‘Finish’ button as shown below:
10) Created Emulator will now be displayed under the Virtual Devices list as shown below:
11) Click on ‘Play Symbol icon’ to launch the created emulator as shown below:
12) Congratulations, you have successfully created the emulator and launched in from Android Studio as shown below:
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 ?
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>>
good blog, you can also explain how to consume that emulator with appium and in automation code
Sure Sachin. Will do in the upcoming posts.
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
Yes Ganesh, we are yet to write more articles and will be covering the scenarios you mentioned for sure.