MSDN Library
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.

ExtractAttributeValue Class

 

Extract the value of an attribute from a specified HTML tag.

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.ExtractAttributeValue

public class ExtractAttributeValue : ExtractionRule

NameDescription
System_CAPS_pubmethodExtractAttributeValue()

Initializes a new instance of the ExtractAttributeValue class.

NameDescription
System_CAPS_pubpropertyAttributeName

Gets or sets a value that represents the name of the attribute that has the value to extract.

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 placed in the Web performance test context.

System_CAPS_pubpropertyIndex

System_CAPS_pubpropertyMatchAttributeName

Gets or sets an additional attribute name that must be found in the HTML tag that contains the attribute value to extract. Used in conjunction with MatchAttributeValue.

System_CAPS_pubpropertyMatchAttributeValue

Gets or sets the value of an additional attribute that must be found in the HTML tag that contains the attribute value to extract. Used in conjunction with MatchAttributeName.

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.)

System_CAPS_pubpropertyTagName

Gets or sets the name of the tag that contains the attribute you want to extract.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExtract(Object, ExtractionEventArgs)

Extracts the value of an attribute if a match is found.(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 searches for the first occurrence of an attribute value located in an HTML tag that meets the extraction criteria. The pass/fail status of this test is determined by whether the test is required to find the attribute value to pass and if the criteria are met. To use this extraction rule, an HTML tag name and the attribute to find must be specified with the TagName and AttributeName properties. Additional criteria can be identified with the MatchAttributeName and MatchAttributeValue properties.

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:
© 2016 Microsoft