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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What in contained in the GUI map?
What is the purpose of a gui spy?
What is the purpose of regexp_msw_class property?
Write test scripts on a scenario where you have to transfer data from one table to another.
global sheet and external excel sheet how it will work
What is toogle breakpoints? How does it differ from break points?
What is the difference between writing a function and writing a script?
What all are the different databases winrunner can support?
Explain data parameterization in winrunner?
What are the modes of script recording in winrunner ?
What do you verify with the gui checkpoint for single property and what command it generates, explain syntax?
Have you ever created a start-up script?
Explain the winrunner testing process?
When would you use 'set_window' and when would you use 'win_activate'?
What is tsl? What 4gl is it similar too?