Versions Compared

Key

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

Its quite simple to execute a single test Even though Android and iOS environments are vastly different, but given BQs paradigm of write once and execute anywhere, the same test can be executed on both Android and iOS. All you need to do is use ifAndroid & ifiOS keywords for the respective steps and you are good to go.

Instructions

...

Click on Design on left panel

...

Click on Test Case option

...

Create or select an existing module

...

Click on Add Test button

...

Enter the meta data for Test Case Details

  1. Objective

  2. Priority

  3. Designer

  4. Reviewer

  5. Type

  6. Category

  7. Test Path

...

Click on Save

...

Click on Test Steps tab

...

Save the test case.

...

Click on Design

...

Click on Test Suite

...

Add the created test to a test suite

...

Save the Suite

...

Click on Execute.

...

Click on Execute Automated Test.

...

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

...

Select the test cases that you wish to execute.

...

In the Execution Details section, please enter/select the below details. 

  1. Run Name

  2. Executing in Sprint (select the sprint in which you are executing the test cases)

  3. Android Version

  4. iOS Version

  5. Execution Tags (if used any in the test cases)

  6. Execute Tag First (if you wish to execute the tests tag wise)

  7. Email Execution Report To (email id to send the execution report to)

...

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 machine's name & the connected simulator/ emulator/ real devices (for Mobile).

...

Click on the Refresh icon for the device on which you wish to execute the test case, the connected device list will be displayed.

...

Select the simulator/ emulator/ real devices.

...

This feature comes with the following caveats:

  1. App workflow should be the same for both Android and iOS

  2. UI elements use IDs in both application variants

However, we understand that maintaining these constraints requires a lot of discipline and may not be met. In this situation we have the following ways to work with slightly different variants:

  1. In case app workflows differ between Android and iOS, you can write steps that differ between the variants inside conditional keywords ifAndroid and ifIOS.

  2. If apps use different UI elements to leverage device's native capabilities, you can record the test on any variant and then leverage BQ Genie Scanner to update UI elements for the second variant.

Creating Test Suite

...