ExtractionRule Class
Base class used to define rules for obtaining data from a Web response that is generated by a Web performance test.
Assembly: Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)
Microsoft.VisualStudio.TestTools.WebTesting::ExtractionRule
Microsoft.VisualStudio.TestTools.WebTesting::ExtractHtmlSelectTag
Microsoft.VisualStudio.TestTools.WebTesting::ExtractHtmlTagInnerText
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractAttributeValue
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractFormField
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractGuids
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractHiddenFields
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractHttpHeader
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractRegularExpression
Microsoft.VisualStudio.TestTools.WebTesting.Rules::ExtractText
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointExtractFormField2
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointExtractListViewWebPartScriptValues
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointExtractSelectFormField
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointExtractViaKeyString
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindCalendarDates
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindCalendarItems
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindDocumentItems
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindHrefs
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindListItems
Microsoft.VisualStudio.TestTools.WebTesting.Rules::SharePointFindWorkFlowInstances
| Name | Description | |
|---|---|---|
![]() | ExtractionRule() | Initializes a new instance of the ExtractionRule class. |
| Name | Description | |
|---|---|---|
![]() | ContextParameterName | Gets or sets the context name of the extracted property. |
![]() | RuleDescription | Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a description for this rule. |
![]() | RuleName | Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a display name for this rule. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Extract(Object^, ExtractionEventArgs^) | When overridden in a derived class, this method extracts information from a HtmlDocument and places it into the WebTestContext. |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
The ExtractionRule class must be inherited by any extraction rule whether it is user-written or built-in. Extraction rules that are associated with the request definition are run after a response has been received, and the results of the extraction are added to the WebTestContext.
Notes to Inheritors:
When you inherit from ExtractionRule, you must override the following members: Extract, RuleDescription, and RuleName.
Legacy Code Example
The following custom extraction rule extracts check boxes from the HtmlDocument and places the status of the found check boxes into the context.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


