Wednesday 20 November 2013

How to use regular expressions in object repository (OR) in QTP?

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 -


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.
Please give your inputs, suggestions, feedback to Us about above QTP topic. We value your thoughts.

No comments:

Post a Comment

Please Leave your reply. We value your feedback and inputs

Best QTP Books

Everything About QTP

Hello Friends,
You can find QTP study material, Multiple choice questions (mcq), QTP question bank, QTP question papers, QTP notes, QTP questionnaire, scenario based QTP interview questions, QTP tutorial and QTP training on this site.

If you are a fresher or experienced QTP professional with (1/2/3/4) years of experience, this blog is just for you.