give one example where you have used regular expression?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
Answer / ramakrishna
hwen ever change in regular in test objects that tine use
resgular expression
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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 |
Hi, I am learning QTP. can someone please tell me a site from where i can learn QTP scripting Thanks in advance
How to convert manual test cases to automated testcases
What is obsolute path and relative path in QTP..? How to access them and what are the differences between them...??
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
how do u create new test sets in TD
When Object Repository is available what is the necessity of having Descriptive programming which needs more scripting efforts.
Which scripting language used by quicktest professional?
Hybrid framework supports Descriptive programming. Is it true?
datatable.Import("E:\Programming Samples\QTP Samples\OrderNumbers.xls") Asume we have 4 records in datatable Code reads the 4 rows in the sheet ok, but does it 5 times? It doesn't sound like closing the datasheet is the problem Can we close the datasheet runtime ?
in flight reservation ex once u login, u go into next window where we hav an option of new, open and help etc.. how to fetch those options and to go to respectiv tab accordingly using qtp.. plz let me knw answer for tis as early as possible. Thanks in advance... asha
What is the Command used to start the QTP
Can we Run the Tests developed in QTP 8.2 in advanced versions like 9.0, 9.1, 9.2...etc.,