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

How should we write and execute a user define function using WinRunner.

1642


What is the purpose of set_window command?

719


soft key for virtual object wizard ?

1908


when start testing

2204


Name the two modes of recording?

618






How to integrate automated scripts from testdirector to winrunner scripts?

663


What Framework is suitable to validate the Login screen.

1937


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

602


Hiiiiiiiii This is lavanya.....At present i m working as a MATLAB developer at CMC(A tata enterprise)from about1 year .now i want to move to testing field as a fresher?Is this possible...can anyone give me a suggestion regarding d testing field.....

1806


How do you make the configuration and mappings permanent?

628


Which are default codes winrunner generates when we start the application?

1596


How you integrated your automated scripts from TestDirector?

641


Explain the winrunner testing process?

631


What is the purpose of different record methods?

664


What is the use of gui map?

613