Using the WinRunner Tool What that Regular Expression Scripts
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
What is keyword driven testing? what is the difference between severity and priority?
how to write the pass or fail message in winrunner for eg: in QTP we can write like "Reporter.reportEvenr,micDon,"Test Test pass"
can anybody give me example of 5 critical,major,& low severity and priority bug
When do you use verify, Debug and Update modes?
Are there any suitable free tools to conduct performance test on a php web application?Manual or automation which is preferable for such kind of application? please answer ASAP
Name the different modes of recording?
Friends,while installing winrunner,after setup unknowingly without generating license i opened winrunner.it didn't work,then i uninstalled wr ,and again installed properly ,generated license,opened winrunner .error msg :TMP environemnt variable is set to invalid folder.it must be set to valied folder.TMP is not a directory ,Exiting........ so kindly suggest me the solution
Tell me the function to export the content from one data table to the other?
1 Answers Landscape Technologies,
How do you handle tsl exceptions?
ca n u give the example for low severity & low priority in ur Internet Banking project
What we have to do if winrunner is not able recognize an object even if we have mapped the object with standard windows object used by winrunner using wirtual object wizard?
how to reverse the string using function