Skip to content

No-Code Testing with KeyRunner: Simplifying Response Validation

Introduction

KeyRunner streamlines the testing process by providing a no-code testing feature. Users can perform validations on API responses without writing code, utilizing the Test tabs available when sending a request.

Test Tabs Functionality

Upon sending an API request, users can access the Test tabs, offering various response data selections and assertion options:

  • Response Code: Validate the status code of the response.
  • Response Body: Check the content of the response body.
  • Response Headers: Assert specific headers present in the response.

Assertion Options

Within each test tab, users have the flexibility to choose from multiple assertion options:

  • Contains: Check if the response contains specific data.
  • Exists: Verify the existence of particular elements in the response.
  • Equals: Match the response data precisely.

Examples

Response Code Validation

To assert a specific response code:

  • Test Tab: Response Code
  • Assertion: Equals
  • Value: 200

Response Body Validation

For verifying content within the response body:

  • Test Tab: Response Body
  • Assertion: Contains
  • Value: "success": true

Response Header Assertion

To validate specific headers in the response:

  • Test Tab: Response Headers
  • Assertion: Exists
  • Value: Content-Type

Benefits of No-Code Testing

  • Efficiency: Enables quick and effortless response validation without writing code.
  • User-Friendly: Intuitive interface with selectable options for easy assertion.
  • Enhanced Testing: Facilitates thorough testing by validating various aspects of API responses.

Conclusion

KeyRunner's no-code testing feature empowers users to efficiently validate API responses using selectable options and assertion types within the Test tabs, making response validation seamless and code-free.

Released under the MIT License.