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 |
how to open an application
How do you load GUI map?
Explain difference between winrunner and test director?
How to convert Manual Test script into Automation Test Script?
Which function to use to compare the application date with system date?
what is the extension for WR files?
1. How will you load the object during run time? 2. How do you close the Task Manager through QTP? 3. How will you handle the situation when object is not captured during record? 4. How QTP support all types of applications (Platforms) 5. What is throw object? 6. Purpose of automation as many points as possible 7. What In-string function will do? 8. In website, protocol has been changed http: to https what you will do? Tell me your Approach? 9. Runtime dynamic settings. 10. Types of exception handling and script for that. 11. On resume next(recovery, do u write the script in notepad, if so, what is the script and how to call it when ever it occurs? ________PLs anyone give me the answers for these questions. Thanks a lot!
can we run compiled-mod function in a compiled module function?if yes then fwd sample script?
How many Record Methods are there in Winrunner?
6 Answers Accenture, Indicus Software,
How to Know through script which add-ins are loaded with winrunner?
How do you determine what to test?
What is Data Driven TEsting?