As we all know, the customers that initially just had web applications for business, have started creating Mobile applications for the same. Mobile application testing was seen as a challenge by many but BQ Genie has simplified the process of creating a mobile test case. It captures the actions that you perform on the mobile application and converts it into executable tests. Yes!! It is that simple.

Prerequisites #

  • For iOS, WebDriver Agent should be signed in through Apple developer account.
    Please refer to the below link :
    How to Setup Bq Genie for Mobile Testing
  • Please make sure the Application created is Mobile Native
  • The app file / app url / Bundle id / package name (if app already installed on device) should be added under Attachments tab of the application.
  • A simulator / emulator should be setup on the machine or a real device should be connected to the machine.
  • USB Debug mode should be enable d for the Android real device.

Instructions to start BQ Genie for Mobile #

  1. Click on DESIGN on left panel.
  2. Click on Test Case.
  3. Create a new test case.
  4. Click on Test Steps tab.
  5. Click on the Record button.
  6. Enter the meta data for the Recorder pop up.
    • Port number (If the BQ client is not running on the default port 9999)
    • Application type (Mobile Native)
    • Select Device (connected devices (simulator & real device) will be fetched on clicking the refresh icon)
    • Application version (Select the application version on which you wish to record test from the drop-down)
  7. Click on Go button.
    BQ Genie and a mirror screen will be launched.
  8. Perform actions on the target element on mirror screen and appropriate steps will be recorded.
  9. If the Friendly name or Frame name is not auto populated for an element, on the recorder, please enter a suitable name for the element to be recognized.
  10. Save the recorded steps.

The Bq Genie recorder will be displayed like this for Mobile.

#ButtonUsage
1Start / Stop recordingTo start or stop recording
2SpyTo locate a specific element
3Record element screenshot as propertyThis checkbox needs to be checked for the recorder to record the image property
4Anchor point while recording dynamic elementThis checkbox needs to be checked for the recorder to select an anchor point while recording dynamic elements.
5Displays recorded steps / elementsArea that displays recorded steps
6Locator propertiesDropdown to view locator properties of a particular element.
7ParamsRecorded param values are displayed here.
8UpdateSaves the updated param value 
9ConsoleDisplays logs
10 Pause console logsPauses the logs displayed on the console.
11Clear logsClears the logs from the console.
12Search boxTo find a specific word in the logs.
13 Previous arrowFinds the previous searched word.
14Forward arrowFinds the next searched word.
15 @ symbolTo mail the logs if the mail account is set up for the user
16SaveSaves the recorded steps.
17ClearClears the recorded steps.

Anchor checkbox functionality #

Suppose all the attributes of an element are dynamic and we are unable to locate the element, in that case we select the anchor checkbox on the recording. The recorder prompts user to select a static element on the page (through which the dynamic element will be accessed) and then it prompts the user to select the dynamic element. It then creates a link between the two and thus locates the dynamic element.

Viewing the Source Code #

BQGenie also allows it’s user to view the Source code of the mobile app.

Below is how the mirror screen looks while trying to recording an app on Mobile.

#ButtonUsage
1BackNavigates to the previous page
2RefreshRefreshes the mirror screen
3CloseCloses the mirror screen
4View Source CodeDisplays the Source Code

The screen looks like the below mentioned image, when the View Source Code button is clicked.

#ButtonUsage
1Tap on elementTap on the particular element
2Set value on elementSet value on the particular element

Using Tap on element #

  1. Click on Start button to start recording.
  2. Press Ctrl button and mouse hover over the element you wish to record.
  3. Click on Tap button.
    The element will be recorded with action keyword click.
  4. Click on Stop button to stop recording.

Using set value on an element #

  1. Click on Start button to start recording.
  2. Press Ctrl button and mouse hover over the element you wish to set value on.
  3. Click on Set value on element button.
  4. The element will be enabled.
  5. Enter the value on the element.
  6. Press tab key.
    The element will be recorded with the action keyword setValue.
  7. Click on Stop button to stop recording.