Versions Compared

Key

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

BQ also provides it's users the functionality to create and execute API tests within the platform itself. 

How to create an API Test?

  1. Click on DESIGN on left panel.

  2. Click on Test caseNavigate to Test Case screen.

  3. Create / select a module.

  4. Click on Add Test button.

  5. Enter the test details under Under Test Case Details tab. Make sure to select the test type as API from Type drop down.Click on save buttonDetail tab, enter the meta-data and select Type as API.

    Image Added

     

  6. Click on Save.

  7. Click on Test Steps tab.
    The request made is displayed under the Requests section, while the request details are displayed under the Details section.

  8. For any request made, enter the meta data : Group name, URL for the request, Authentication.

  9. Enter the parameters to verify under Header Parameter, Query Parameter, Body Parameters, Extract & Store and Assertions tabs.

  10. Click on Save buttonAPI test template will be generated. Requests and Details sections will be displayed.

    Image Added


    The API template displays :

    1. Left Nav (Requests section) which lists steps. You can add, delete and move steps here.

    2. On the right (Details section) you have step group, url, credentials & tabbed grid for various inputs.


How to execute an API Test locally?

...

  1. Click on EXECUTE on left panel.

  2. Click on Execute Automated Tests.

  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)

    • Build Number

    • Browser instance (the number of browse instances you wish to run the test cases on)

    • Distributed across Machines (Select the check box if you wish to distribute tests on various connected machines)

    • Execution Tags (if used any in the test cases)

  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 machine's name and the browsers available on that machine.

  8. Select the browser 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).



Remote Execution

...