WebTestRequest.Outcome Property

Gets or sets the Pass or Fail outcome of the Web performance test request.

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

Syntax

'Declaration
Public Property Outcome As Outcome
public Outcome Outcome { get; set; }
public:
property Outcome Outcome {
    Outcome get ();
    void set (Outcome value);
}
member Outcome : Outcome with get, set
function get Outcome () : Outcome
function set Outcome (value : Outcome)

Property Value

Type: Microsoft.VisualStudio.TestTools.WebTesting.Outcome
The outcome of the Web performance test request.

Remarks

The primary reason to set WebTestRequest.Outcome is to ignore an expected failure so that the WebTestRequest is marked as Passed despite the expected failure.

If your Web performance test code sets the Outcome of a WebTestRequest, it should do so in a PostRequest event handler. If you set it earlier, the Web performance test runtime engine might override the value that you set.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace