TestCase

data class TestCase(val name: String, val method: String, val path: String, val queryParams: Map<String, Any> = emptyMap(), val pathParams: Map<String, Any> = emptyMap(), val headers: List<KeyValuePair<String, Any>> = emptyList(), val cookie: List<KeyValuePair<String, Any>> = emptyList(), val securityValues: SecurityValues = SecurityValues(), val body: Any? = null, val expectedBody: Any? = null, val needToComplete: Boolean = false, val expectedStatusCode: Int = 0, val rule: String? = null)

Test case model describing request details, expectations, and provenance.

Designed to preserve JSON shape and equality/hash semantics across generators.

Constructors

Link copied to clipboard
constructor(name: String, method: String, path: String, queryParams: Map<String, Any> = emptyMap(), pathParams: Map<String, Any> = emptyMap(), headers: List<KeyValuePair<String, Any>> = emptyList(), cookie: List<KeyValuePair<String, Any>> = emptyList(), securityValues: SecurityValues = SecurityValues(), body: Any? = null, expectedBody: Any? = null, needToComplete: Boolean = false, expectedStatusCode: Int = 0, rule: String? = null)

Properties

Link copied to clipboard
val body: Any?

Request body as any present object, or null if absent.

Link copied to clipboard

Cookies as ordered name-value pairs.

Link copied to clipboard

Expected response body example, when available from the OpenAPI spec.

Link copied to clipboard

Expected HTTP status code; 0 means unspecified.

Link copied to clipboard

HTTP headers as ordered name-value pairs; order is preserved.

Link copied to clipboard

HTTP method (usually uppercase, e.g., GET, POST).

Link copied to clipboard

Human-readable name of the test case.

Link copied to clipboard

Whether this generated case requires manual completion.

Link copied to clipboard

Endpoint relative path (e.g., "/pets/{id}").

Link copied to clipboard

Path parameters as a map from name to value.

Link copied to clipboard

Query parameters as a map from name to value.

Link copied to clipboard
val rule: String?

Fully qualified rule class name that generated this case, if any.

Link copied to clipboard

Security material derived from OpenAPI security requirements.