Exploring GenyMotion Android Emulator for Mobile Testing
GenyMotion is a Software Program which falls into the Android Emulator category of Mobile Testing.
After installing the GenyMotion, we will be provided with may Virtual Android Mobile Devices which can be used in place of real devices for performing Mobile Testing.
In this article, I am going to practically demonstrate downloading and installing GenyMotion, launching different Virtual Android Mobile Devices from the GenyMotion and explore all the other options provided by GenyMotion for making our Mobile Testing easy.
Let’s get started.
Follow the below steps for exploring GenyMotion Android Emulator for Mobile Testing:
Downloading and Installing GenyMotion and launching Virtual Mobile Devices in GenyMotion
Follow the below steps for downloading and installing GenyMotion and then launching Virtual Mobile Devices from the GenyMotion:
1) Google search ‘Genymotion for personal use’ in any browser say chrome and click on the below search result:
2) Click on ‘Download Genymotion Personal Edition’ button on the displayed page (https://www.genymotion.com/fun-zone/) as shown below:
3) In the displayed page, Login to GenyMotion account (If you don’t have an account with GenyMotion, create an account and login)
4) In the displayed Download Genymotion page, click on the button which downloads the Genymotion for Windows along with Virtual Box as shown below:
5) Observe that the GenyMotion will start downloading as shown below:
6) Once the GeneMotion got fully downloaded, double click on the downloaded exe file to install the GeneMotion as shown below:
7) Select ‘English’ option and click on ‘OK’ button as shown below:
8) Click on ‘Next’ button on the ‘Select Destination Location’ wizard as shown below:
9) Click on ‘Next’ button on the ‘Select Start Menu Folder’ wizard as shown below:
10) Click on ‘Next’ button on the ‘Select Additional Tasks’ wizard as shown below:
11) Click on ‘Install’ button on the wizard as shown below:
12) Installation will begin as shown below:
13) Click on ‘Next’ button on the Virtual Box Welcome Installation Wizard as shown below:
14) Click on ‘Next’ button on the ‘Custom Setup’ wizard as shown below:
15) Click on ‘Next’ button on the ‘Custom Setup’ Choose Options Wizard as shown below:
16) Click on ‘Yes’ button on the ‘Warning Network Interfaces’ wizard as shown below:
17) Click on ‘Install’ button on the ‘Ready to Install’ wizard as shown below:
18) Virtual Box will start installing as shown below:
19) Click on ‘Finish’ button on the ‘Oracle VM Virtual Box’ wizard as shown below:
Observe that the Virtual Box Manger will be launched.
20) By keeping the ‘Launch Genymotion’ checkbox option as selected and click on ‘Finish’ button as shown below:
21) Observe that the GenyMotion will start launching as shown below:
22) Once the GenyMotion is fully launched, we can see a list of available virtual mobile devices.
Now, lets launch any Virtual Mobile Device from the GenyMotion by following the below steps.
Double click on any virtual mobile device say ‘Google Nexus 7’ to install it in the GenyMotion as shown below:
23) In the displayed ‘Install Virtual Device’, click on ‘Install’ option as shown below:
24) Selected Virtual Mobile Device will start installing in the GenyMotion as shown below:
25) Once the virtual mobile device is installed, click on ‘Start’ button as shown below:
26) Observe that the selected Virtual Mobile Device (Google Nexus 7 in our case) will be launched as shown below:
Exploring various options provided by GenyMotion for using the Virtual Mobile Devices
Lets explore different options provided by the GenyMotion for using the Virtual Mobile Devices:
Simulating Mobile Device Battery
GenyMotion provide options to mimic the Mobile Device usage in the launched virtual mobile devices.
While you use the Virtual Mobile Device in GenyMotion, the Device Battery will be on use and the available battery percentage will keep on reducing.
And you have options to charge the Device Battery by using the GenyMotion provided options.
Follow the below steps for understanding the Mobile Device Battery Simulation:
1) Observe that by default the Mobile Device Battery will be in use as shown below:
2) Click on the above ‘battery in use’ icon option and observe that the GenyMotion Battery options will be displayed as shown below:
3) You can charge the Virtual Mobile Device by selecting the above Batter options as shown below:
Note: We need to On the batter from the Battery options for charging.
Simulating Mobile Device GPS Location
GenyMotion provide options to mimic the Mobile Device GPS Location in the launched virtual mobile devices.
Virtual Mobile Device in GenyMotion has options,which allows us to simulate the Device GPS Location.
Follow the below steps for understanding the Mobile Device GPS Location Simulation:
1) Click on the GenyMotion GPS Location option on the virtual mobile device as shown below:
2) GPS Location options will be displayed as shown below:
3) Turn on the GPS Location and click on ‘Map’ icon to select the location for which you want to simulate the GPS Location for the Mobile Device as shown below:
Simulating Mobile Device Camera Options
GenyMotion provide options to mimic the Mobile Device Camera Options in the launched virtual mobile devices.
Virtual Mobile Device in GenyMotion has options, which allows us to simulate the Device Camera Options.
Follow the below steps for understanding the Mobile Device Camera Option Simulation:
1) Click on the GenyMotion Camera option on the virtual mobile device as shown below:
2) Observe that the Camera Options will be displayed as shown below:
3) Turn on the Camera option and select the other Camera options displayed on the screen as shown below:
Capturing the Screenshots, Recording the Screen and viewing the captured Screenshots/Recorded Videos using GenyMotion options on the virtual mobile device
GenyMotion provide options to capture the screenshots, record the screen and view the captured screenshots/recorded videos in the launched virtual mobile devices.
Follow the below steps for understanding the options for capturing the screen, recording the screen and view the captured screenshots/recorded videos:
1) Click on the GenyMotion’s ‘Capture’ option on the virtual mobile device as shown below:
2) Observe that the Capture options will be displayed as shown below:
In the above screen, click on the ‘Screenshot’ option to capture the current device screen.
Also, click on the Screencast option to record the screen like a video.
3) Click on the ‘Browse files’ option in the above step to find the captured screenshot and recorded video that are saved on your computer as shown below:
Other GenyMotion option on the virtual mobile device
The following are the other different Genymotion options that are available on the virtual mobile device:
1) We can opt for different Disk types having different read speeds for the virtual mobile device as shown below:
Note: We also have an option to clear the Disk Cache
We can change the above Disk options as part of different test cases while testing the Mobile App.
2) We can also connect the virtual mobile device to the internet using the Network option as shown below:
3) We can intentionally make a call while we are using the Mobile App in the Virtual Mobile Device in Genymotion by using the below Call option:
4) We can turn on/off the virtual mobile device using the Power option as shown below:
5) We can rotate the screen for changing the virtual Mobile Device from Portrait mode to Landscape mode as shown below:
Installing and Testing Android Mobile App on GenyMotion’s Virtual Mobile Device:
Follow the below steps for installing and Testing the Android Mobile App in the Virtual Mobile Device of GenyMotion tool:
1) Launch any Virtual Mobile Device in the GenyMotion tool as shown below:
Note: Make sure the Virtual Mobile Device is connected to the internet.
2) Download the sample Android Mobile App provided by Appium at the GitHub URL – https://github.com/appium/java-client/blob/master/src/test/java/io/appium/java_client/ApiDemos-debug.apk as shown below:
3) Observe that the sample Android Mobile App apk file got downloaded as shown below:
4) Now drag and drop the above downloaded apk file to the virtual mobile device which is launched in GenyMotion tool as shown below:
5) Observed that the Android Mobile App APK file will be installed and launched on dropping into the virtual mobile device as shown below:
Note: The name of the Mobile App that is installed and launched into the device is ‘API Demos’
6) Now, we can perform testing on the installed Mobile App by following the below steps:
Lets say we can tap on the ‘Preference’ option and the below App screen will be displayed.
In the ‘Preferences’ screen, tap on the ‘Default values’ and observe that the below App Screen will be displayed
In the Default Values screen, tap on the ‘Life Preference’ and observe that the below options will be displayed:
Tap on any option say ‘Charlie Option 03’ in the above App screen as shown below and click on ‘Cancel’ button to close the options.
Again open the same option and see whether the selected option is in saved state to end the test.
Here ends one end to end test in the above mobile app.
Here ends this article.
As explained in this article, we can launch the virtual mobile devices in the GenyMotion, use various GenyMotion options for simulation purpose and then perform testing by installing the Android Mobile App in the virtual mobile device of the GenyMotion tool.
Hope your enjoyed this article.
Kindly provide your valuable feedback which will motivate us to write more this kind of articles.
Please leave your questions/comments/feedback below.
Happy Learning 🙂
On a mission to contribute to the Software Testing Community in all possible ways.