Share via


DeclarativeWebTestSerializer.Open Method (String)

Opens a Web performance test file.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Shared Function Open ( _
    fileName As String _
) As DeclarativeWebTest
public static DeclarativeWebTest Open(
    string fileName
)
public:
static DeclarativeWebTest^ Open(
    String^ fileName
)
static member Open : 
        fileName:string -> DeclarativeWebTest
public static function Open(
    fileName : String
) : DeclarativeWebTest

Parameters

  • fileName
    Type: String

    The path to and name of a Web performance test file.

Return Value

Type: Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest
A declarative Web performance test.

Examples

This example shows how to open a declarative Web performance test by opening the .webtest file that contains it.

This code example is part of a larger example that is provided for the DeclarativeWebTestSerializer class.

        //Open the Web performance test
        DeclarativeWebTest decWebTest = DeclarativeWebTestSerializer.Open(@"c:\test.webtest");

.NET Framework Security

See Also

Reference

DeclarativeWebTestSerializer Class

Open Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace