Object map property placeholders
The object map property placeholders resolve object map placeholder values into property values. They also resolve default placeholder values.
Usage: Use the following placeholders to customize the following script templates:
- Script: Comment for Test Object
- Script: Comment for top level Test Object
- Script HTML Test Object Name
- Script Java™ Test Object Name
- Script: .Net Test Object Name
- Script: Windows® Test Object Name
map placeholder
Description: Resolves values relative to an entry in the object map. The map placeholder is only valid during helper script method generation and during recording to insert comments into the script, otherwise the test object instance is not known.
Syntax: %map: property%
Functional properties for the map placeholder:
- context -- Returns the descriptive name of the closest parent registered in the Object Library as having context.
Examples:
- %map:context% -- Returns the descriptive name of the closest parent registered in the Object Library as having context.
The recognition property for the map placeholder returns the property name.
Syntax: %map: RecognitionProperty%
- The recognition properties are unique to each type of test object. To get the name of a recognition property for a particular test object to use with the object map placeholder, see the properties on the Recognition tab of the object map.
- Administrative properties are prefixed with a # character to signify that the property is an administrative rather than a recognition property. For information about administrative versus recognition properties, see Property Sets in the Test Object Map topic.
Administrative properties for the map placeholder:
- .class -- Returns the Java™ class name, the HTML tag (with an HTML prefix), or the VB class name of the test object.
Examples:
- %map:.class% -- Returns the Java™ class name, the HTML tag (with an HTML prefix), or the VB class name of the test object.