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

which checkpoint is used to analyze the appearance of AUT

1 Answers  


I Loaded a compile module "mycomp()" using Load statement.later I tried to load this same compile module using one more load statement.Then I tried to unload this usning unload statement one time.will it unload the compile module?

2 Answers   Accenture,


When you create GUI map do you record all the objects of specific objects?

1 Answers  


How you integrated your automated scripts from TestDirector?

0 Answers  


How can withwin runner to make single scripts which supports multiple languages?

0 Answers  






What do you verify with the database check point custom and what command it generates, explain syntax?

0 Answers  


what is Regression Testing and how you are going to use winrunner software to do this Regression testing?

5 Answers   MBT,


We added data driven test in to our test script, how to remove the data driven wizard from the script?

1 Answers   Wipro,


what is the key combination to terminate script execution

2 Answers  


What is framework? If u dont have framework how you manage your automation?

1 Answers  


How to fetch a value which is in a particular cell in a html table?

1 Answers   BeBo Technologies,


What is open STA?Explain in detail.

1 Answers  


Categories