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)
Copy file name to clipboardExpand all lines: docs/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ author: gewarren
12
12
---
13
13
# Extend Coded UI Tests and Action Recordings to Support Microsoft Excel
14
14
15
-
The testing framework for coded UI tests and action recordings does not support every possible user interface. It might not support the specific UI that you want to test. For example, you cannot immediately create a coded UI test or an action recording for a [!INCLUDE[ofprexcel](../test/includes/ofprexcel_md.md)] spreadsheet. However, you can create your own extension to the coded UI test framework that will support your specific UI by taking advantage of the extensibility of the coded UI test framework. The following topic gives an example of how to extend the framework to support the creation of coded UI tests and action recordings for [!INCLUDE[ofprexcel](../test/includes/ofprexcel_md.md)]. For more information about the platforms that are supported, see [Supported Configurations and Platforms for Coded UI Tests and Action Recordings](../test/supported-configurations-and-platforms-for-coded-ui-tests-and-action-recordings.md).
15
+
The testing framework for coded UI tests and action recordings does not support every possible user interface. It might not support the specific UI that you want to test. For example, you cannot immediately create a coded UI test or an action recording for a Microsoft Excel spreadsheet. However, you can create your own extension to the coded UI test framework that supports your specific UI by taking advantage of the extensibility of the coded UI test framework.
16
+
17
+
This article gives an example of how to extend the framework to support the creation of coded UI tests and action recordings for Microsoft Excel. For more information about the platforms that are supported, see [Supported Configurations and Platforms for Coded UI Tests and Action Recordings](../test/supported-configurations-and-platforms-for-coded-ui-tests-and-action-recordings.md).
16
18
17
19
This section presents a coded UI test extension that can record and play back tests of Excel Worksheets. Each part of the extension is explained in this section and in the code comments for developers who want to create just such an extension.
18
20
@@ -40,9 +42,10 @@ Get the sample from this [blog post](https://blogs.msdn.microsoft.com/gautamg/20
40
42
The following sections provide information about the sample and its structure.
41
43
42
44
### Microsoft Excel Add-in: ExcelCodedUIAddinHelper
43
-
This project includes an add-in that runs in the Excel process. See [Sample Excel Add-In for Coded UI Testing](../test/sample-excel-add-in-for-coded-ui-testing.md) for a brief overview of the add-in project.
44
45
45
-
For more information, see [Walkthrough: Creating Your First VSTO Add-in for Excel](http://msdn.microsoft.com/Library/a855e2be-3ecf-4112-a7f5-ec0f7fad3b5f).
46
+
This project includes an add-in that runs in the Excel process. See [Sample Excel Add-In for Coded UI Testing](../test/sample-excel-add-in-for-coded-ui-testing.md) for a brief overview of the add-in project.
47
+
48
+
For more information, see [Walkthrough: Creating Your First VSTO Add-in for Excel](http://msdn.microsoft.com/Library/a855e2be-3ecf-4112-a7f5-ec0f7fad3b5f).
This project includes the `IExcelUICommunication` interface and the information classes that are used to pass data between the Coded UI Testing Framework and Excel. For more information, see [Sample Excel Communicator Interface](../test/sample-excel-communicator-interface.md).
0 commit comments