The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
WebTestRequest::ExpectedHttpStatusCode Property
Gets or sets the HTTP status code that is expected for this request.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
public: [DefaultValueAttribute(0)] property int ExpectedHttpStatusCode { int get(); void set(int value); }
You can use this property in code to prevent a request failure when you expect a failure status for a request, such as a "404 Not Found" status.
Show: