Versions Compared

Key

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

...

  • switch between web and mobile

  • use API in their tests

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

...

  1. Navigate to the test case screen.

  2. Create an API Business Component by selecting ‘Type’ as API instead of UI.

    Image RemovedImage Added

  3. Click on Test Steps tab.

  4. Add appropriate details in the API component like :

    1. Group Name

    2. Request Type

    3. Request URL

    4. Authentication (if any)

    5. meta data under Header Parameters tab

    6. meta data under Query Parameters tab

    7. meta data under Body Parameters tab

    8. meta data under Extract & Store tab

    9. 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 and execute it.

...