TestContext Properties

Include Protected Members
Include Inherited Members

The TestContext type exposes the following members.

Properties

 

Name

Description

Public property

CurrentTestOutcome

You can use this property in a TestCleanup method to determine the outcome of a test that has run.

Public property

DataConnection

When overridden in a derived class, gets the current data connection when the test is used for data driven testing.

Public property

DataRow

When overridden in a derived class, gets the current data row when test is used for data driven testing.

Public property

Properties

When overridden in a derived class, gets the test properties.

Public property

RequestedPage

Gets the requested page.

Public property

TestDeploymentDir

Gets the path to the test deployment directory.

Public property

TestDir

Gets the path to the test directory.

Public property

TestLogsDir

Gets the path to the test log directory.

Public property

TestName

Gets the test name.

Top

See Also

Reference

TestContext Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace