API Reference for Testing Tools for Visual Studio ALM


Use this API reference to help you extend existing features or add new capabilities. For example, you can create different kinds of tests. For sample code that shows how you might use these APIs, see this Microsoft Web site.


  • Visual Studio Enterprise


Tasks Associated Topics
Extend the unit test framework: You can add functionality to your tests that might not be in the Unit Test Framework. For example, you can add a test property that specifies if a test should run as a normal user or not. Or you can extend the framework to add row attributes to a method and use the data in that row inside the test. - Microsoft.VisualStudio.TestTools.Common
- Microsoft.VisualStudio.TestTools.Vsip
- Microsoft.VisualStudio.TestTools.UnitTesting

For sample code of how to extend the unit test framework, see the following Microsoft Web site.
Customize test storage processes: The Microsoft.VisualStudio.TestTools.Common.Xml namespace provides an interface that you can use for loading and storing tests. You can implement these as you create your own test types. - Microsoft.VisualStudio.TestTools.Common.Xml
Create a custom exception: You can create custom exception that can be thrown by the Unit Testing framework. - Microsoft.VisualStudio.TestTools.Exceptions
Create a Diagnostic Data Adapter: You can use the Microsoft.VisualStudio.TestTools.Execution to create a custom Diagnostic Data Adapter. - Microsoft.VisualStudio.TestTools.Execution
- Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine
- Sample Project for Creating a Diagnostic Data Adapter
Create load tests for unit and Web tests: The Microsoft.VisualStudio.TestTools.LoadTesting namespace provides classes and interfaces that enable you to extend load testing of unit and Web tests. - Microsoft.VisualStudio.TestTools.LoadTesting
Create a test type: Use the Microsoft.VisualStudio.TestTools.TestAdapter framework and the Microsoft.VisualStudio.TestTools.Vsip to create your own test type. - Microsoft.VisualStudio.TestTools.TestAdapter
- Microsoft.VisualStudio.TestTools.Vsip
- Customizing for Testing By Using the Visual Studio SDK
Creating coded UI tests to automate your user interface: The Microsoft.VisualStudio.TestTools.UITesting namespace supplies classes that provide coded UI test support. This namespace contains classes to perform keyboard and mouse interactions on user interface controls.

You can also derive from classes in the Microsoft.VisualStudio.TestTools.UITest.Extension namespace to extend the coded UI testing capability to record tests on currently unsupported interfaces, such as Microsoft Excel.
- Use UI Automation To Test Your Code
- Extending Coded UI Tests and Action Recordings to Support Microsoft Excel
- Microsoft.VisualStudio.TestTools.UITesting
- Microsoft.VisualStudio.TestTools.UITesting.HtmlControls
- Microsoft.VisualStudio.TestTools.UITesting.WinControls
- Microsoft.VisualStudio.TestTools.UITesting.WpfControls
- Microsoft.VisualStudio.TestTools.UITest.Common
- N:Microsoft.VisualStudio.TestTools.UITest.Common.UIMap
- Microsoft.VisualStudio.TestTools.UITest.Extension
Creating Unit Tests to Verify the Quality of Your Code: The Microsoft.VisualStudio.TestTools.UnitTesting namespace has classes that provide unit testing support. This namespace contains many attributes that identify test information to the testing framework regarding data sources, order of method execution, program management, agent/host information, and deployment data. This namespace also contains custom unit testing exceptions. - Microsoft.VisualStudio.TestTools.UnitTesting
- Unit Test Your Code
Create Unit Tests for ASP.NET and Web Services: The Microsoft.VisualStudio.TestTools.UnitTesting.Web namespace is an extension of the Microsoft.VisualStudio.TestTools.UnitTesting namespace that provides ASP.NET and Web service unit test capabilities. This namespace provides a set of attributes to unit tests that define credentials, URLs, and server specific information. - Microsoft.VisualStudio.TestTools.UnitTesting.Web
- Unit Test Your Code
Create Custom Web Tests: The classes in the Microsoft.VisualStudio.TestTools.WebTesting namespace enable Web testing. Additionally, it includes classes for data binding, test rules, identifying work items, query strings, HTTP context, and plug-ins that provide testing features. - Microsoft.VisualStudio.TestTools.WebTesting
Customize Web Tests Using Rules: The Microsoft.VisualStudio.TestTools.WebTesting.Rules namespace contains a set of rules used by Web tests to test Web pages. These rules provide a set of tools for Web tests to test the content of Web pages. Additionally, custom rules can be created to extend the functionality of Web tests. - Microsoft.VisualStudio.TestTools.WebTesting.Rules

See Also

Test apps early and often
Creating a Diagnostic Data Adapter to Collect Custom Data or Affect a Test Machine
Use UI Automation To Test Your Code
Extending Coded UI Tests and Action Recordings to Support Microsoft Excel
Unit Test Your Code