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
- declarativeWebTest
Type: Microsoft.VisualStudio.TestTools.WebTesting.DeclarativeWebTest
A declarative Web performance test.
- fileName
Type: System.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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.