Create Testset
Create a new Testset for a Project. The Testset will be created in the Project specified in the path.
Authorizations
Body
Response
Testset created successfully
A collection of Testcases that share the same schema.
Each Testset defines the structure of its Testcases through a JSON schema.
The fieldMapping object maps top-level keys of the Testcase schema to their roles (input/expected output).
Fields not mentioned in the fieldMapping during creation or update are treated as metadata.
JSON Schema validation constraints supported:
- Required fields - Fields listed in the schema's
requiredarray must be present in Testcases. - Type validation - Values must match the specified type (string, number, boolean, null, integer, object, array).
- Enum validation - Values must be one of the options specified in the
enumarray. - Object property validation - Properties of objects must conform to their defined schemas.
- Array item validation - Items in arrays must conform to the
itemsschema. - Logical composition - Values must conform to at least one schema in the
anyOfarray.
Testcases that fail validation will still be stored, but will include validationErrors detailing the issues.
Extra fields in the Testcase data that are not in the schema will be stored but are ignored during validation.