Regular expressions enable QuickTest to identify objects
and text strings with varying values.
You can use regular expressions when:
• defining the property values of an object
• parameterize a step
• creating checkpoints with varying values
A regular expression is a string that specifies a complex search phrase.
Common Options used in the regular expression
Using the Backslash Character ( \ )
Matching Any Single Character ( . )
Matching Any Single Character in a List ( [xy] )
Matching Any Single Character Not in a List ( [^xy] )
Matching Any Single Character within a Range ( [x-y] )
Matching Zero or More Specific Characters ( * )
Matching One or More Specific Characters ( + )
Matching Zero or One Specific Character ( ? )
Matching One of Several Regular Expressions ( |)
Matching the Beginning of a Line ( ^ )
Matching the End of a Line ( $ )
Matching Any AlphaNumeric Character Including the
Underscore ( \w )
Matching Any Non-AlphaNumeric Character ( \W )
Combining Regular Expression Operators
and text strings with varying values.
You can use regular expressions when:
• defining the property values of an object
• parameterize a step
• creating checkpoints with varying values
A regular expression is a string that specifies a complex search phrase.
Common Options used in the regular expression
Using the Backslash Character ( \ )
Matching Any Single Character ( . )
Matching Any Single Character in a List ( [xy] )
Matching Any Single Character Not in a List ( [^xy] )
Matching Any Single Character within a Range ( [x-y] )
Matching Zero or More Specific Characters ( * )
Matching One or More Specific Characters ( + )
Matching Zero or One Specific Character ( ? )
Matching One of Several Regular Expressions ( |)
Matching the Beginning of a Line ( ^ )
Matching the End of a Line ( $ )
Matching Any AlphaNumeric Character Including the
Underscore ( \w )
Matching Any Non-AlphaNumeric Character ( \W )
Combining Regular Expression Operators
No comments:
Post a Comment