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

What is debug mode in Winrunner?

1705


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

609


global sheet and external excel sheet how it will work

1409


wat is the d/b windows 95&98&xp?could anybody give reply ?

1835


you hae a inbox and got a mail how can you know it is there or not write script.

1557






What are the virtual objects and how do you learn them?

716


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

1503


how can you explain your Real Estate Project in front of interviewer..? please step by step......

1146


Explain the purpose of gui map configuration?

615


what is mean by release in quality center and who will perfom?

2455


Explain the purpose of loading winrunner add-ins?

633


How to break infinite loop?

658


How do you load GUI map?

689


What is contained in the test scripts?

588


What are data driven tests?

599