Skip to content

Commit 595aba5

Browse files
authored
Merge pull request #2149 from gewarren/extend-coded-ui
[Coded UI testing] Delete sample excel topics and redirect to extensibility topic
2 parents b5f09a6 + 408eeaa commit 595aba5

11 files changed

+50
-417
lines changed

.openpublishing.redirection.json

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,20 +2021,60 @@
20212021
"redirect_document_id": false
20222022
},
20232023
{
2024-
"source_path": "docs/test/test-windows-store-8-1-apps-with-coded-ui-tests.md",
2025-
"redirect_url": "/visualstudio/test/test-uwp-app-with-coded-ui-test",
2024+
"source_path": "docs/test/sample-coded-ui-test-extension-for-excel.md",
2025+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
20262026
"redirect_document_id": false
20272027
},
20282028
{
2029-
"source_path": "docs/test/test-windows-phone-8-1-apps-with-coded-ui-tests.md",
2030-
"redirect_url": "/visualstudio/test/test-uwp-app-with-coded-ui-test",
2029+
"source_path": "docs/test/sample-excel-add-in-for-coded-ui-testing.md",
2030+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2031+
"redirect_document_id": false
2032+
},
2033+
{
2034+
"source_path": "docs/test/sample-excel-communicator-interface.md",
2035+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2036+
"redirect_document_id": false
2037+
},
2038+
{
2039+
"source_path": "docs/test/sample-excel-extension-actionfilter-class.md",
2040+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2041+
"redirect_document_id": false
2042+
},
2043+
{
2044+
"source_path": "docs/test/sample-excel-extension-element-classes.md",
2045+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2046+
"redirect_document_id": false
2047+
},
2048+
{
2049+
"source_path": "docs/test/sample-excel-extension-extensionpackage-class.md",
2050+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2051+
"redirect_document_id": false
2052+
},
2053+
{
2054+
"source_path": "docs/test/sample-excel-extension-propertyprovider-class.md",
2055+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
2056+
"redirect_document_id": false
2057+
},
2058+
{
2059+
"source_path": "docs/test/sample-excel-extension-technologymanager-class.md",
2060+
"redirect_url": "/visualstudio/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel",
20312061
"redirect_document_id": false
20322062
},
20332063
{
20342064
"source_path": "docs/test/testing-store-apps-with-visual-studio.md",
20352065
"redirect_url": "/visualstudio/test/create-and-run-unit-tests-for-a-store-app-in-visual-studio/",
20362066
"redirect_document_id": false
20372067
},
2068+
{
2069+
"source_path": "docs/test/test-windows-phone-8-1-apps-with-coded-ui-tests.md",
2070+
"redirect_url": "/visualstudio/test/test-uwp-app-with-coded-ui-test",
2071+
"redirect_document_id": false
2072+
},
2073+
{
2074+
"source_path": "docs/test/test-windows-store-8-1-apps-with-coded-ui-tests.md",
2075+
"redirect_url": "/visualstudio/test/test-uwp-app-with-coded-ui-test",
2076+
"redirect_document_id": false
2077+
},
20382078
{
20392079
"source_path": "docs/test/troubleshooting-code-analysis-issues.md",
20402080
"redirect_url": "/visualstudio/code-quality/analyzing-application-quality-by-using-code-analysis-tools",

docs/test/extending-coded-ui-tests-and-action-recordings-to-support-microsoft-excel.md

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Extending Coded UI Tests and Action Recordings to Support Microsoft Excel"
2+
title: "Extend Coded UI Tests and Action Recordings"
33
ms.date: 11/04/2016
44
ms.prod: visual-studio-dev15
55
ms.technology: vs-ide-test
@@ -10,61 +10,18 @@ ms.workload:
1010
- "multiple"
1111
author: gewarren
1212
---
13-
# Extend Coded UI Tests and Action Recordings to Support Microsoft Excel
13+
# Extend Coded UI Tests and Action Recordings
1414

1515
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.
1616

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).
18-
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.
20-
2117
![UI Test Architecture](../test/media/ui_testarch.png)
2218

23-
## Download the sample
24-
25-
The sample consists of four projects in the `CodedUIExtensibilitySample.sln` solution:
26-
27-
- CodedUIextensibilitySample
28-
29-
- ExcelCodedUIAddInHelper
19+
## Sample extension to test Microsoft Excel
3020

31-
- ExcelUICommunicationHelper
32-
33-
- SampleTestProject
34-
35-
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/).
3622

3723
> [!NOTE]
38-
> 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.
39-
40-
## Details about the sample
41-
42-
The following sections provide information about the sample and its structure.
43-
44-
### Microsoft Excel Add-in: ExcelCodedUIAddinHelper
45-
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).
49-
50-
### Excel UI communication: ExcelUIcommunicationHelper
51-
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).
52-
53-
### Coded UI Test Extension: CodedUIExentsibilitySample
54-
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).
55-
56-
### Deploying Your Add-in and Extension
57-
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:
58-
59-
"`%CommonProgramFiles(x86)%\Microsoft Shared\VSTT\<version number>\UITestExtensionPackages\*.*`", where version number could be 11.0, 12.0 etc based on your Visual Studio version.
60-
61-
The `ExcelUICommunicationHelper` DLL and PDB files are copied to `"%ProgramFiles(x86)%\Microsoft Visual Studio <version number>\Common7\IDE\PrivateAssemblies"`.
62-
63-
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.
64-
65-
### Testing Excel with the SampleTestProject
66-
67-
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.
6825
6926
## See also
7027

docs/test/sample-coded-ui-test-extension-for-excel.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

docs/test/sample-excel-add-in-for-coded-ui-testing.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

docs/test/sample-excel-communicator-interface.md

Lines changed: 0 additions & 34 deletions
This file was deleted.

docs/test/sample-excel-extension-actionfilter-class.md

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)