Edit Test Suites
FreeTeamsScaleEnterpriseSelf-HostedDedicated
This guide will help you edit test suites in Keploy to customize your API testing workflow.
Editing Test Suite Details
To modify test suite settings like name and description:
- Navigate to your test suite in the Keploy dashboard
- Click on the three dots (⋯) helper menu in the test suite you want to modify
- Select "Edit Suite" from the dropdown menu
- Update the suite name, description, and other details as needed
- Save your changes
Editing Individual Test Steps
To modify specific test requests and responses:
- Go to the individual test step within your test suite
- Click on "Edit Step" to open the test editor
- You can now modify:
- Request details (URL, headers, body, parameters)
- HTTP method
- Request payload
Adding and Editing Assertions
Assertions help validate your API responses. To add or edit assertions:
- In the test step editor, navigate to the assertions section
- Add new assertions or modify existing ones
- You can validate:
- Response status codes
- Response body content
- Response headers
Custom Functions in Assertions
Keploy supports custom functions for advanced assertion logic. You can:
- Create custom validation functions
- Use JavaScript expressions for complex validations
- Reference external validation logic
For detailed information on custom functions, reference here.
Creating and Using Variables
Variables allow you to create reusable values across your test suite:
- URL Base Path Variables: Define base URLs that can be reused across multiple tests
- Environment Variables: Set different values for different testing environments
- Dynamic Variables: Create variables that change during test execution
How to Create Variables
For in detail usage of variables refer here : Using Variables
Best Practices
- Use descriptive names: Give your test suites and individual tests clear, descriptive names that explain their purpose
- Group related tests: Organize tests logically within suites (e.g., user authentication, payment processing, etc.)
- Keep suites focused: Each test suite should test a specific feature or workflow
- Test multiple aspects: Include assertions for status codes, response structure, and business logic