Pages

Thursday, 21 April 2022

How to Create Android Emulator device for Mobile Testing? How to create virtual device in Android Studio?

 

Mobile Automation Testing Appium INterview Q&A SET - 01

Mobile Testing Interview Q&A Set - 02

Top API Interview Question 1-10

Emulator

Android emulator is a tool that creates virtual Android devices (with both software and hardware), emulators are very important to perform Mobile Testing, below are the steps to create a Android Mobile device which we can use for Mobile Testing on any Android Version.

It mimics the hardware and software of the target device on your computer. They do this by translating the ISA (Instruction Set Architecture) of the target device to the one used by the computer you are using to conduct testing using binary translation.

The Android Emulator for PC replicates a browser or an Android App, on a defined operating system (like Windows or Mac). It attempts to create virtual hardware conditions for an Android device, which can be used for the purpose of testing and debugging. There are multiple Android Emulators Online in the market like Andy Emulator, which have their own set of limitations and will never provide a real device environment for bug-free testing.

In my ten years of experience, I have observed that when we want to test mobile applications, we always prefer to do the dry run on emulators. In fact, most organizations prefer emulators to run a regression suite for appium testing. So it is quite vital to know about emulators and how to create one for Appium testing.


Step - 01

First, make sure that you have Android Studio downloaded on your machine. 

It is quite easy to download Android Studio from below link:

Download ANDROID STUDIO


Step -02:

Open Android Studio and click on "Configure" option, after that select the "ADB Manager" from the list as shown in the below screenshot


 Click Here For Test Scenarios On API Testing

 Step - 03:

Now click on "Create Virtual Device" button, you will be redirected to "Select Hardware" page, where we need to select the mobile type, for example "Pixel XL" as shown below, and then click on "Next"


 

Step - 04:

After the "Select Hardware" page you will be able to see the "System Image" page,  here we need to select which Android version we want in our mobile device for testing, for example Pie, Oreo, R etc.
In below image you can see that I have selected Android 11, then click on Next:

How to Create Stub with Wiremock for API Testing?

Step - 05:

Now you will at "Verify Configuration" page, here you can check the selection we have done in step 3 and step 4, provide the name of your device as I have given the name "AndroidMobile" in below screenshot:




Here you can change the Memory and Storage too by clicking on "Show Advanced Settings", you will get the options as shown below, now click "Finish"



Step - 06:

Now the device is created and in the dashboard we can see it, search with the device name that we have provided in Step-05 as shown below, now just click on the Play button and the device is ready for testing :)



Now perform testing by dragging your .apk to the newly created virtual device.


INSTALL APK


There are many websites that provide the sample apk, which can be used for testing. If you do not have any .apk or .ipa files, you can run your sample tests, you can use the practice apk HERE

*************************************************

SeleniumWebdriver Automation Testing Interview Questions:

API Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Rest-API

Learn (API-Microservice)Testing+(CoreJava+UI)-SDET

with Self Paced Videos and one LIVE Doubt Session

TRANING VIDEOS AVAILABLE with Live Doubt Session @4500/-(course-1 below,
API TRaining Videos With ClassNotes and Coding Set) and 6500/- (API+UI, both course-1 & 2 below)
Check Training Page for Course Content or reach out @whatsapp +91-9619094122

Entire course content can be found below:  COURSE CONTENT

Kubernetes Interview Question Set
https://automationreinvented.blogspot.com/search/label/Kubernetes

 
Docker Interview Question Set
https://automationreinvented.blogspot.com/2020/02/top-18-docker-commands-for-aytomation.html

 
Linux Interview question Set
https://automationreinvented.blogspot.com/search/label/Linux

 
Automation Testing/SDET Framework Design
https://automationreinvented.blogspot.com/search/label/FrameworkDesign


Java Related Interview Question Set

https://automationreinvented.blogspot.com/search/label/Java


GIT Interview Question Set:
https://automationreinvented.blogspot.com/search/label/GIT


Coding Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Coding%20Questions
Mobile Testing Interview Question Set:
https://automationreinvented.blogspot.com/search/label/Mobile%20Testing
Python Interview Question Set for QAE - SDET - SDE:
https://automationreinvented.blogspot.com/search/label/Python



No comments:

Post a Comment