Using the WinRunner Tool What that Regular Expression Scripts

Answers were Sorted based on User's Feedback



Using the WinRunner Tool What that Regular Expression Scripts..

Answer / 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

Using the WinRunner Tool What that Regular Expression Scripts..

Answer / shilpa

You are using #Order Form No.*
that means you are commenting the whole line.
So this line doesnt work at all right?
Wont this be an error?

Is there other alternative to this?

Is This Answer Correct ?    2 Yes 0 No

Using the WinRunner Tool What that Regular Expression Scripts..

Answer / 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

Using the WinRunner Tool What that Regular Expression Scripts..

Answer / vanaja

Is we can also use the sysntax as "order form No !.*"

Can you please verify this ?

Is This Answer Correct ?    1 Yes 1 No

Using the WinRunner Tool What that Regular Expression Scripts..

Answer / 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

More WinRunner Interview Questions

is 'Vendor' is a Reserved in WinRunner or not?

1 Answers   FCG,


Which of the following, we cannot include in a compiled module? a)check points b)analog statements c)reporting statemnts

3 Answers   Belly,


What is the difference between STATIC FUNCTION & STATIC?

2 Answers   Fidelity, Satyam,


what is the difference between toggle checkpoint and checkpoint?

1 Answers   JVS,


What is the extension of GUI check points check list file?

3 Answers   FCG,






What is Data Driven TEsting?

16 Answers   ADP, Sonata,


Where did you learn winrunner and testdirector?

0 Answers  


What is the definition of function?

1 Answers  


what is the difference between testlog and testdirector? thank u

3 Answers   Verizon,


Other than Regression testing where can also it can be used.

2 Answers  


If I do not check any of the add-ins that pops up initially, for which type of application can I do scripting?

2 Answers   Sonata,


For What are the browsers that WinRunner can Compatible? (I want Versions Like IE5.0 etc;)

3 Answers  


Categories