Follow

Executing Tests in API Test Maker

The Tests tab for each operation in your API model lets you create a range a comprehensive set of positive, negative, and edge case tests that thoroughly test the selected operation. Once the tests are created, you can execute them and review the results of each test. The tests are executed like any other functional tests in BlazeMeter.

  1. Create an API Model or edit an existing one to access the Edit API Tests page. 
  2. Click a resource in the left pane to view the operations under that resource.
  3. Click an operation name to view the details for that operation in the right side of the page.
  4. Make any desired changes to your API model.
  5. Click the Tests tab.
    The Tests tab opens. If you previously generated test cases for this operation, you can review the existing tests. 
  6. Review any existing test cases and determine whether you need to generate a new set of tests.
  7. To generate a new set of tests, click Generate Tests in the Auto Generated section of the tab.
    Note: To generate a new set of test cases, you must first remove all existing generated tests.
    AutoGenTests.png
  8. Click Execute All Tests.
    Note: Clicking Execute All Tests executes all the tests that are defined for this operation, regardless of whether the check box is selected or not. The check box is only used for removing tests.
    Once your tests are executed, the View Report button appears.
    Execute.png
  9. Click View Report to see the results of your API tests.
    ViewReport.png
    The results for the selected tests open in a new browser tab. If you click View Reports before the execution is complete, a status bar shows you the progress of your test execution.
    Note: Your test results are also available from the Reports menu in BlazeMeter. For more information about viewing your reports, see the Understanding Reports section under Tests & Reports in this knowledge base.
    Report.png
  10. To remove one or more tests, select the check box for each test that you want to remove and click Remove Tests.

Once your API tests are created, it is also possible to run them using the BlazeMeter REST API. This means that instead of manually starting the tests, you can create an automated script that runs a predefined test via the API. For more information, see the API Overview and related articles.

Have more questions? Submit a request

0 Comments

Article is closed for comments.