Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

WebTestRequest.Outcome Property

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

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
public Outcome Outcome { get; set; }

Property Value

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

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 test code sets the Outcome of a WebTestRequest, it should do so in a PostRequest event handler, because if you set it earlier the Web test runtime engine might override the value that you set.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.