New to Telerik Test Studio? Download free 30-day trial

Test Lists in Visual Studio 2017 and 2019

Visual Studio 2017 and 2019 allow the implementation and usage of the Test Studio test lists in the plugin. This article describes the specifics of how to create and maintain the test lists in the project in Visual Studio.

There test lists can be two types as well - Static and Dynamic.

Note! Test lists in Visual Studio can only execute web or WPF functional tests.

Create a Test List File in Visual Studio

A test list file has the extension *.aiilist and can be added in a Visual Studio project under a predefined folder named TestLists - this folder exists in each new project.

TestLists folder in Solution explorer

Right click on the TestLists folder and choose Test Studio Test List or Test Studio Dynamic Test List from the Add section sub-menu.

Add a test list file

Choose a meaningful name for the test list and ensure the correct item from the item list is selected. Confirm the test list creation with the Add button.

Name and create the test list file

The test list file will be listed under the TestLists folder.

Test list file listed under TestLists folder

Build the solution (press F6) and all test list files will appear in the Test Explorer available for execution.

Test list files listed in Test Explorer

Add a Test List in Newly Created Project

Ensure you are using Test Studio with minimum version 2019.3 and create a new Test Studio project in Visual Studio 2017 or 2019. In the Solution Explorer you can add test list files under the folder named TestLists.

Add a Test List in an Existing Project

Once you upgrade Test Studio to minimum version 2019.3 and open an existing project, you will be prompted with a message, that the project needs to be upgraded as well. Once the upgrade is done and the project is loaded, you will need to include the TestLists folder in the solution.

To do that select the Test Studio project in the Solution Explorer and click the Show All Files button.

Show All Files for the TS project

Now all files from the project root folder will be listed in the Solution Explorer. Right click the TestLists folder and select Include In Project.

Include TestLists folder in TS project

Again click the Show All Files button to hide the other files. Save and reopen the solution to apply the changes. Now the TestLists folder can be used to add test list files in it.

Add Test Files to Static Test List

Once a test list file is added into the TestLists folder, double click it to choose the test files to add in it.

Add test to static list

Save the test list file to apply the changes and execute the test list from the Test Explorer in Visual Studio.

Add Test Files to Dynamic Test List

Once a test list file is added into the TestLists folder, double click it to craft the rules to filter, upon specific criteria, the test files to add.

Add test to dynamic list

The rules can be built upon the specific test properties..

Available properties to create rules

Note! Each time you run a dynamic test list, the project is being queried and only the tests, which meet the criteria of the rules, are executed.

See also: You can find further interesting details in the following in-depth look at Dynamic Test Lists.

Test List Settings in Visual Studio

To change any of the Test List settings in Visual Studio, use the gear icon in the upper right corner in each test list.

Test List Settings

Execute Test List Files in Visual Studio

To execute the designed test lists in Visual Studio, you can use the different Run options in Visual Studio Test Explorer.

In this article
Not finding the help you need? Improve this article