Test Suites
Test suites allow you to execute multiple test scenarios in one test run. This is useful for larger test runs in integration or regression tests. Test suites are intended to just loosely bundle test scenarios. The test scenarios contained in a test suite should not have any dependencies to each other. This condition is met if the test scenarios in a test suite could be run in any order and always lead to the same results.
Creating A Test Suite
In order to create a new test suite, select the project in which you want to create the suite, right-click to open the context menu and select New > Unit Test Suite. The New Test Suite wizard opens. On the first page, enter the following data (obligatory fields listed in bold):
Field | Description |
---|---|
Name | File name for the test suite |
Alias Name | More descriptive name |
Description | Detailed description |
If you have not selected a project before invoking the wizard, you have to select one now from the Project list below.
Click Next> to open the Available Test Scenarios dialog. To add test scenario(s) to this test suite, select one ore more test scenarios from the Available list on the left and click on the arrow in the middle to copy them to the Selected list on the right. If you had selected one or more test scenarios before invoking the wizard, they will already have been added to the test suite.
Click Finish, then the newly created test suite will open in the editor.
Or optionally, click Next > instead to proceed to the final page where you can select another destination folder for the test suite.
Editing Test Suites
You can edit a test suite by opening it in the editor. You can now add or remove test scenarios just like when you created it.
Running Test Suites
In order to run a test suite, right-click the test suite in the Project Explorer view, then select Run Unit Test Suite from the context menu. If you want to run the test suite that is just opened in the editor, simply click on the
Run this Test Suite icon in the upper right area of the editor.
Besides from executing multiple test scenarios in one test run, running a test suite does not differ from running a single test scenario with one exception: it is possible to select multiple test suites in the Project Explorer and start the test run for all of them with one click. If you start multiple test suites, they are always run in background. You are informed about their progress and completion in the Progress view.