Interview Questions   Tutorials   Discussions   Programs   Videos   

WinRunner - Using the Win Runner Tool What are that Regular Expression Scripts?




229
views
asked mar August 10, 2014 05:28 AM  

Using the Win Runner Tool What are that Regular Expression Scripts?


           

1 Answers



 
answered By shyam   0  
When the winrunner script refers to a window whose title changes dynamically (for eg. the script contains a statement Set window ("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 whenever the title of the window changes dynamically,winrunner will not give an error that the window could not be found.
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert