Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ExtractRegularExpression.Extract Method (Object, ExtractionEventArgs)

 

Finds the text represented by the regular expression in the response and adds the value to the WebTestContext.

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

No code example is currently available or this language may not be supported.

Parameters

sender
Type: System.Object

The object that fired the event.

e
Type: Microsoft.VisualStudio.TestTools.WebTesting.ExtractionEventArgs

Contains information about the request, response, and context event data.

If the regular expression was found or Required is set to false, e.Success is true; otherwise, e.Success is false. If the regular expression was not found and it was required, e.Message is set with a string that indicates the expression was not found. This is displayed in the Test Results pane.

Return to top
Show: