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

What is the purpose of regexp_label property and regexp_msw_class property?

677


How do u check FONTS in Login Window?

1717


What happens when the gui map file get loaded?

671


Explain the synchronization points?

586


what is the testing high level architecture

2401






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

602


How do you maintain the document information of the test scripts?

581


plz give me code or steps for pop up exception. or can u tell me how to pause test run for defining handler function?

2078


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

715


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

1988


Explain the use of test director software?

613


Have you used winrunner in your project?

600


by useing qtp where the maximum people feeling difficult

1398


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

690


How do you select multiple objects during merging the files?

698