Create Test Layer Schema
create_test_layer_schemaCreate a test layer schema to link a custom field key to a specific test layer, automating test case assignment in Allure TestOps.
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. |