Mark Test Cases as Automated
Last updated
Was this helpful?
Last updated
Was this helpful?
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. ), marking the Test Cases as Automated is mandatory.
You can enable marking Test Cases as automated by setting the to true
.
Optionally you can also specify the value to be used for the "Automated test type" field of the Test Case using the synchronization/automation/automatedTestType
setting. (By default the field is set to SpecFlow
for SpecFlow projects and Gherkin
for other projects.)
In SpecSync v3.0 or earlier, the synchronization/automation/testExecutionStrategy
had to be also specified when automation was enabled. From v3.1 this is not necessary and recommended to leave it unset, unless you want to use the legacy method.
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
.
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.
In order to mark only the Test Cases for selected scenarios as automated, you can set a in the synchronization/automation/condition
configuration setting as shown below.
A detailed description of the steps required to configure these for the automation fields can be found in the of the "Update Test Case fields" feature description.