Skip to content

Commit 8b1218e

Browse files
authored
Merge pull request #3970 from TimShererWithAquent/us1876202a
Test different configurations [UPDATE]
2 parents 91c53dc + 142ef5e commit 8b1218e

15 files changed

+106
-2
lines changed
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading

docs/test/test-different-configurations.md

+106-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Test different configurations
3-
description: Manual and exploratory testing - test different configurations with Azure DevOps and Team Foundation Server (TFS)
3+
description: Learn about manual and exploratory testing. You can test different configurations with Azure Test Plans and Team Foundation Server.
44
ms.assetid: 750F033E-A39E-4C85-BF85-012629C33DE6
55
ms.technology: devops-test
66
ms.topic: conceptual
@@ -42,6 +42,45 @@ Then you can:
4242
<a name="create-configs"></a>
4343

4444
## Create configurations and variables
45+
::: moniker range=">=azure-devops-2020"
46+
47+
A test configuration is a combination of configuration variable values.
48+
Your configuration variables could be, for example, operating system, browser, CPU type, database.
49+
A configuration might be "Windows 8 + 32-bit CPU" or "Windows 10 + 64-bit CPU."
50+
51+
Create the configuration variables first.
52+
Then combine multiple variable values to create a configuration.
53+
54+
1. Open the **Configurations** page in the **Test Plans** web portal, select the **+** icon, and select **New configuration variable**.
55+
56+
![Screenshot shows the New configuration variable option in New menu.](media/testing-configurations/new-configuration-variable.png)
57+
58+
1. Type a name for the variable, such as **Browser**, and a description.
59+
Select **Add new value**, and then add a value.
60+
Add as many values as you wish to the configuration variable, and then save it.
61+
62+
![Screenshot shows adding values to a new configuration variable.](media/testing-configurations/add-values-configuration-variable.png)
63+
64+
1. Repeat the steps to create any other configuration variables you need.
65+
For example, create a configuration variable named **Operating system** with the names of each operating system on which you want to test.
66+
67+
![Screenshot shows setting the values for an Operating Systems configuration variable.](media/testing-configurations/operating-system-configuration.png)
68+
69+
1. Select the **+** icon and select **New test configuration**.
70+
71+
![Screenshot shows the New test configuration option in the New menu.](media/testing-configurations/new-test-configuration.png)
72+
73+
1. Type a name for the test configuration and add the configuration variables you created.
74+
Choose a value for each variable for this configuration.
75+
76+
![Screenshot shows adding variables to the new test configuration.](media/testing-configurations/add-variables-testing-configuration.png)
77+
78+
Be sure that **Assign to new test plans** is checked to make this configuration the default for all the new test plans you create.
79+
80+
1. Save your new test configuration.
81+
::: moniker-end
82+
83+
::: moniker range="<=azure-devops-2019"
4584

4685
A test configuration is a combination of configuration variable
4786
values. Your configuration variables could be, for example,
@@ -82,9 +121,35 @@ multiple variable values to create a configuration.
82121
configuration for all the new test plans you create.
83122

84123
6. Save your new test configuration.
124+
::: moniker-end
85125

86126
<a name="assign-configs"></a>
127+
87128
## Assign configurations to test plans and suites
129+
::: moniker range=">=azure-devops-2020"
130+
131+
You can assign configurations to a test suite or an individual test case.
132+
Configurations assigned to a test suite apply to all tests or suites within it.
133+
134+
1. To assign a configuration to a test suite, in the **Test plans** page, select a plan.
135+
In the **Test Suites** area, select a test suite and select **More options** or right-click to open the context menu and then select **Assign configuration**.
136+
137+
![Screenshot shows Assign configuration menu option.](media/testing-configurations/assign-configuration-menu-option.png)
138+
139+
If you add multiple configurations to a test suite, the tests cases are repeated with each of the configurations you have assigned.
140+
141+
![Screenshot shows multiple configuration assignment to a test suite.](media/testing-configurations/multiple-configuration-test-suite.png)
142+
143+
1. If necessary, override the default configuration assigned to a test case and assign the configuration you need.
144+
Select one or more test cases, open the context menu, and select **Assign configuration**.
145+
146+
![Screenshot shows assigning a configuration assigned to a test case.](media/testing-configurations/assign-configuration-test-cases.png)
147+
148+
1. Search for and select the configurations to assign to the test cases.
149+
150+
![Screenshot shows setting configurations for a test case.](media/testing-configurations/select-configuration-test-case.png)
151+
::: moniker-end
152+
::: moniker range="<=azure-devops-2019"
88153

