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.

ExtractFormField Class

 

Extracts the value of a form field attribute and adds it to the WebTestContext.

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

System.Object
  Microsoft.VisualStudio.TestTools.WebTesting.ExtractionRule
    Microsoft.VisualStudio.TestTools.WebTesting.Rules.ExtractFormField

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

NameDescription
System_CAPS_pubmethodExtractFormField()

Initializes a new instance of the ExtractFormField class.

NameDescription
System_CAPS_pubpropertyContextParameterName

Gets or sets the context name of the extracted property.(Inherited from ExtractionRule.)

System_CAPS_pubpropertyHtmlDecode

Gets or sets a value that indicates whether the extracted value should be HTML decoded before the value is put into the Web performance test context.

System_CAPS_pubpropertyIndex

Gets or sets the 0-based index of the string to match.

System_CAPS_pubpropertyName

Gets or sets the name of the field whose value is to be extracted.

System_CAPS_pubpropertyRequired

Gets or sets a value that indicates whether the extraction rule should fail if the value to be extracted is not found in the response.

System_CAPS_pubpropertyRuleDescription

Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a description for this rule.(Inherited from ExtractionRule.)

System_CAPS_pubpropertyRuleName

Obsolete.This method is no longer used. Use the DisplayNameAttribute on the class to set a display name for this rule.(Inherited from ExtractionRule.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExtract(Object, ExtractionEventArgs)

Extracts the form field name and value that matches the Name property.(Overrides ExtractionRule.Extract(Object, ExtractionEventArgs).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

This extraction rule extracts form fields that have a name equal to the value that is set by Name. Consider the following HTML:

<input name="TextBox1" type="text" value="my first field" id="TextBox1" />

<input name="TextBox2" type="text" value="my 2nd field" id="TextBox2" />

The value of the TextBox1 field will be put in the context under the name that is specified by ContextParameterName.

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

Return to top
Show: