WebTestRequestStatistics Class

Used to track key information that is gathered when the request is run.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestStatistics

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class WebTestRequestStatistics
[SerializableAttribute]
public class WebTestRequestStatistics
[SerializableAttribute]
public ref class WebTestRequestStatistics
[<SerializableAttribute>]
type WebTestRequestStatistics =  class end
public class WebTestRequestStatistics

The WebTestRequestStatistics type exposes the following members.

Properties

  Name Description
Public property ContentLength Gets or sets the length of the response.
Public property MillisecondsToFirstByte Gets the number of milliseconds elapsed between StartTime and TimeOfFirstByte.
Public property MillisecondsToLastByte Gets the number of milliseconds elapsed between StartTime and TimeOfLastByte.
Public property StartTime Gets or sets the time the request was sent to the server.
Public property TimeOfFirstByte Gets or sets the time the first byte of the response was received.
Public property TimeOfLastByte Gets or sets the time the last byte of the response was received.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

This allows for detailed analysis of the performance of the request. This class is serializable.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

Working with Web Tests