WebTestRequest.RecordResult Property

Gets or sets a value that indicates whether individual statistics and result data are tracked for this request.

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

Syntax

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

Property Value

Type: Boolean
true if statistics and result data are tracked; otherwise, false. The default value is true.

Remarks

If this is set to false, this request does not appear in the load test Monitor/Analyzer in the Performance Counter Tree or in the Requests or Pages tables. This setting is primarily useful for coded Web performance tests that dynamically generate Web performance test requests with different URLs on each Web performance test iteration. In this case, you do not want separate page and request performance counters for each request. Therefore, you can set the RecordResult property to false and define a transaction with a fixed name to track the performance of the related requests.

In other words, this might have to be turned off for Web performance tests that generate numerous unique requests. In that case, users can use transactions to group similar requests.

.NET Framework Security

See Also

Reference

WebTestRequest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace