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

How do you filter the objects in the gui map?

850


How do you find out which is the start up file in winrunner?

799


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

786


What are the platforms that WinRunner can be used?

1805


What information is contained in the checklist file?

789






What different actions are performed by find and show button?

854


How to find the local host name using winrunner ?

1894


Name the different types of checkpoints?

785


What information is contained in the checklist file and in which file expected results are stored?

915


Explain the winrunner testing process?

805


What is the usage of Test case Design Techniques,in Integration/System Testing?

2197


What is the use of test director testing tool?

878


How you integrated your automated scripts from TestDirector?

813


What is contained in the test scripts?

826


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

2683