Breez Device Creation

Virtual device

Overview

This document is for Device Creation for mobile automation, For mobile automation, user can create the device of two types.

  • Virtual Devices (Emulator)
  • Physical/Real Devices (Mobile Phone)
Pre-requisites for Virtual device

Here the user need to have Android Studio installed in the system. (The installation if android studio and the similar can be referred in then Installation Guide)

After successful installation of android studio the user need to open it and then need to follow the steps for creation of virtual device (emulator)

Creation of Virtual device
  • Once the android studio is open the click on Device manager.
  • Fig:01-Android Studio

  • Then click on create device as shown in the Fig:02
  • Fig:02-Create Device list

  • Now user need to click on Phone and select the configuration for the phone and then click on next button which is shown in Fig:03.
  • Fig:03-Device hardware

  • In fig:04 user need to select the API level and Android version and click on next button.
  • Fig:04-System Image

  • In Fig :05  User will give the name and then click on Finish.
  • Fig:05-Verifying Configuration

    Fig:06-Device list

Once user click in finish button then they can see the list pixel2 is appeared in the device list.

Note:-While creating the Device , if user is getting HAXM device not found the t he user can goto the given site and download and install the device, after installation restart the android studio and try creating the device.

Link:- https://www.filehorse.com/download-intel-haxm/

Click on Free Download and it will redirect to download page.

Click on Start download and download will be started once the download is done then go to download folder where it has been downloaded and extract the file.

Once the file is extracted then click on Haxm and install and then click on silent_install.bat file.

Note:- While Creating the Device , if user is getting VT-x is disabled in BIOS, Then the user need to restart the System and go to BIOS settings, and follow the steps,

  1. Reboot the computer
  2. While the system is restarting from a black screen, enter BIOS by pressing the hotkey. The hotkeys differ depending on the brand of the computer used. Usually F1, F2, F3, F10, Esc or Delete keys are the hotkeys to enter BIOS
  3. Navigate to Advanced Tab and press Enter to continue
  4. Select Virtualization and Enable (also shown in the Fig.)
  5. Save changes and reboot the computer
  6. BIOS can also be accessed through Windows in Settings.

This is the Bios setting main menu and here we have to Click F10 to enter the BIOS setup, once we are entered to the BIOS setup then we can go to Advance setting/System Configurations and search for Virtualization Technology and Enabled and then Save.

Once Device creation is done in android studio the user need to create the device with same name in Breeze. For creating the device in Breeze users can follow the given steps:

Device Creation in Breeze

Fig:07-Device Creation

Fig:08-Device configuration

Here in Fig:08 the user has to give all the details and device name same as device name given in  Android Studio. And then click on Create. The User need to give UDID for Creation of the Device. And Select the Device type as Real and Virtual Device.

UDID

How to Check UDID for mobile application automation for physical and virtual device.

  • Goto search bar
  • Type Command prompt and hit enter
  • Type adb devices and hit enter
  • You will be able to see list of devices with UDIDs
  • Fig:09- UDID

Physical Devices

How to connect physical device to Breez for mobile automation.(turn on developer mode)

Steps to be done:-

  • Open mobile settings
  • Check for About device/ more information or where you get system software information and click
  • Then check for build number for 7 times.
  • Now you are open for developer mode
  • Then search for developer option
  • Then search for USB debugging
  • Turn yes for USB debugging.
  • Turn yes for install  via USB and USB debugging(Security settings)

And done for connecting with Breez for automation