From API Definition

Applies to ReadyAPI 3.56, last modified on November 21, 2024

You can quickly create a load test from an API definition file. You can use WSDL, OpenAPI, Swagger, and WADL files:

  1. Select File > New > Load Test.

    – or –

    On the Dashboard, click Load Test on the New Test tile:

    API load testing with ReadyAPI: Create a load test
  2. In the New Load Test dialog, select the API Definition option and click Start.

    API load testing with ReadyAPI: the New Load Test dialog

    Click the image to enlarge it.

  3. Select how to input your API definition. You have two options:

    • File

      • Enter the file path or URL of the API definition in the field provided.
      • Alternatively, click the Browse button to locate and select the file from your computer.
      API load testing with ReadyAPI: Specify the file location

      Click the image to enlarge it.

    • SwaggerHub Integration

      • Import an API definition from SwaggerHub. This option is available if you've integrated ReadyAPI with your SwaggerHub account. For more details on integration, see the SwaggerHub integration page.
      • Select one of the following options:

        • My API: Search for and select an API from your private SwaggerHub account.
        • Public API: Search for and select an API from publicly available APIs on SwaggerHub.
        Importing API definition from SwaggerHub

        Click the image to enlarge it.

    Tip:

    Use the Filters button to refine the API list:

    • Select specific API specifications: OAS2, OAS3, OAS3.1, AsyncAPI, or All.
    • Optionally, select Private or Public for My API.
    • Click Select All or Deselect All to manage your filter selections.

    Click Next.

  4. Select the load template to use. If you are not sure which one to pick, select a baseline template and click Configure Load Test.

    API load testing with ReadyAPI: Select a load template
  5. Configure the load test:

    API load testing with ReadyAPI: Configure you load test
    • Specify the name of the load test in the Load Test Name field.

    • Specify the number of virtual users simulated in the test. Each virtual user will send a request to the service. For more information on how ReadyAPI simulates virtual users, see Load Type.

    • Configure load test assertions. If you are not sure, specify the recommended values or select the Skip assertions for now checkbox to configure assertions later.

    • Click Finish.

  6. After you create a load test, ReadyAPI will offer you to run it, or configure it to run on multiple machines. Select one of these options to continue working with the created load test.

    API load testing with ReadyAPI: Run the load test or add agents

    For more information about running your test on multiple machines, see About Distributed Load Testing.

See Also

From Existing Functional Test
From URL

Highlight search results