Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

As we all know, the customers 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.

View file
nameRecord Mobile Test on Android.mp4
height250

Prerequisites :


Widget Connector
overlayyoutube
_templatecom/atlassian/confluence/extra/widgetconnector/templates/youtube.vm
width600px
urlhttps://www.youtube.com/watch?v=A4BM8dIp3qw
height400px

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.
    How to add file under Mobile App Attachment

  • 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.

  • For iOS, WebDriver Agent should be signed in through Apple developer account.

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

    application

    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

    steps recorded and the test case.

      

Executing tests for Mobile (Local execution) :-

Prerequisite : 

User should be on the Test case creation screen.

Step-by-step guide :-

  1. Select the test to execute.
  2. Click on the Test Steps tab.
  3. Click on Run button.
  4. On the Execution pop up window, select the device (simulator/real device) and the application version.
  5. Click on Go button. 

The Local Executor window will be displayed and the test will be executed on the selected device (simulator/real device).

Executing tests for Mobile (Remote execution) :-

Prerequisite : 

  1. Test cases should be created.
  2. Test cases should be added to the Test Suite.

Step-by-step guide :-

  1. Click on Execute.

  2. Click on Execute Automated Test.
  3. Select the Suite that you wish to execute. You should be able to view the 'list of test cases' under that suite along with its 'Last Execution Details'.

  4. Select the test cases that you wish to execute.
  5. In the Execution Details section, please enter/select the below details. 

    • Run Name
    • Executing in Sprint (Select the sprint in which you are executing the test cases)
    • Android version / iOS version
    • Execution Tags (if used any in the test cases)
    • Email Execution Report To (optional)
  6. If you expend the Advanced Settings section, you will see two options Uninstall App (Mobile) and Clear App Data (Mobile). Clear App Data (Mobile) checkbox will be checked by default. 
  7. When you expand the Execution machine(s) section, you will see the Desktop/Device(s) section, where you should be able to view the connected devices.
  8. Select the device on which you wish to execute the test case.
  9. Click on Run Selected button (if you have wish to execute selective test cases) or either click on Run All button (if you have wish to execute all test cases in the suite)

    recorded steps.


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

...

#

Button

Usage

1

Start / Stop recording

To start or stop recording

2

Spy

To locate a specific element

3

Record element screenshot as property

This checkbox needs to be checked for the recorder to record the image property

4

Anchor point while recording dynamic element

This checkbox needs to be checked for the recorder to select an anchor point while recording dynamic elements.

5

Displays recorded steps / elements

Area that displays recorded steps

6

Locator properties

Dropdown to view locator properties of a particular element.

7

Params

Recorded param values are displayed here.

8

Update

Saves the updated param value 

9

Console

Displays logs

10 

Pause console logs

Pauses the logs displayed on the console.

11

Clear logs

Clears the logs from the console.

12

Search box

To find a specific word in the logs.

13 

Previous arrow

Finds the previous searched word.

14

Forward arrow

Finds the next searched word.

15 

@ symbol

To mail the logs if the mail account is set up for the user

16

Save

Saves the recorded steps.

17

Clear

Clears 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

...

#

Button

Usage

1

Back

Navigates to the previous page

2

Refresh

Refreshes the mirror screen

3

Close

Closes the mirror screen

4

View Source Code

Displays the Source Code


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

...

#

Button

Usage

1

Tap on element

Tap on the particular element

2

Set value on element

Set 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.


Debugging Tests

...