In previous post, We executed offset appium exam successfully inwards android mobile device. Also you lot tin laissez passer on the sack use Android Virtual Device(Emulators) to run automation tests on nadroid app using appium. So let's learnt how to practise android emulator inwards windows organisation to rum appium exam on it. This send service volition depict you lot how to create (AVD) In Windows.
What Is An Android Virtual Device(Emulators)?
In full general term, an emulator is software or hardware that enables 1 estimator organisation (Example : Windows) to send similar unopen to other estimator system(Example : Android). It provides virtual surroundings of unopen to other system.
So hither nosotros tin laissez passer on the sack practise emulator of android device inwards windows organisation to operate appium exam on it.
Creating Emulators(AVD) In Windows
If you lot remember, Earlier nosotros stimulate got installed Android SDK inwards windows. Android SDK allows you lot to practise emulators inwards windows. So let's drive to practise android emulator inwards windows.
PREREQUISITES :
- Java should hold upward installed every bit described inwards THIS POST.
- Android SDK, it's all required packages and Intel Hardware Accelerated Execution Manager must hold upward installed every bit described inwards THIS POST.
- Android surroundings variables should hold upward set. View THIS POST.
Launch AVD Manager
SDK provides interface called AVD Manager to practise android virtual devices. So offset of all you lot ask to start AVD Manager.
- Open SDK folder. For me it is located at E:\SDK as described inwards SDK installation steps.
- There volition hold upward "AVD Manager.exe" file.
- Double click on "AVD Manager.exe". it volition launch AVD manager dialog every bit shown bellow.
Create Android Virtual Device
Using AVD Manager interface, We tin laissez passer on the sack practise emulator every bit described inwards bellow steps.
- Click on Create button. It volition opened upward Create novel Android Virtual Device dialog every bit shown bellow.
Note : In Target driblet down, You ask to lead that API score for which you lot stimulate got installed organisation images during SDK installation. I stimulate got installed Android 5.1.1 - API Level 22 in addition to hence selected it here. Also practise non pose infinite inwards AVD Name textbox.
- Fill values inwards all fields every bit shown inwards in a higher house picture in addition to click on OK button.
- It volition practise AVD in addition to demo message every bit shown bellow.
- New created device volition hold upward listed on AVD director every bit shown bellow.
Same agency you lot tin laissez passer on the sack practise whatsoever other size device emulators also every bit per your organisation images installation for dissimilar Android API levels.
Start AVD Emulator
Note : Please brand certain you lot stimulate got minimum two GB RAM inwards your system. iv GB RAM is recommended. AVD Emulator uses large total of memory. So delight unopen all non-required software applications earlier starting it.
To start Emulator
- Select New practise AVD 2.7_Inch_QVGA from list.
- Click on Start Button every bit bellow.
- It volition demo Launch Options dialog. Click on Launch button.
- It volition launch android emulator every bit shown inwards bellow image. Full launch tin laissez passer on the sack accept fourth dimension from v to x minutes based on your organisation configuration.
- Wait for a while. Emulator enshroud volition looks similar bellow subsequently few minutes. Be patient.
So straightaway android emulator is launched.
Unlocking Emulator Screen
Same every bit android mobile device, You tin laissez passer on the sack unlock emulator enshroud past times dragging lock icon upward past times mouse every bit shown inwards bellow image.
After unlocking, Emulator enshroud volition looks similar bellow.
This agency you lot tin laissez passer on the sack practise in addition to launch emulator for android device inwards windows system. We volition purpose this emulator to automate dissimilar android apps inwards my upcoming posts.
Verify Emulator Detected
You tin laissez passer on the sack abide by emulator from ascendancy prompt using ascendancy adb devices every bit shown inwards bellow image.
So my emulator is running fine in addition to detected past times my system.