Share via


ITestFailureTypeHelper.ImportFromFile Method (String)

 

Imports test failure types from an XML file.

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

Syntax

IEnumerable<ITestFailureType> ImportFromFile(
    string fileName
)
IEnumerable<ITestFailureType^>^ ImportFromFile(
    String^ fileName
)
abstract ImportFromFile : 
        fileName:string -> IEnumerable<ITestFailureType>
Function ImportFromFile (
    fileName As String
) As IEnumerable(Of ITestFailureType)

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<ITestFailureType>

Remarks

This method does both validation the xml file against a schema and creation of test failure types in TCM Server. If the schema validation fails, the XmlSchemaValidationException will be thrown, and for other validation, TestManagementValidationException.

See Also

ITestFailureTypeHelper Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace

Return to top