This documentation is archived and is not being maintained.

Sample Excel Extension: ExtensionPackage Class

This class extends the UITestExtensionPackage class and provides the entry point for a coded UI test that is testing an Microsoft Excel Worksheet.

The file begins with an assembly attribute that identifies the assembly as a UI Test Extension.

[assembly: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestExtensionPackage(

This attribute declares the base class name, the name of the package class, and the fully qualified class name for the custom extension package class.

This class has properties that provide values that are used by the coded UI testing framework to identify and describe the extension and the assembly. See the code comments for more information.

The GetService method is the single entry point used by the coded UI testing framework to gain access to the technology manager, the property provider, and the action filter, as identified by the base class for each object.