Create Test Layer Schema
create_test_layer_schemaCreate a test layer schema to map a custom field key to a specific test layer, enabling automatic assignment of test cases based on custom field values.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"key": "<key>",
"test_layer_id": "<test_layer_id>",
"project_id": "<project_id>"
},
"name": "create_test_layer_schema"
}
}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 |