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 ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

This Is Sekar, Can Any One Of You Help Me? Question: How To Draw Charts In Excel Sheet Using Winrunner Scripts. Thanks, Sekar.

1925


What is test parameter

1781


What is the purpose of gui spy?

1002


How to to get the information from the status bar without doing any activity/click on the hyperlink?

782


When would you use 'set_window' and when would you use 'win_activate'?

953


what is the difference between toggle checkpoint and checkpoint?

4556


Have you ever created a start-up script?

877


What is the use of gui map?

814


by useing qtp where the maximum people feeling difficult

1571


Explain the purpose of gui spy?

805


How do you handle tsl exceptions?

897


Have you used winrunner in your project?

767


Where do you found that you can't use winrunner for automation?

1854


Dear all i am new to testing my company using vb.net and we are developing web based application. How i can test those application with winrunner if any one have some good tutorial or link kindly provide thanks u.

1748


What do you verify with the database check point custom and what command it generates, explain syntax?

838