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 requestBodyMediaType: String? = null, val expectedBody: Any? = null, val responseBodyMediaType: String? = 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, requestBodyMediaType: String? = null, expectedBody: Any? = null, responseBodyMediaType: String? = null, needToComplete: Boolean = false, expectedStatusCode: Int = 0, rule: String? = null)
Properties
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
Whether this generated case requires manual completion.
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
Request body media type selected from OpenAPI content, if applicable.
Link copied to clipboard
Response media type used to populate expectedBody, if applicable.
Link copied to clipboard
Security material derived from OpenAPI security requirements.