# Dynamically adding test cases to test set

> Add test cases to a test set automatically based on matching labels using dynamic assignment.

You can choose to add all test cases to a test set, based on their labels.

## Steps

1. Select the test set that you want to add test cases to.
2. In the **Tasks** menu, select **Add Test Cases**.

   The **Add Test Cases** window is displayed.
3. Select **Dynamic Assignment**.
4. Enter the labels of the test cases that you want to add.

   For the example in the following illustration, all test cases with the label `ASP:9` are added to the current test set.

   Figure 1. Dynamically adding test cases

   ![Dynamically adding test cases](https://dev-assets.cms.uipath.com/assets/images/test-manager/test-manager-dynamically-adding-test-cases-589606-377befd1-e2007f8d.webp)
5. Select **Assign**.

## Result

The test cases are added to the test set and are displayed on the **Test Cases** tab. On the **Test Cases** tab you can see and edit test cases that are added both statically and dynamically in separate sub-tabs.
