give one example where you have used regular expression?

Answers were Sorted based on User's Feedback



give one example where you have used regular expression?..

Answer / purni

Regular expression are used for the dynamic values. Dynamic
values change there value during the run time.
for ex. date, When we record the application it take the
default date and when we run the test on different day it
will select that day date. For this conditions it's better
to use the regulat expressions.

Is This Answer Correct ?    3 Yes 0 No

give one example where you have used regular expression?..

Answer / pooja

In flight application, fax order window number changes
according to the Order number created.....
in this case u can use regular expression for that number..
so that the test will not fail and it continues whatever be
the number in that window..

Is This Answer Correct ?    2 Yes 0 No

give one example where you have used regular expression?..

Answer / sreelaxmi

Regular Expressions can be used for Dynamically chanaging
objects in the run time.

In QTP we use regular expressions in

1. Physical description
2. Check points
3. Recovery Scenarios
4. In Scripting

Is This Answer Correct ?    1 Yes 0 No

give one example where you have used regular expression?..

Answer / ramakrishna

hwen ever change in regular in test objects that tine use
resgular expression

Is This Answer Correct ?    0 Yes 0 No

give one example where you have used regular expression?..

Answer / diksha kakkar

Regular exprresion is used where varying window lables are
there at run time

for ex. while recording script on MS document , it was doc-2

but when u run the script the window lable changes to doc-3
then QTp doesnt identify this ...
for this REgular expression is needed

Is This Answer Correct ?    1 Yes 1 No

give one example where you have used regular expression?..

Answer / satya

Another gud ex for using the regular expression is to
checking your eMail.
as the no of unread messages will never be constant so -for
clicking on "Inbox(n # of unread mails)" w/o fail u must
use R/E.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to handle dynamic objects in quicktest professional (qtp)?

0 Answers  


can anyone please send me qtp framework material please its urgent

1 Answers  


Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..

2 Answers  


In Login two edit box which object class property value is same, How to enter into 2nd edit box in qtp by vbscript.

3 Answers  


Hi Friends...this is surendra..recently i joined automation team ...Please send me some documents regarding VB script ...and where can i learn VB script... This is My mail id: surendra.mamilla@gmail.com... please send to my mail.... Thanx in advance surendra.

1 Answers  






what is the use of descripting programming?

8 Answers   Ordain Solutions,


Hi iam shankar here, right now iam working on manual testing. i want to switch over automation tool qtp, right now iam taking training class outside on qtp, please let me know the cost of QTP tool for full version, wether it's an annual subscription or monthly subscription.

0 Answers  


In qtp, explain what is qrs file?

0 Answers  


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

0 Answers   BirlaSoft,


what is the difference between window command and dialog command

1 Answers  


I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.

2 Answers  


How we can differentiate between stand alone application and web application in QTP?

3 Answers   Deloitte,


Categories