#
Adding tests using API payload
This guide walks you through the process of adding tests using the payload feature in KushoAI.
#
Prerequisites
- Valid test payload data
#
Step-by-Step Guide
#
1. Access the Add Tests Feature
Locate the "Add Tests" button in the top navigation bar.
Click on the "Add Tests" button to open the dropdown menu.
#
2. Select Payload Method
From the dropdown menu, click on "Using Payload".
This will open the "Add Tests using Payload" modal window.
#
3. Configure Test Details
In the modal window:
- Enter a descriptive test description in the "Test Description" field.
- Add your test payload, refer to the below sample as a reference:
{
"method": "post",
"url": "https://banking-api.free.beeceptor.com/creating",
"headers": {},
"path_params": {},
"query_params": {
"name": "KushoAI",
"bank id": "128434"
},
"json_body": {}
}
#
4. Save the Test
- Review your test configuration.
- Click the "Save" button at the bottom of the modal.
- Your test will be added to the test suite.
#
Additional Options
- Bulk Upload: Switch to the "Bulk upload" tab if you need to add multiple tests at once.
#
Tips
- Ensure all required fields are filled out before saving.
- Use meaningful test descriptions to identify tests later easily.
- Double-check the payload structure to avoid syntax errors.
#
Next Steps
After adding your test, you can:
- Run individual tests using the "RUN" button.
- Execute all tests using "RUN ALL".
- Generate test reports.