# 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
1. Locate the "Add Tests" button in the top navigation bar.
   
   ![](add-tests.png)

2. Click on the "Add Tests" button to open the dropdown menu.

### 2. Select Payload Method
1. From the dropdown menu, click on "Using Payload".

   ![alt text](add-tests-options.png)

2. This will open the "Add Tests using Payload" modal window.
   
   ![alt text](add-test-payload.png)

### 3. Configure Test Details
In the modal window:
1. Enter a descriptive test description in the "Test Description" field.
2. Add your test payload, refer to the below sample as a reference:
   
```json
{
  "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
1. Review your test configuration.
2. Click the "Save" button at the bottom of the modal.
3. 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.
