Customization: Setting Test Case fields with default values
The Field defaults customization can be used to initialize arbitrary Test Case fields that are otherwise would not be updated by SpecSync to a default value. This might be useful for custom Azure DevOps process templates.
In order to enable this customization, the customizations/fieldDefaults section of the configuration has to be enabled. The complete reference of the configuration settings can be found in the customizations configuration reference.
The following example shows a basic configuration that initializes the field MyCompany.MyCustomField to value1.
{
...
"customizations": {
"fieldDefaults": {
"enabled": true,
"defaultValues": {
"MyCompany.MyCustomField": "value1"
}
}
}
...
}The fields have to be identified using their reference name and not their label. E.g. the reference name for the Description field is System.Description. The reference names of the built-in fields can be found in the Azure DevOps documentation.
This customization uses the specified values only to _initialize _the field when the Test Case is created. To update custom fields, use the Custom field updates customization.
Last updated
Was this helpful?