tell me about regular expressions in QTP? where we use?
give eample?
Answer Posted / kotike
Qtp may not recognize the objects whos porperty values are
dynamically changing.In those situation we can use regular
expressions.
for example: in your mail inbox you have 15 messages
u recorded this and in object repository it stores inbox
(15)
assume u got few mails and now your inbox having 20 mails.
now you run the script which ever you recorded. The qtp
will not recognize the inbox(15) .because right now your
inbox having 20 messeges.
in this situation you need to reqularize the inbox as
follows
inbox\(\d+\)
now qtp will identify
Regards,
mahi.kotike@gmail.com
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you test the text displayed in the header portion of times of india epaper. Hot news(banner) are scrolling in the top of the page, how do you test using QTP?
What is the default object synchronization timeout in qtp?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
When Recovery scenario actually starts while testing the application?
How to use checkpoints in qtp ?
If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?
How are actions and functions different in QTP?
what is the difference btn risks & Therads in the Test plan documentation?
write a script to validate the content in the web application. (do it by OR method) and (do it by Descriptive method by creating a description object..
Can we write winrunner language i.e TSL in QTP tool?
What are the types of object repository in qtp?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this
What is accessibility check point?
How do you convert manual test cases to automated test cases?
explain how to write vb script in qtp?when will you write own script?