Give a comment on Regular Expressions using QTP?
Answers were Sorted based on User's Feedback
Answer / nath .t
suppose if u want to check date field. Date field like as
mm/dd/yy. here we can use regular expression.
ex:-mm/dd/yy
here month cann't exceed 12
Date cann't exceed 31 days
yy cann't exceed present year
for this we can regular expression
[0-1][0-9]/[0-3][0-9]/07
ex:- Window is there, name of the window is window1
at first time. but at the time of testing its variate like
as window2, window3,...... at this time we can use regular
expressions.
regular expression for the above ex. is
!window*
we can give regular expression in CONSTANT VALUE
OPTIONS DIALOUGE BOX. u must enable the regular expression
option. like this way we can give regular expression.
| Is This Answer Correct ? | 2 Yes | 0 No |
Regular expression is checking the pattern rather than constant value.
when you are doing web testing the browser name is keep changing, so by using .* we can handle that.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ramu@sunnys
it is search string,it is used to identify the properties of
the objects that are changing in run time
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramu@sunnys
it is search string,it is used to identify the properties of
the objects that are changing in run time
| Is This Answer Correct ? | 0 Yes | 0 No |
How u execute test cases in manual testing?
Hi Friends, Would be great if you can provide the Model Question paper, Web site link or any reference s. Thanks & Regards, Byzoor,
how to write script in qtp(vbscript)..i mean with out application deployed..and how to call script1 into script2?
8 Answers INCA, Infosys, Logix, SLK Software, Symphony, Wipro,
Suppose U change the script whether it affect the object properties of the object in the object repository
How to do excception handling ( error handling ) in QTP
6 Answers Institute for Medical Education,
I am new with QTP. Is anybody could tell me where I can find a good tutorial with lots of samples?
How to make arguments optional in a function?
Hi All, How to get repeated word in string . Thanks Balaji
Where the text version of script file located in file system?
How to use setroproperty?
How to suppress warnings from the test results page?
If you use low level recording,what objects will be recorded in Object Repository and what properties?