89154
You can assign configurations to a test plan, a test suite,
90155
or an individual test case. Configurations assigned to a test plan
@@ -101,7 +166,7 @@ or test suite apply to all tests or suites within it.
101166
![Assigning a configuration to a test suite](media/testing-configurations/testing-configurations-04.png)
102167

103168
If you add multiple configurations to a test plan or suite,
104-
the tests cases are repeated in the plan or suite with the
169+
the tests cases are repeated in the plan or suite with
105170
each of the configurations you have assigned.
106171

107172
![Multiple configuration assignment to a test suite](media/testing-configurations/testing-configurations-05.png)
@@ -115,9 +180,25 @@ or test suite apply to all tests or suites within it.
115180
1. Search for and select the configurations to assign to these test case(s).
116181

117182
![Setting the required configurations for a test case](media/testing-configurations/testing-configurations-07.png)
183+
::: moniker-end
118184

119185
<a name="run-configs"></a>
186+
120187
## Run tests with each configuration
188+
::: moniker range=">=azure-devops-2020"
189+
190+
Set up a testing platform for a particular configuration, such as testing the app using Google Chrome on Windows 10.
191+
192+
1. Select and run a test that has this configuration assigned.
193+
194+
![Screenshot shows a test with a specific configuration and the Run for web application option selected.](media/testing-configurations/run-test-configuration.png)
195+
196+
As you run the test, a reminder of the configuration appears in the status bar.
197+
198+
![Screenshot shows the configuration for this test in the status bar.](media/testing-configurations/configuration-status-bar.png)
199+
::: moniker-end
200+
201+
::: moniker range="<=azure-devops-2019"
121202

122203
1. Set up a testing platform for a particular configuration, such
123204
as testing the app using Google Chrome on Windows 10.
@@ -130,9 +211,31 @@ or test suite apply to all tests or suites within it.
130211
in shown in the status bar of the Test Runner window.
131212

132213
![The required configuration appears in the Test Runner window](media/testing-configurations/testing-configurations-08.png)
214+
::: moniker-end
133215

134216
<a name="track-configs"></a>
217+
135218
## Track test results for each configuration
219+
::: moniker range=">=azure-devops-2020"
220+
221+
1. Open the **Charts** page for your test suite, select **New**, and select **New test result chart**.
222+
223+
![Screenshot shows the New test result chart menu option.](media/testing-configurations/new-test-case-chart-option.png)
224+
225+
1. Choose a type of chart, like a pie chart or bar chart, and then select **Group by** > **Configuration** and choose **OK**.
226+
227+
![Screenshot shows choosing a configuration option for group by in the configure chart dialog box.](media/testing-configurations/select-configuration-chart.png)
228+
229+
A chart is created that can help you track your tests based on configurations.
230+
You can pin this chart to your dashboard.
231+
232+
![Screenshot shows a bar chart with values for Not run, Passed, and Failed.](media/testing-configurations/configuration-result-chart.png)
233+
234+
If you have a test case that appears in several test suites, you can set the different configurations for each suite.
235+
The same test case can have different configuration settings in different test suites and test plans.
236+
::: moniker-end
237+
238+
::: moniker range="<=azure-devops-2019"
136239

137240
1. Open the **Charts** page for your test plan or test suite, choose
138241
**New**, and select **New test result chart**.
@@ -151,6 +254,7 @@ or test suite apply to all tests or suites within it.
151254

152255
> If you have a test case that appears in several test plans and test suites, you can set the different configurations for each of these.
153256
The same test case can have different configuration settings in different test suites and test plans.
257+
::: moniker-end
154258

155259
## Related articles
156260

0 commit comments

Comments
 (0)