Setting Test Case state on change

Some teams use the State field of the Test Case work items to track whether the particular test has been approved to perform the related verification. In case of any changes to the Test Case the approval process might need to be performed again.

SpecSync can automatically change the State field upon any changes in the scenario. To enable this feature the synchronization/state/setValueOnChangeTo setting has to be configured with a state value. SpecSync will set the State filed of the Test Case to this configured value when the scenario has changed.

The following example shows how to set the state to Design when the scenario has changed.

{
  ...
  "synchronization": {
    ...
    "state": {
      "setValueOnChangeTo": "Design"
    },
    ...
  },
  ...
}

The possible allowed values might depend on the process template your project uses.

This feature can be limited to a set of scenarios, specified by a tag expression. For that the condition setting has to be specified.

{
  ...
  "synchronization": {
    ...
    "state": {
      "setValueOnChangeTo": "Design",
      "condition": "@ready"
    },
    ...
  },
  ...
}

Last updated