Using the WinRunner Tool What that Regular Expression Scripts
Answer Posted / sujeet r.
Regular expression
When the winrunner script refers to a window whose title
changes dynmically (for eg. the scri[t contains a statement
Setwindow ("Order Form No. 265")
Lets say when the script was recorded, at that time the
title window was Order Form No. 265
The next time when the script is run, the title changes to
Order Form No. 266 then the script is going to error out
saying that it could not find the window.
In such a case you can use Regular expression.
Click Tools->GUI Map Editor and then in the properties of
that object in the logical name type
#Order Form No.*
Simply enclose the title in # and .*
This will not update the script though
So whenevr the title of the window changes dynamically,
winrunner will not give an error that the window could not
be found.
P.S. : Any inputs are welcome
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
Which function to use to compare the application date with system date?
what is mean by release in quality center and who will perfom?
descriptive program for web application.
when start testing
Name the different modes of recording?
Explain the purpose of loading winrunner add-ins?
How to do text matching?
What information is contained in the checklist file and in which file expected results are stored?
Why don’t we normally load the gui maps through start up scripts?
The title of the window consists of date and time.What is the regular expression to recognize the window as unique?
How do u check FONTS in Login Window?
What is the difference between gui map and gui map files?
What is the purpose of regexp_label property?
Where do you found that you can't use winrunner for automation?
Which are default codes winrunner generates when we start the application?