WebTestRequestPlugin Class
Receives notifications before and after a request is processed.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.TestTools.WebTesting.WebTestRequestPlugin
Microsoft.VisualStudio.TestTools.WebTesting.RequestPlugins.SPLTPT_MTSL_ResolveNestedContextParms
Microsoft.VisualStudio.WebTesting.PowerTools.SharePoint.MTSL.General.SPLTPT_MTSL_SetContextParameterValue
Namespace: Microsoft.VisualStudio.TestTools.WebTesting
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Syntax
'Declaration
Public MustInherit Class WebTestRequestPlugin
public abstract class WebTestRequestPlugin
public ref class WebTestRequestPlugin abstract
[<AbstractClass>]
type WebTestRequestPlugin = class end
public abstract class WebTestRequestPlugin
The WebTestRequestPlugin type exposes the following members.
Constructors
Name | Description | |
---|---|---|
WebTestRequestPlugin | Initializes a new instance of the WebTestRequestPlugin class. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
PostRequest | When 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. | |
PreRequest | When overridden in a derived class, this method allows outside code to affect the request. | |
PreRequestDataBinding | When overridden in a derived class, this method allows outside code to modify the request parameters before a data binding call. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
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.