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

hi what is the use of "dim" in automation objective model or any where what is the use of "dim" plz tell me

3 Answers  


In QTP , Test Director combination . what is the role of Test Director? How QTP Launching QTP in T.D ? If it is Winrunner possible. but QTP How it is possible?

1 Answers   IBM, TCS,


Write the Test Cases for ATM(Any Time Money)

3 Answers   SpaceLabs,


in qtp how i can retrive from a browser how many links are there.means total no of links used in a browser

4 Answers   Verizon,


Definationions for keyword view and tree view?

1 Answers  






i have read that "non-reusable actions can not be called in any other test".but in 'call to copy action' copies non-reusable action in other test also..can u pls help to understand this..

0 Answers  


What is action split and the purpose of using this in qtp?

0 Answers  


Hi Suppose u have complex Test scripts which u vl write first and which u vl execute first

2 Answers   Symphony,


This is the script generated by qtp plz can anyone write the same script using descriptive programming plzzzz guys do answer. Browser("orkut - login").Page("orkut - login").WebEdit ("Email").Set "rgovard" Browser("orkut - login").Page("orkut - login").WebEdit ("Passwd").SetSecure "47525d8be4926ea2f6e96b9a3f7472b6ae38" Browser("orkut - login").Page("orkut - login").WebButton ("Sign in").Click Browser("orkut - login").Page("orkut - home").Link ("Logout").Click Browser("orkut - login").Page("orkut - login").Sync Browser("orkut - login").Close

6 Answers  


If our application contain one image while executing script application failed to show that image but you have to check that image by importing dynamically from other location... Can we use Check Points here on dynamically imported image?

2 Answers   ADP,


I have 3 add buttons of same properties in my page but i want trigger one of them i required in my recovery scnario manager is qtp recognizes it to recovre d scnario if so how qtp recognizes it

3 Answers  


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

0 Answers   Value Labs,


Categories