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
varying values.
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
values
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
occurrences
For Each ma In re.Execute(txtSource.Text)
Msgbox "Found '" & ma.Value & "' at index " & ma.FirstIndex
Next
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / saravanaraja
Regular Expression is used only for the dynamically
changeable element like Time.
This is the Regular Expression for Time ("1[012]|[1-9]):[0-
5][0-9](am|pm")
Is This Answer Correct ? | 2 Yes | 4 No |
Does QTP support flat files? If yes what are those?
What is the keyword view and expert view in qtp?
How to add check point?
Tell me Three major differences between QTP & Winrunner?
Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???
Explain the concept of object repository & how QTP recognises objects?
what are the Tools for version control?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
Why we have to split actions in a test?
MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING