AI Load Check Era ✨ – A number of
Limitations
Earlier than producing a check, it’s vital to know that there are a handful of limitations:
- Solely REST APIs are supported
- Recordsdata can not exceed 5 MB
- For OpenAPI:
- Solely 3.x.x specs are supported
(Convert older variations with Swagger Converter) - Specs should be JSON
- Solely 3.x.x specs are supported
- For HAR:
Add Specification/File
To kick off TestGen from the A number of dashboard, navigate to Checks, choose the + New Check within the upper-right of the dashboard.
- Choose + New Check.
- Subsequent, choose Import Swagger/HAR.
- When prompted, select the OpenAPI specification or HAR file you’d wish to add, then choose Add File.
Choose and Sequence Endpoints
From the file that you just present, A number of will create a listing of endpoints accessible to create a brand new load check. You’ll be able to choose and order the endpoints as you see match on your use case.
- Choose endpoints you’d like to incorporate in your load check.
- Organize the endpoints within the order you’d like for them to be known as.
- Choose Generate Payloads.
When you’re having bother discovering an endpoint, benefit from the fuzzy
search function to shortly discover what you’re searching for.
Confirm Question Strings and Payloads
A number of will try and generate question strings and request our bodies for the endpoints that you just chosen.
You’ll be able to replace the generated question string parameters and request our bodies for every endpoint.
The faker library is offered to be used in request our bodies, e.g. faker.web.e mail()
.
- Evaluate, replace, and confirm the generated content material.
Use the thumbs up/thumbs down button to assist us enhance generated content material.
- After you’ve validated that the whole lot is right, choose Generate Check.
Evaluate Check Code
Check code is generated from the endpoints chosen and included in a category known as AutoGeneratedMxTestSpec
. The consumer is initialized in vuInit
, nonetheless the majority of check code that’s generated is included in vuLoop
.
At this level, it’s vital to overview the check code generated and make mandatory changes. For instance, changing placeholders marked by {variableName}
and updating auth credentials.
Run Check
After you’ve validated the code, you possibly can run the load check. For extra info, see Test Run.