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
Explain the synchronization points?
What do you mean by the logical name of the object.
Explain data parameterization in winrunner?
When it is appropriate to change physical description?
How to get the resolution settings?
Explain the use of test director software?
I want to do smoke test in my application but i have learnt the application before recording but im getting an error class name not found while running the script.I want to check each links and each text in my application. Can anybody answer my quesion plz.If it is possible i want test script for Yahoo login form with "New User" Login.
Explain the purpose of loading winrunner add-ins?
For my web Application I am recording website by WR. but the fuctions are displaying normal recorded fun. such as set_window...etc. eventhough i selected web add-in at start up WR. how to use web functions? such as web_link_click.... pls. guide
How to have winrunner insert yesterdays date into a field in the application?
Name the different types of checkpoints?
How do you configure gui map?
Where did you learn winrunner and testdirector?
How do you modify the logical name or the physical description of the objects in gui map?
How to check the background colour of the screen in WR?