Object repository stores the test object properties and their values. We can use regular expressions to set the values of the properties of the test object.
When we use the value as a regular expression, single test object in OR can be be used to find the multiple run time objects.
Example -
You may also like below topics on regular expressions in QTP.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.
When we use the value as a regular expression, single test object in OR can be be used to find the multiple run time objects.
Example -
As shown in above image, we need to click on the button (circled with red) in front of the property value that you want to make as a regular expression. After you click that button, you will get below window
Then we need to enter the regular expression in the edit box and check the regular expression checkbox and click on Ok.
So now the test object will identify all the edit boxes that starts with q followed by any characters.
You may also like below topics on regular expressions in QTP.
No comments:
Post a Comment
Please Leave your reply. We value your feedback and inputs