Create Test Layer Schema
create_test_layer_schemaCreate a test layer schema in Allure TestOps by mapping a custom field key to a test layer, so test cases with matching custom field values are automatically assigned to the correct layer.
Instructions
Create a new test layer schema to map a custom field key to a test layer.
Test layer schemas define the mapping between custom field keys and test layers. This allows test cases with specific custom field values to be automatically assigned to the correct test layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The schema key (e.g., custom field name like 'layer' or 'test_layer'). | |
| project_id | Yes | Allure TestOps project ID to create the schema in. | |
| output_format | No | Output format: 'json' (default) or 'plain'. | |
| test_layer_id | Yes | ID of the test layer to link to this schema. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| key | No | ||
| test_layer_id | No | ||
| test_layer_name | No |