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


Please Help Members By Posting Answers For Below Questions

Explain the purpose of loading winrunner add-ins?

862


How to do text matching?

821


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

806


Name the different types of checkpoints?

787


soft key for virtual object wizard ?

2082


What information is contained in the checklist file?

790


What do you verify with the sync point for object/window bitmap and what command it generates, explain syntax?

798


What happens when the gui map file get loaded?

919


Have you used winrunner in your project?

767


How do you identify which files are loaded in the gui map?

818


How do you handle dynamically changing area of the window in the bitmap checkpoints?

789


What in contained in the GUI map?

797


Difference between winrunner and test director?

887


What is boundary test?

853


What different actions are performed by find and show button?

856