Tuesday, July 12, 2011

Regular Expression in QTP

I found regular expression concept in QTPro is a very strong concept.I found it is very much helpful in web application.In web applicatiton the web object are changed dynamic.Now i am going to describe the regular expression.I found some useful content regarding the regular expression and their use while i was exploring some sites.
Regular Expression:
A regular expression is a formula for matching strings that follow some pattern.
In QuickTest Regular Expressions can be used in 3 places: 


1) Object Repository 
2) CheckPoints 
3) RegExp object.
Navigation through OR in QTP
·         Open the object repository
·         Select the desired object in the object hierarchy
·         Select the desired property in the properties list
·         Click on the constant value options button
·         Replace the constant value with suitable regular expression
·         Select the check box regular expression
·         Click on ok
·         Click on ok

           There's a good reason that regular expressions are found in so many diverse applications: they are extremely powerful. At a low level, a regular expression describes a chunk of text.
RegularExpression Cheat Sheet