Export (0) Print
Expand All

WebTestRequestPlugin Class

Receives notifications before and after a request is processed.

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestPlugin

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

public abstract class WebTestRequestPlugin

The WebTestRequestPlugin type exposes the following members.

  NameDescription
Protected methodWebTestRequestPluginInitializes a new instance of the WebTestRequestPlugin class.
Top

  NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodPostRequestWhen overridden in a derived class, this method is run every time a request finishes before dependent requests are run. This allows the callback to obtain runtime information about the request.
Public methodPreRequestWhen overridden in a derived class, this method allows outside code to affect the request.
Public methodPreRequestDataBindingWhen overridden in a derived class, this method allows outside code to modify the request parameters before a data binding call.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Classes that are derived from WebTestRequestPlugin can access the WebTest and WebTestRequest from the PostRequest and PreRequest event handlers. Additionally, the WebTestResponse can be accessed by using the PostRequest event handler.

This class must be inherited to access the functionality.

Notes to Inheritors

When you inherit from WebTestRequestPlugin, you must override PostRequest and PreRequest.

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

Community Additions

ADD
Show:
© 2015 Microsoft