test-suite
2023.10
false
UiPath logo, featuring letters U and I in white
Test Suite User Guide
Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated Aug 13, 2024

Test sets

Test Sets are logical groups of test cases. The purpose of test sets is to define groups of tests that should be executed together within one run. For instance, a smoke test is a group of tests that only check for top-critical capabilities. Whenever any test case from a smoke test fails, there is a critical problem. Executing a smoke test should not take too long. They are executed for instance whenever a developer commits changes to the source code. By comparison, a regression test is a comprehensive test which should provide a detailed overview over the system under test. Execution often takes hours or even days. To define the set of tests to be executed for those purposes, test sets are created. A test case can be assigned to several test sets.

Conditions

  • Test sets in Test Manager can include both manual and automated test cases, including automated test cases from multiple Studio projects. For more information, see Automated executions conditions.
  • Test sets linked from Orchestrator to Test Manager include only the test cases from Orchestrator.

Creating test sets

To create a test set:

  1. In the Planning section, click Test Sets. The Test Sets page is displayed.
  2. Click Create Test Set. The Create Test Set window is displayed.


  3. Fill in the form as follows:
    • Name - Enter a name for the test set.
    • Description - (Optional) Enter a description for the test case. In order to add formatted text, you can use Markdown syntax.
    • Enable RPA activity coverage calculation - Select this to view the activity coverage of the test set under Test Results, after each automated execution.
    • Labels - Add any number of labels which makes it easy to find test set with joint labels.
  4. Click Create. The test set is created and displayed in the Test Sets page.

Assigning test cases to a test set

You can simultaneously assign test cases to a test set in two different ways:
  • Using Static Assignment - select the test cases manually.
  • Using Dynamic Assignment - input the label of the test cases that you want to assign.

Statically assigning test cases to test set

  1. Open the test set you want to assign test cases to by clicking it.
  2. In the Tasks menu, select Assign Test Cases.
    The Assign Test Cases window is displayed.
  3. Select the test cases you want to add. You can search for test cases by entering the name, the key, or a label.


  4. Select Assign. The test cases are assigned to the test set and are displayed on the Test Cases tab.
    Tip:

Dynamically assigning test cases to test set

You can choose to assign all test cases to a test set, based on their labels.
  1. Select the test set that you want to assign test cases to.
  2. In the Tasks menu, select Assign Test Cases.
    The Assign Test Cases window is displayed.
  3. Input the labels of the test cases that you want to assign.
    For the example in the below illustration, all test cases with the label ASP:9 will be assigned to the current test set.


  4. Select Assign. The test cases are assigned 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 assigned both statically and dynamically in separate sub-tabs.

Navigation and search

To quickly find your test sets, use the search function and the filters. Navigate within the page using and configuring the paginator. Alternatively, you can use the breadcrumb to navigate between the pages.
  1. Filter - You can use the filter to narrow your search. For example, you can search for the test sets that have been updated by your user, by specific labels, or the source (e.g., Orchestrator). The filters are automatically saved and kept active until you clear them.
  2. Search - Use the search bar to find test results by their key, name or labels (requires full search term match)
    You can use the search bar at the top of the page to look for test results.

Enabling activity coverage

Note: You can use this feature only if your Test Manager is connected to Orchestrator 2023.10 or higher.
To enable the activity coverage of an existent test set in Test Manager, perform the steps below:
  1. Open the test set for which you want to enable activity coverage.
  2. Go to the Configuration tab.
  3. Select Enable RPA activity coverage calculation.


What to do next: For this test set, you can now select Execute then Automated, and check under Test Results to see the activity coverage.
Note: For test sets linked from Orchestrator, you can enable or disable the activity coverage only in Orchestrator.

Cloning test sets

You can only clone one Test Set at a time.
  1. Select More Optionsdocs image for the Test Set that you want to duplicate, and select Clone.
  2. Rename the Test Set and choose the information you want to clone, such as:
    • Documents
    • Labels

      Test Cases assigned to the original Test Set (both statically and dynamically) are automatically linked to the clone. Custom field definitions, and custom field values are also cloned if they exist.

  3. Select Confirm to start the cloning process. The clone is created in the background.
A clone of the Test Set is created with a different ID.


Linking Orchestrator test sets

You can link your test sets from Orchestrator and execute them in Test Manager.

Prerequisites: Before you link a test set from Orchestrator to Test Manager, ensure you first link the test cases from this Orchestrator test set to Test Manager in Studio. For detailed steps on how to link test cases from Studio to Test Manager, visit Linking test cases in Studio to Test Manager.
  1. Open your project in Test Manager.
  2. Navigate to Test Sets > Link.
  3. Select a test set from the list and click Link. The Test Sets page now shows your linked test set.
    Important:
    • To link a test set to Test Manager, you need to create it in Orchestrator.
    • You can only link individual test sets that contain automated test cases. Note that each of these automated test cases must first be linked to Test Manager from Studio.
    • Test set linking is available for connected Orchestrator instances version 2020.10 or higher.
    • Test sets linked from Orchestrator are read-only. This means that you cannot edit the name, description, or version. Any changes need to be made in Orchestrator.
    • The displayed number of test cases might differ between Test Manager and Orchestrator. Test Manager only shows test cases that have been created on its platform.

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.