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

Hi,i cleared the first round in Microstrategy and my second round(project manager) is scheduled so can any one tel me what r they asked and gv me some steps how i wil tel them?

1 Answers  


My husband had stampped h1b visa and was valid for another 1year. problm is that he lost his pasport in travelling and we got new one in tatkal scheme. and so we applied for restamping and my dependent (h4)visa. As per immigration team petition will be the same only stamping has to b done.. what questions will they ask and what are the chances to get it aproved?? pl reply

1 Answers  


what is cookies testing and what are the possible test case.

0 Answers  


How should we create a compiled module? What is its importance?

1 Answers  


how to test the websites using winrunner iam pactising in winrunner version 7.0,how to get new trail version of winnrunner?

1 Answers  






If I dont have GUI spy on my machine how I do I manage to map my custom object properties

2 Answers  


What is parameterizing?

0 Answers  


What is the purpose of gui map configuration?

0 Answers  


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

0 Answers   Subex,


What is parameterizing in winrunner?

5 Answers   FCG, GE,


What is the process of file parsing in winrunner?

1 Answers  


What is the difference between QTP and WinRunner?

5 Answers   AppLabs,


Categories