what is the syntax for regular expression in QTP?
how to create user defined functions in QTP?
Answers were Sorted based on User's Feedback
Answer / seethas
Uday is exactly correct.........
I m giving one example 4 regular exp.........
[1-9]--------->it accepts all 1 to 9 numbers......
|Is This Answer Correct ?||10 Yes||1 No|
Answer / uday
Regular expressions enable QuickTest to identify objects
and text strings with varying values.
You can use regular expressions when defining the
properties of an object, the methods of an argument, when
parameterizing a step, and when creating checkpoints with
A regular expression is a string that specifies a complex
search phrase. By using special characters such as a period
(.), asterisk (*), caret (^), and brackets ([ ]), you
define the conditions of the search.
we can write the user defined in a notepad and save the
file as .vbs and we then associate that to Test-Settings-
Resources-Associate Library Files by clicking plus and
select the .vbs file. In the script we can call the
function with function name ()
|Is This Answer Correct ?||10 Yes||7 No|
Answer / ram
By using regular expression we can handle dynamic objects
in object repositiry.
When an object property will changing freaquently based on
input values that time we use regular expression.
we have nuber of regular expressions , But we are using 4
types of regular expressions * . ( )
|Is This Answer Correct ?||1 Yes||0 No|
Answer / naren
RE enables us to find objects and Text strings with varying
Dim re As New RegExp
Dim ma As Match
re.Pattern = "[A-Z][0-9][0-9][0-9]" ' uppercase char
followed by 2 digits
re.IgnoreCase = False ' case sensitive search
re.Global = True ' find all the
For Each ma In re.Execute(txtSource.Text)
Msgbox "Found '" & ma.Value & "' at index " & ma.FirstIndex
|Is This Answer Correct ?||3 Yes||3 No|
Answer / akshar jain
yes uday u r right
|Is This Answer Correct ?||4 Yes||6 No|
Answer / saravanaraja
Regular Expression is used only for the dynamically
changeable element like Time.
This is the Regular Expression for Time ("1|[1-9]):[0-
|Is This Answer Correct ?||2 Yes||4 No|
pls tell me different type of automation frame works in QTP and which one need to select in client server application
To retrive the test data which tool vl use and whats basis u vl write test data? its urgent
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .
Where is the Bitmap checkpoint information stored?
What is the latest version of QTP? aster googling i found it 9.5 . but somewhere in my frnds resume i hve seen 10.0 so i am a bit confused pls let me know.
How will you report the bug and explain the defect tracking sheet you handled?
How to make arguments optional in a function?
what is run-time data?
What are accessibility check point and xml check point?
Why is action split used by qtp?
How we know the qtp has used the smart identification process for identification of the object.