API Reference for Testing Tools for Visual Studio ALM
Collapse the table of content
Expand the table of content

API Reference for Testing Tools for Visual Studio ALM

You can customize some aspects of Visual Studio Ultimate  or Visual Studio Premium to extend existing features or to add new capabilities if you have special requirements. The API reference provides information about the classes to help you with your customization.

It also provides information about classes that you can use to create different types of tests.

For sample code of how you might use these APIs, see the following Microsoft Web site.


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.

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.

Create a custom exception: You can create custom exception that can be thrown by the Unit Testing framework.

Create a Diagnostic Data Adapter: You can use the Microsoft.VisualStudio.TestTools.Execution to create a custom 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.

Create a test type: Use the Microsoft.VisualStudio.TestTools.TestAdapter framework and the Microsoft.VisualStudio.TestTools.Vsip to create your own test type.

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.

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.

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.

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.

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.

Community Additions

© 2015 Microsoft