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 do you mean by the logical name of the object.

638


What actually happens when you load GUI map?

749


Explain the use of test director software?

603


What are the reasons that winrunner fails to identify gui object?

581


What is the purpose of gui spy?

799






Explain data parameterization in winrunner?

595


What is the use of gui map and what happens when gui map file get loaded?

692


Where did you learn winrunner and testdirector?

684


write a compilemodule function for loginscreen.

1684


How do you call windows APIs, explain with an example?

1540


What is the use of gui map?

604


What all are the different databases winrunner can support?

1472


Explain the purpose of different record methods?

619


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

2455


How to integrate automated scripts from testdirector to winrunner scripts?

649