Partager via


ITestVariableHelper.CreateFromFile Method

Creates a set of test variable objects from an XML file.

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

Syntax

'Declaration
Function CreateFromFile ( _
    fileName As String _
) As IEnumerable(Of ITestVariable)
IEnumerable<ITestVariable> CreateFromFile(
    string fileName
)
IEnumerable<ITestVariable^>^ CreateFromFile(
    String^ fileName
)
abstract CreateFromFile : 
        fileName:string -> IEnumerable<ITestVariable> 
function CreateFromFile(
    fileName : String
) : IEnumerable<ITestVariable>

Parameters

  • fileName
    Type: String

    The path and file name for the XML file that contains a persisted test variable object.

Return Value

Type: IEnumerable<ITestVariable>
A test variable object.

Exceptions

Exception Condition
XmlSchemaValidationException

The provided XML file failed the schema validation.

TestManagementValidationException

The instantiated test variable object failed validation.

.NET Framework Security

See Also

Reference

ITestVariableHelper Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestVariable