Adding or Removing Members of a Set Attribute

You can assign multiple values to test attributes of the type Set.

For example, you might have a Set attribute called RunWhen with the following three values:
  • UI
  • regression
  • smoke
You can assign any combination of these three values to a test or a group of tests. Separate each value with a semicolon.

You can use the + operator to add members to a Set attribute and the operator to remove members from a Set attribute.

Example 1: Using + to add values

RunWhen: UI; regression Test 1 testcase: t1 RunWhen: + smoke Test 2 testcase: t2

In this example, Test 1 has the values UI and regression.

The statement RunWhen: + smoke adds the value smoke to the previously assigned values, so Test 2 has the values UI, regression, and smoke.

Example 2: Using - to remove values

RunWhen: UI; regression Test 1 testcase: t1 RunWhen: - regression Test 2 testcase: t2

In this example, Test 1 has the values UI and regression.

The statement RunWhen: - regression removes the value regression from the previously assigned values, so Test 2 has the value UI.