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/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel.md
+6-46Lines changed: 6 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Extending Coded UI Tests and Action Recordings to Support Microsoft Excel"
2
+
title: "Extend Coded UI Tests and Action Recordings"
3
3
ms.date: 11/04/2016
4
4
ms.prod: visual-studio-dev15
5
5
ms.technology: vs-ide-test
@@ -10,58 +10,18 @@ ms.workload:
10
10
- "multiple"
11
11
author: gewarren
12
12
---
13
-
# Extend Coded UI Tests and Action Recordings to Support Microsoft Excel
13
+
# Extend Coded UI Tests and Action Recordings
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).
16
-
17
-
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.
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.
18
16
19
17

20
18
21
-
## Download the sample
22
-
23
-
The sample consists of four projects in the `CodedUIExtensibilitySample.sln` solution:
24
-
25
-
- CodedUIextensibilitySample
26
-
27
-
- ExcelCodedUIAddInHelper
28
-
29
-
- ExcelUICommunicationHelper
19
+
## Sample extension to test Microsoft Excel
30
20
31
-
- SampleTestProject
32
-
33
-
Get the sample from this [blog post](https://blogs.msdn.microsoft.com/gautamg/2010/01/05/3-introducing-sample-excel-extension/).
21
+
This [blog post](https://blogs.msdn.microsoft.com/gautamg/2010/01/05/3-introducing-sample-excel-extension/) contains a link to a [sample extension](https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Components.PostAttachments/00/09/94/38/24/ExcelPluginSample.zip) for the coded UI test framework. You can also view the entire [blog post series for coded UI test extensibility](https://blogs.msdn.microsoft.com/gautamg/2010/01/05/series-on-coded-ui-test-extensibility/).
34
22
35
23
> [!NOTE]
36
-
> The sample is intended for use with Microsoft Excel 2010. The sample may work with other versions of Microsoft Excel, but it is not currently supported.
37
-
38
-
## Details about the sample
39
-
40
-
The following sections provide information about the sample and its structure.
41
-
42
-
### 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
-
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).
49
-
50
-
### Coded UI Test Extension: CodedUIExentsibilitySample
51
-
This project includes the custom classes that are used in tests of an Excel worksheet. The code for each of these classes is fairly self-explanatory. However, we provide a short description of each custom class. For more information, see [Sample Coded UI Test Extension for Excel](../test/sample-coded-ui-test-extension-for-excel.md).
52
-
53
-
### Deploying Your Add-in and Extension
54
-
After you have created all projects and objects, run the provided `CopyDrop.bat` file as an administrator. This file copies the `ExcelCodedUIAddinHelper` DLL and PDB files to:
55
-
56
-
"`%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\<version number>\UITestExtensionPackages\*.*`", where version number could be 11.0, 12.0 etc based on your Visual Studio version.
57
-
58
-
The `ExcelUICommunicationHelper` DLL and PDB files are copied to `"%ProgramFiles(x86)%\Microsoft Visual Studio <version number>\Common7\IDE\PrivateAssemblies"`.
59
-
60
-
You might have to adjust the exact copy paths, but no additional installation is required. On a 64-bit machine, use the 32-bit Visual Studio Enterprise command prompt to run the `CopyDrop.bat` file.
61
-
62
-
### Testing Excel with the SampleTestProject
63
-
64
-
You can run the test in the provided test project which uses a specific version of Excel that you may not have, or create your own test project and record a test of your own. For more information, see [Creating Coded UI Tests](../test/use-ui-automation-to-test-your-code.md).
24
+
> The sample is intended for use with Microsoft Excel 2010. It may or may not work with other versions of Excel.
0 commit comments