#
Single Test Case Editing
This guide provides detailed instructions for editing individual test cases in Kusho.
#
Methods to Access Test Editor
#
Through Test Suite View
- Navigate to your test suite
- Find your test in the list
- Click "Details" button
- The JSON editor will open
- Directly edit your test case
- Click on save btn on bottom right corner
- Click on Edit this test case.
#
Through Workbench
- Open the Workbench interface
- Search for your test using the search bar
- The JSON editor will be available in the Request section
- Click on Save Button
#
Working with Variables
#
Accessing Variables
- Click the "Variables" button in the toolbar
- A modal will open showing all available variables
- Each variable has:
- Variable name
- Variable value
- Delete button
#
Editing Steps
#
1. Understanding the Request Structure
{
"method": "GET", // HTTP method (GET, POST, PUT, etc.)
"url": "", // Target endpoint URL with variable
"headers": {
"Authorization": "Bearer " // Headers with variables
},
"path_params": {}, // URL path parameters
"query_params": { // Query string parameters
"page_size": ""
},
"json_body": {} // Request body for POST/PUT requests
}
#
2. Making Changes
Update HTTP Method
- Click on the method value
- Change to required method (GET, POST, etc.)
- Ensure proper capitalization
Modify URL
- Update the URL value in quotes
- Use variables with syntax
- Include protocol (https://)
Edit Query Parameters
- Locate the
query_params
object - Add or modify key-value pairs
- Use variables where applicable
- Use proper JSON formatting
- Locate the
Update Request Body
- Find the
json_body
section - Add required data in JSON format
- Include variables as needed
- Validate JSON structure
- Find the
#
3. Saving Changes
#
Individual Test Update
- Click the "Save" button
- When prompted, select "Edit this test"
- Wait for success confirmation
- Verify changes in the editor
#
Testing Changes
- Click the "Run" button next to the test
- Check execution status
- Verify the changes took effect
#
Tips for Success
#
1. Before Editing
- Review the current configuration
- Check available variables
- Understand the test purpose
- Note any dependencies
- Plan your changes
#
2. During Editing
- Keep JSON properly formatted
- Use variables for reusable values
- Save changes frequently
- Test after each significant change
- Watch for syntax errors
#
3. After Editing
- Run a final test
- Review the changes
- Document major updates
- Check for any warnings
#
Common Issues and Solutions
#
1. Syntax Errors
- Look for highlighted error indicators
- Check JSON formatting
- Verify proper quotation marks
- Ensure valid values
- Validate variable syntax
#
2. Save Failures
- Check for unsaved changes
- Verify JSON validity
- Review error messages
- Try incremental saves
#
3. URL Issues
- Verify protocol (http/https)
- Check URL formatting
- Validate parameters
- Ensure proper encoding
- Verify variable resolution
#
4. Variable Issues
- Check variable names
- Verify variable values
- Ensure proper syntax
- Validate variable availability
#
Pro Tips
Efficient Editing
- Make incremental changes
- Test frequently
- Keep track of changes
- Utilize the search function
- Use variables for common values
Best Practices
- Use consistent formatting
- Follow naming conventions
- Keep configurations clean
- Document significant changes
- Maintain organized variables
Troubleshooting
- Review error messages
- Check execution logs
- Test in isolation
- Compare with working versions
- Verify variable values