#
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 the below sample as reference:
{
"method": "GET",
"url": "https://www.alphavantage.co/query",
"headers": {},
"path_params": {},
"query_params": {
"apikey": "YOUR_API_KEY",
"symbol": "IBM",
"datatype": "json",
"function": "TIME_SERIES_INTRADAY",
"interval": "5min"
},
"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 easily identify tests later
- 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