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
'Usage
Dim instance As WebTestRequest 
Dim value As Boolean 

value = instance.RecordResult

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

Property Value

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

Remarks

If this is set to false, then 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 tests that dynamically generate Web test requests with different URLs on each Web 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 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

WebTestRequest Members

Microsoft.VisualStudio.TestTools.WebTesting Namespace