Limitations

Before generating a test, it’s important to know that there are a handful of limitations:

  • Only REST APIs are supported
  • Files cannot exceed 5 MB
  • For OpenAPI:
    • Only 3.x.x specifications are supported (Convert older versions with Swagger Converter)
    • Specifications must be JSON
  • For HAR:

Upload Specification/File

To kick off TestGen from the Multiple dashboard, navigate to Tests, select the + New Test in the upper-right of the dashboard.

  1. Select + New Test.
    Select new test
  2. Next, select Import Swagger/HAR.
    Select import Swagger/HAR
  3. When prompted, choose the OpenAPI specification or HAR file you’d like to upload, then select Upload File.

Select and Sequence Endpoints

From the file that you provide, Multiple will create a list of endpoints available to create a new load test. You can select and order the endpoints as you see fit for your use case.

Select and order endpoints for load test
  1. Select endpoints you’d like to include in your load test.
  2. Arrange the endpoints in the order you’d like for them to be called.
  3. Select Generate Payloads.

If you’re having trouble finding an endpoint, take advantage of the fuzzy search feature to quickly find what you’re looking for.

Verify Query Strings and Payloads

Multiple will attempt to generate query strings and request bodies for the endpoints that you selected. You can update the generated query string parameters and request bodies for each endpoint. The faker library is available for use in request bodies, e.g. faker.internet.email().

  1. Review, update, and verify the generated content.
    Verify message payloads are correct

    Use the thumbs up/thumbs down button to help us improve generated content.

  2. After you’ve validated that everything is correct, select Generate Test.

Review Test Code

Test code is generated from the endpoints selected and included in a class called AutoGeneratedMxTestSpec. The client is initialized in vuInit, however the bulk of test code that’s generated is included in vuLoop.

At this point, it’s important to review the test code generated and make necessary adjustments. For example, replacing placeholders marked by {variableName} and updating auth credentials.

Review auto generated code

Run Test

After you’ve validated the code, you can run the load test. For more information, see Test Run.