You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/test/creating-a-data-driven-coded-ui-test.md
+17-26Lines changed: 17 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,27 @@ ms.date: 11/04/2016
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-test
6
6
ms.topic: conceptual
7
-
helpviewer_keywords:
7
+
helpviewer_keywords:
8
8
- "coded UI tests, data-driven"
9
9
author: gewarren
10
10
ms.author: gewarren
11
11
manager: douge
12
-
ms.workload:
12
+
ms.workload:
13
13
- "multiple"
14
14
---
15
-
# Creating a Data-Driven Coded UI Test
15
+
# Create a Data-Driven Coded UI Test
16
16
17
17
To test different conditions, you can run your tests multiple times with different parameter values. Data-driven coded UI tests are a convenient way to do this. You define parameter values in a data source, and each row in the data source is an iteration of the coded UI test. The overall result of the test will be based on the outcome for all the iterations. For example, if one test iteration fails, the overall test result is failure.
18
18
19
-
**Requirements**
19
+
**Requirements**
20
20
21
-
-Visual Studio Enterprise
21
+
- Visual Studio Enterprise
22
22
23
23
## Create a data-driven coded UI test
24
-
This sample creates a coded UI test that runs on the Windows Calculator application. It adds two numbers together and uses an assertion to validate that the sum is correct. Next, the assertion and the parameter values for the two numbers are coded to become data-driven and stored in a comma-separated value (.csv) file.
25
24
26
-
#### Step 1 - Create a coded UI test
25
+
This sample creates a coded UI test that runs on the Windows Calculator application. It adds two numbers together and uses an assertion to validate that the sum is correct. Next, the assertion and the parameter values for the two numbers are coded to become data-driven and stored in a comma-separated value (.csv) file.
26
+
27
+
### Step 1 - Create a coded UI test
27
28
28
29
1. Create a project.
29
30
@@ -87,7 +88,7 @@ To test different conditions, you can run your tests multiple times with differe
@@ -202,9 +203,10 @@ To test different conditions, you can run your tests multiple times with differe
202
203
## Q & A
203
204
204
205
### <a name="CreateDataDrivenCUIT_QA_DataSourceAttributes"></a> What are the data source attributes for other data source types, such as SQL Express or XML?
Formoreinformation, see [UseData-drivencodedUItestsonWindowsPhoneapps](../test/test-windows-phone-8-1-apps-with-coded-ui-tests.md#TestingPhoneAppsCodedUI_DataDriven).
240
-
241
231
### Q: Why can't I modify the code in the UIMap.Designer file?
242
-
**A:**AnycodechangesyoumakeintheUIMapDesigner.csfilewillbeoverwritteneverytimeyougeneratecodeusingtheUIMap-CodedUITestBuilder. Inthissample, andinmostcases, thecodechangesneededtoenableatesttouseadatasourcecanbemadetothetest's source code file (that is, CodedUITest1.cs).
232
+
233
+
**A:**AnycodechangesyoumakeintheUIMapDesigner.csfilewillbeoverwritteneverytimeyougeneratecodeusingtheUIMap-CodedUITestBuilder. Inthissample, andinmostcases, thecodechangesneededtoenableatesttouseadatasourcecanbemadetothetest's source code file (that is, CodedUITest1.cs).
Copy file name to clipboardExpand all lines: docs/test/developer-testing-scenarios.md
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@ ms.date: 05/02/2017
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-test
6
6
ms.topic: conceptual
7
-
helpviewer_keywords:
7
+
helpviewer_keywords:
8
8
- "unit testing, create unit tests"
9
9
ms.author: gewarren
10
10
manager: douge
11
-
ms.workload:
11
+
ms.workload:
12
12
- "multiple"
13
13
author: gewarren
14
14
---
@@ -54,8 +54,7 @@ need.
54
54
55
55
*[Use UI Automation To Test Your Code](use-ui-automation-to-test-your-code.md)
56
56
*[Get started creating, editing and maintaining a coded UI test](walkthrough-creating-editing-and-maintaining-a-coded-ui-test.md)
57
-
*[Test UWP apps with Coded UI Tests](test-windows-store-8-1-apps-with-coded-ui-tests.md)
58
-
*[Test Windows Phone Apps with Coded UI Tests](test-windows-phone-8-1-apps-with-coded-ui-tests.md)
57
+
*[Test UWP apps with Coded UI Tests](test-uwp-app-with-coded-ui-test.md)
59
58
*[Test SharePoint Applications with Coded UI Tests](testing-sharepoint-2010-applications-with-coded-ui-tests.md)
60
59
*[Introduction to Coded UI Tests with Visual Studio Enterprise (Lab)](http://download.microsoft.com/download/6/2/B/62B60ECE-B9DC-4E8A-A97C-EA261BFB935E/Docs/Introduction%20to%20Coded%20UI%20Tests%20with%20Visual%20Studio%20Enterprise%202015.docx)
0 commit comments