GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP

 Print  |  
Question:  QTP Regular Expression

Answer: What is the significance of regular expression in QTP?


June 06, 2009 09:10:50 #4
 harrylei   Member Since: May 2009    Total Comments: 2 

RE: QTP Regular Expression
 
QTP Regular Expressions enable QTP to identify objects and text strings with varying values. you can use regular expressions in three situations:
1,
Defining the property values of an object in dialog boxes or in programmatic descriptions
2,
Parameterizing a step
3, Creating checkpoints with varying values

For example, you can use a regular expression if you want to create a text checkpoint on a year text string, but the displayed year changes according to the current date. if you define the year as a regular expression, the checkpoint checks that captured text string matches the expected year format, rather than checking the exact year value. 2008, 2009, 2007, ...
[1900-2099]


     

 

Back To Question