Partager via


Sample Excel Extension: ExtensionPackage Class

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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

Assembly Attribute

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

[assembly: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestExtensionPackage(
    "ExcelExtensionPackage",
    typeof(
     Microsoft.VisualStudio.Test.Sample.UI.ExtensionPackage))]

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.

Simple Properties

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.

GetService Method

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.

See Also

UITestExtensionPackage Extending Coded UI Tests and Action Recordings to Support Microsoft Excel