WebTestRequest.Outcome プロパティ

更新 : 2007 年 11 月

Web テスト要求の結果 (成功または失敗) を取得または設定します。

名前空間 :  Microsoft.VisualStudio.TestTools.WebTesting
アセンブリ :  Microsoft.VisualStudio.QualityTools.WebTestFramework (Microsoft.VisualStudio.QualityTools.WebTestFramework.dll 内)

構文

'宣言
Public Property Outcome As Outcome
'使用
Dim instance As WebTestRequest
Dim value As Outcome

value = instance.Outcome

instance.Outcome = value
public Outcome Outcome { get; set; }
public:
property Outcome Outcome {
    Outcome get ();
    void set (Outcome value);
}
public function get Outcome () : Outcome
public function set Outcome (value : Outcome)

プロパティ値

型 : Microsoft.VisualStudio.TestTools.WebTesting.Outcome

Web テスト要求の結果。

解説

WebTestRequest.Outcome を設定する主な理由は、予期される失敗を無視して、失敗にもかかわらず WebTestRequest を成功としてマークするためです。

Web テスト コードで WebTestRequest の Outcome を設定する場合は、PostRequest イベント ハンドラでこの設定を行います。これより早く設定を行うと、設定した値が Web テスト ランタイム エンジンによって上書きされる可能性があります。

アクセス許可

  • 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

WebTestRequest クラス

WebTestRequest メンバ

Microsoft.VisualStudio.TestTools.WebTesting 名前空間