Skip to content

Support simple JSON-based tests for requests #13

@zhiguang-chen

Description

@zhiguang-chen

Add support for lightweight, declarative tests for each request. Each request can include a tests field with simple JSON assertions (status code, headers, body content, JSON path, etc.).

Expected Behavior:

  • Each request config can have a tests array.
  • Each test includes a name, type, operator (like equals, includes), and value.
  • The system executes these tests automatically after sending the request and reports pass/fail.

Example:

{
  "tests": [
    { "name": "Status is 200", "type": "status", "operator": "equals", "value": 200 },
    { "name": "Body contains username", "type": "bodyContains", "value": "username" }
  ]
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions