What is the use of Regular expression?

Answer Posted / krishna

If property value have any special character while executing, QTP throw object identification error , To avoid this error we use regular expression concept here double click on that property value , then RE window open, then edit the value name, put the ""before the special character and check the RE checkbox . Then Run the script QTP will identify the object.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Key word driven framework

1684


How can i get the image text that changes dynamically? Here i have used "GetROProperty", but it's not working. I used like Ex:Browser("webmail").Page("inbox").image ("captchaimage).getroproperty("innertext/text/value")

1425


Hi can anybody send me the QTP material, To my email ID: nuve1284@gmail.com ?

1693


i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?

1504


i have asked earlier only one question how to test web application using QTp plz send me the answer quickly

1657






What is the keyword view and expert view in qtp?

533


In qtp, how you can get the last character from a string?

556


Approach for Installation,comaptibility,system testing

1708


Is text area check point supports for web applications?

533


Which scripting language used by quicktest professional (qtp)?

664


How to delete an object from the object repository?

595


Explain Descriptive Programming Types with Examples?

925


Output values? i want a practical example

1309


Define object spy ?

562


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2456