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


Please Help Members By Posting Answers For Below Questions

Explain the synchronization points?

588


What do you mean by the logical name of the object.

648


Explain data parameterization in winrunner?

601


When it is appropriate to change physical description?

648


How to get the resolution settings?

600






Explain the use of test director software?

617


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.

1647


Explain the purpose of loading winrunner add-ins?

647


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

1742


How to have winrunner insert yesterdays date into a field in the application?

603


Name the different types of checkpoints?

611


How do you configure gui map?

711


Where did you learn winrunner and testdirector?

703


How do you modify the logical name or the physical description of the objects in gui map?

661


How to check the background colour of the screen in WR?

1512