Mark Test Cases as Automated
By default the push command creates the Test Cases as Not Automated. To be able to synchronize automated Test Cases (for all or for selected scenarios), you can configure SpecSync for this.
Marking the Test Cases as automated can be used to document the kind of the test. For using certain features of Azure DevOps (e.g. Test Suite based execution), marking the Test Cases as Automated is mandatory.
You can enable marking Test Cases as automated by setting the synchronization/automation/enabled configuration setting to true.
Optionally you can also specify the value to be used for the "Automated test type" and the "Automated test storage" fields of the Test Case using the synchronization/automation/automatedTestType and synchronization/automation/automatedTestStorage settings. (By default the "Automated test type" field is set to Reqnroll for Reqnroll projects and Gherkin for other projects, and the "Automated test storage" field is set to the test assembly file name for Reqnroll projects and to the feature file name for other projects.)
{
...
"synchronization": {
...
"automation": {
"enabled": true
},
...
},
...
}Marking only certain Test Cases as automated
In some projects the feature files contain non-automated scenarios as well. These scenarios are usually marked with specific tags, like @manual or @ignore or the automated ones are marked with a specific tag, like @automated.
In order to mark only the Test Cases for selected scenarios as automated, you can set a local test case condition in the synchronization/automation/condition configuration setting as shown below.
Update the Test Case automation fields to custom values
The methods described above would update the Test Case automation fields to generally usable values. If your project configuration requires specific custom values to be set for these fields, you can update the fields individually using the synchronization/fieldUpdates configuration section that allows you to set values conditionally or decide if you want to set the values only when the Test Case is created (set "default" values) or on each update.
A detailed description of the steps required to configure these for the automation fields can be found in the Update automation fields section of the "Update Test Case fields" feature description.
Last updated