Partager via


DeclarativeWebTestSerializer.Save Method (DeclarativeWebTest, String)

Saves 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 Sub Save ( _
    declarativeWebTest As DeclarativeWebTest, _
    fileName As String _
)
public static void Save(
    DeclarativeWebTest declarativeWebTest,
    string fileName
)
public:
static void Save(
    DeclarativeWebTest^ declarativeWebTest, 
    String^ fileName
)
static member Save : 
        declarativeWebTest:DeclarativeWebTest * 
        fileName:string -> unit
public static function Save(
    declarativeWebTest : DeclarativeWebTest, 
    fileName : String
)

Parameters

  • fileName
    Type: String

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

Examples

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

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

        //Save the Web performance test
        DeclarativeWebTestSerializer.Save(decWebTest, @"c:\test.webtest");

.NET Framework Security

See Also

Reference

DeclarativeWebTestSerializer Class

Save Overload

Microsoft.VisualStudio.TestTools.WebTesting Namespace