How to use multiple technologies in a single Test?

There is often a need to test a workflow that spans across multiple different applications using different technologies. For example, your users may use a mobile application to create an order, that gets validated from your backend web app that inturn makes an api call to the fulfilment system. If order to test the end to end workflow one has to touch upon Mobile app, web app and APIs.

BQ has keywords that allow you to switch between different application technologies within a Test.

Scenarios:

  1. Switch to a Web App from any other app

  2. Switch to a Mobile App

  3. Switch to a different Browser

  4. Switch to a different Mobile Device

  5. Call an API Test

Let us try to understand this feature better with the help of an example.

1- Select the application type as Mobile Native, while creating the application.

2- Upload the .ipa or .apk file in the Attachment Tab of the created application.

3- Tap on New File icon. Select the File type accordingly as Android , iOS_Simulator or iOS_Device.

Suppose, we wish to install .apk file on the Android emulator.

4- Select Android as the File type and enter the File version.

5- After entering the file version, drag the file to the highlighted area or click on it to browse the file.

6- Select the file and upload it. You will see the attached file as below.

7- Select the uploaded file and navigate to the Test Case creation screen.

8- Add a test case, you will notice that the application type will be displayed as MOB in front of each test step.

9- Use action ‘switchApp’ to switch from one application type to another.

Note : You can switch the application type from Native Mobile to Web, SAP Windows GUI and Oracle EBS.

Suppose we wish to switch to WEB application type.

10- Select WEB in the Application type & click on the Update button.

After using the ‘switchApp’ keyword, use the action keyword ‘useBrowser’ to launch the desired browser for the web application to launch.

Once you switch to WEB application type, you will notice that the application type in front of each test step changes to WEB.

Use the BQ Recorder to record the steps.

11- Select the Application type as WEB to record.

12- Enter the web site to record (ex. https://www.bqurious.com)

      The BQ Recorder will launch the desired website for you to record the test case.

13- Save the steps once recorded.

14- Add the test case to a Suite and execute it.

15- Navigate to Execute Automated tests and select the Suite that contains the test case.

16- Select the test case and do not forget to select the Android version or the iOS version from the dropdown.

17- Select the machine and tap on the refresh icon to fetch the connected devices and simulators.

18- Select the appropriate device or simulator and click on Run Selected button (displayed in the footer) to execute the test case.