#
Multiple Test Cases Editing
#
Methods to Access Batch Editor
#
Through Test Suite View
Navigate to your test suite.
Find your test in the list.
Click the "Details" button.
- The JSON editor will open.
Directly edit your test case.
Click on the save button in the bottom right corner.
- Click on "Edit all tests".
- Review your changes and click on update.
#
Working with Variables in Batch Updates
#
Using Variables
- Access variables through the "Variables" button.
- Variables are available across all selected tests.
- Use consistent variable naming across tests.
#
Managing Variables During Batch Edits
- Variables can be modified to affect multiple tests.
- New variables can be added during batch editing.
- Variable changes apply to all selected tests.
#
Batch Editing Steps
#
1. Understanding the Batch Interface
{
"method": "GET",
"url": "/endpoint",
"headers": {
"Authorization": "Bearer "
},
"query_params": {
"page_size": ""
}
}
#
2. Making Batch Changes
#
Enable Batch Mode
- Locate the "Update All Test Cases" toggle.
- Switch it on for batch updates.
- Confirm the toggle is enabled.
#
Edit Common Elements
HTTP Methods
- Update method consistently.
- Apply to matching test types.
- Verify method appropriateness.
URLs and Endpoints
- Use variables for common base URLs.
- Update endpoint patterns.
- Maintain URL structure.
Query Parameters
- Modify shared parameters.
- Use variables for common values.
- Ensure consistent formatting.
Request Bodies
- Update common structures.
- Apply template patterns.
- Use variables for shared data.
#
3. Review and Save Changes
#
Comparison View
- Review side-by-side differences
- Red: Removed content
- Green: Added content
- Navigate through pages.
- Verify changes across tests.
#
Applying Updates
- Click the "Update" button.
- Confirm batch application.
- Wait for the success notification.
- Verify changes in the test list.
#
Tips for Success
#
1. Before Batch Updates
- Review current configurations.
- Check available variables.
- Plan consistent changes.
- Document update strategy.
#
2. During Updates
- Monitor batch progress.
- Use variables effectively.
- Maintain JSON formatting.
- Test representative samples.
#
3. After Updates
- Run affected tests.
- Verify all changes.
- Document updates.
- Check for warnings.
#
Common Issues and Solutions
#
1. Syntax Consistency
- Check JSON formatting.
- Verify variable usage.
- Ensure consistent structure.
- Validate across tests.
#
2. Batch Update Failures
- Review error messages.
- Check individual tests.
- Verify variable validity.
- Ensure consistent formats.
#
3. Variable Resolution
- Verify variable availability.
- Check variable values.
- Confirm proper syntax.
- Test variable resolution.
#
Pro Tips
#
1. Efficient Batch Editing
- Use variables for common values.
- Group similar tests.
- Apply consistent patterns.
- Track batch changes.
#
2. Best Practices
- Maintain consistent formatting.
- Use clear variable names.
- Document major changes.
- Test systematically.
#
3. Troubleshooting
- Monitor batch operations.
- Check execution logs.
- Verify variable usage.
- Address failures promptly.
#
4. Quality Control
- Test sample sets.
- Verify critical functions.
- Monitor performance.
- Document all changes.
#
Using Update All Test Cases Feature
#
When to Use
- Similar test structures.
- Common variable updates.
- Consistent pattern changes.
- Template applications.
#
Best Practices
Preparation
- Review affected tests.
- Plan variable usage.
- Document changes.
- Backup configurations.
Execution
- Enable toggle.
- Apply changes systematically.
- Monitor progress.
- Verify updates.
Validation
- Test representative samples
- Check variable resolution
- Verify functionality
- Document results