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)
Syntax
ITestConfigurationCollection CreateFromFile(
string fileName
)
ITestConfigurationCollection^ CreateFromFile(
String^ fileName
)
abstract CreateFromFile :
fileName:string -> ITestConfigurationCollection
Function CreateFromFile (
fileName As String
) As ITestConfigurationCollection
Parameters
fileName
Type: System.StringThe 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.
Exceptions
Exception | Condition |
---|---|
TestManagementValidationException | The new test configuration object was invalid. |
XmlSchemaValidationException | The XML file failed schema validation. |
Remarks
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.
See Also
ITestConfiguration
ITestBase.Save
ITestConfigurationHelper Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top