ITestSettingsHelper.CreateFromFile Method (String)
Creates a test settings object from an XML file.
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
IEnumerable<ITestSettings> CreateFromFile(
string fileName
)
IEnumerable<ITestSettings^>^ CreateFromFile(
String^ fileName
)
abstract CreateFromFile :
fileName:string -> IEnumerable<ITestSettings>
Function CreateFromFile (
fileName As String
) As IEnumerable(Of ITestSettings)
Parameters
fileName
Type: System.StringThe path and file name of the XML file that contains a persisted test settings object.
Return Value
Type: System.Collections.Generic.IEnumerable<ITestSettings>
A test settings object.
Exceptions
Exception | Condition |
---|---|
XmlSchemaValidationException | The provided XML file failed the schema validation. |
TestManagementValidationException | The instantiated test settings object failed validation. |
See Also
ITestSettings
ITestSettingsHelper Interface
Microsoft.TeamFoundation.TestManagement.Client Namespace
Return to top