QTP Regular Expressions enable QTP to identify objects and text strings with varying values. you can use regular expressions in three situations: 1,
Defining the property values of an object in dialog boxes or in programmatic descriptions 2,
Parameterizing a step 3, Creating checkpoints with varying valuesFor example, you can use a regular expression if you want to create a text checkpoint on a year text string, but the displayed year changes according to the current date. if you define the year as a regular expression, the checkpoint checks that captured text string matches the expected year format, rather than checking the exact year value. 2008, 2009, 2007, ...
[1900-2099]
|