How to use API in a test case?

Table of Contents

Bq Platform provides its user with the below methods to create their tests :

  • switch between web and mobile
  • use API in tests

Here’s how you can use API in your test.

Instructions : #

  1. Navigate to the test case screen.
  2. Create an API Business Component by selecting ‘Type’ as API instead of UI.

  3. Click on Test Steps tab.
  4. Add appropriate details in the API component like :
    • Group Name
    • Request Type
    • Request URL
    • Authentication (if any)
    • meta data under Header Parameters tab
    • meta data under Query Parameters tab
    • meta data under Body Parameters tab
    • meta data under Extract & Store tab
    • meta data under Assertions tab


  5. Save the component.
  6. Create a test case (Web or Mobile) like you normally do.
  7. Click on Test Steps tab.
  8. Call the API component in the test case wherever required, just like you call a UI type business component.


  9. Save the test.
  10. Execute the test.

Watch an execution video :