Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

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?

2028


What is the default object synchronization timeout in qtp?

1225


If the objects hierarchy is changing from build to build, then how you will handle that condition?

1051


When Recovery scenario actually starts while testing the application?

2019


How to use checkpoints in qtp ?

1030


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

1018


How are actions and functions different in QTP?

1063


what is the difference btn risks & Therads in the Test plan documentation?

2118


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..

2299


Can we write winrunner language i.e TSL in QTP tool?

1984


What are the types of object repository in qtp?

1031


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

1979


What is accessibility check point?

1094


How do you convert manual test cases to automated test cases?

1104


explain how to write vb script in qtp?when will you write own script?

2307