MSDN Library
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TestContext Properties

 

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

NameDescription
System_CAPS_pubpropertyCurrentTestOutcome

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

System_CAPS_pubpropertyDataConnection

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

System_CAPS_pubpropertyDataRow

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

System_CAPS_pubpropertyDeploymentDirectory

Gets the directory for files deployed for the test run. This property typically contains a subdirectory of TestRunDirectory.

System_CAPS_pubpropertyFullyQualifiedTestClassName

Gets the fully-qualified name of the class that contains the test method that is currently running.

System_CAPS_pubpropertyProperties

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

System_CAPS_pubpropertyRequestedPage

Gets the requested page.

System_CAPS_pubpropertyResultsDirectory

Gets the top-level directory that contains test results and test result directories for the test run. This is typically a subdirectory of TestRunDirectory.

System_CAPS_pubpropertyTestDeploymentDir

Gets the path to the test deployment directory. Deprecated. Use DeploymentDirectory instead.

System_CAPS_pubpropertyTestDir

Gets the path to the test directory. Deprecated. Use TestRunDirectory instead.

System_CAPS_pubpropertyTestLogsDir

Gets the path to the test log directory. Deprecated. Use TestRunResultsDirectory instead.

System_CAPS_pubpropertyTestName

Gets the test name.

System_CAPS_pubpropertyTestResultsDirectory

Gets the directory for the test result files.

System_CAPS_pubpropertyTestRunDirectory

Gets the top-level directory for the test run that contains deployed files and result files.

System_CAPS_pubpropertyTestRunResultsDirectory

Gets the top-level directory for the test run result files. This property typically contains a subdirectory of ResultsDirectory.

Return to top
Show:
© 2016 Microsoft