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.

ITestConfigurationHelper::CreateFromFile Method (String^)

 

Creates a new test configuration object by using the specified XML file.

Namespace:   Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

ITestConfigurationCollection^ CreateFromFile(
	String^ fileName
)

Parameters

fileName
Type: System::String^

The name and path of the file that contains the configuration.

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client::ITestConfigurationCollection^

The new test configuration object will be created on the server only when its ITestBase::Save method is called.

Exception Condition
TestManagementValidationException

The new test configuration object was invalid.

XmlSchemaValidationException

The XML file failed schema validation.

This method both validates the xml file against a schema and creates test configurations.

If the schema validation fails, the XmlSchemaValidationException will be thrown, and for other validation, TestManagementValidationException.

Return to top
Show: