WebTest.IncludeWebTest 方法 (String, Boolean)

從 Web 效能測試程式碼呼叫另一個 Web 效能測試程式碼。

命名空間:  Microsoft.VisualStudio.TestTools.WebTesting
組件:  Microsoft.VisualStudio.QualityTools.WebTestFramework (在 Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 中)

語法

'宣告
Public Function IncludeWebTest ( _
    webTestName As String, _
    inheritWebTestSettings As Boolean _
) As WebTest
public WebTest IncludeWebTest(
    string webTestName,
    bool inheritWebTestSettings
)
public:
WebTest^ IncludeWebTest(
    String^ webTestName, 
    bool inheritWebTestSettings
)
member IncludeWebTest : 
        webTestName:string * 
        inheritWebTestSettings:bool -> WebTest 
public function IncludeWebTest(
    webTestName : String, 
    inheritWebTestSettings : boolean
) : WebTest

參數

  • webTestName
    型別:System.String
    要包含之宣告式 Web 效能測試的名稱。
  • inheritWebTestSettings
    型別:System.Boolean
    如果為 true,則包含的 Web 效能測試會繼承父 Web 效能測試的屬性值。

傳回值

型別:Microsoft.VisualStudio.TestTools.WebTesting.WebTest

.NET Framework 安全性

請參閱

參考

WebTest 類別

IncludeWebTest 多載

Microsoft.VisualStudio.TestTools.WebTesting 命名空間