WinRunner7.0 - Script problems
User J.W. M (email@example.com) posted:
I am trying to figure out how to have a script which
will activate the windows in the lines below as
generic and not specific (Homeowner, Address & photo
jpgs need to change every time the script is run).
When I run the script again it looks for the Homeowner
and photos already in the script. I want the script
to use the next claim in the application. I have no
programming knowledge and I think I need to insert
some script to find the next claim information in for
the existing lines on every run. Can anyone shed some
light on the matter. It would be greatly appreciated.
# Inspection Browse Property Address: 270 LAFAYETTE DR
Homeowner: ANTONUCCI, SALVATORE
win_activate ("Inspection Browse Property Address:
270 LAFAYETTE DR Homeowner: ANTONUCCI, SALVATORE");
set_window ("Inspection Browse Property Address: 270
LAFAYETTE DR Homeowner: ANTONUCCI, SALVATORE", 8);
# Structure = 000000004W, Photo =
set_window ("Structure = 000000004W, Photo =
Re: WinRunner7.0 - Script problems
User (firstname.lastname@example.org) posted:
It appears to me that need to edit your GUI map and create a generic logical
name for your window and then use a regular expression in the Physical
description of the window.
For example consider the following GUI map window descriptions :
Logical name : Fred Smith
html_name: "Fred Smith"
Logical name : John Smith
html_name: "John Smith"
these could be replaced by the single map description :
Logical Name : Person
This means that whatever the title of the window that is displayed it can be
set to ie you can use Set_window("Person",0).
This sort of manipulation is covered in the WR users guide and on the WR
Aother way is to start using variables for you various input and
manipulating them via scripts.
I STRONGLY suggest that, as you have no programming knowledge, you attend
both of the WinRunner courses (Basic and Advanced) as these will give you
some programming knowledge. Also I would recommend that you gain a knowledge
of programming and scripting techniques as you will need this to produce
really useful WR scripts.