GUI Checkpoints: in This Lesson You Will Learn
GUI Checkpoints: in This Lesson You Will Learn
Manual Automated
Verify Checkpoints
–visually check application –GUI, bitmap, text
–compare expected to actual
WinRunner Workflow
1 Create GUI Map
e
pplle
a
amm
EEx
x
width label
focus enabled
Example: Edit Checks
Checklist
Checklist File
File Expected
Expected Results
Results File
File
"Flight Reservation": "Flight Reservation":
{ {
} }
"OK": "OK":
{ {
ENABLED_CHK: "", ENABLED_CHK: "ON",
LABEL_CHK: "" LABEL_CHK: "OK"
} }
Multiple Object Check
WinRunner stores:
– all objects or windows in a checklist file
– all the attribute(s) that you want to check in a checklist file
– the expected results of all the attributes you are checking in
an expected results file
Checking: Checklist
Checklist File
File Expected
Expected Results
Results File
File
• Choose City window has "Choose City": "Choose City":
correct width and height { {
• City list has correct list WIDTH_CHK:, WIDTH_CHK: 470,
content HEIGHT_CHK: HEIGHT_CHK: 367
• OK button has correct label } }
"City:": "City:":
Choose City { {
SELECTION_CHK: "" SELECTION_CHK: "Denver"
City: } }
"OK": "OK":
{ {
LABEL_CHK: "" LABEL_CHK: "OK"
} }
Check GUI Statements
Single object check:
obj_check_gui (object_name, checklist_file, exp_res_file, time);
Single window check:
win_check_gui(window_name, checklist_file, exp_res_file, time);
Multiple object check:
win_check_gui(window_name, checklist_file, exp_res_file, time);
ppllee
a
a m
m
EExx obj_check_gui
obj_check_gui("OK",
("OK","list1.ckl",
"list1.ckl","gui1",1);
"gui1",1);
win_check_gui
win_check_gui("Login",
("Login","list1.ckl",
"list1.ckl","gui1",5);
"gui1",5);
The Test Directory
After a GUI Check
exp
• Expected GUI results stored in
exp subdirectory <test name>
gui1.chk
gui2.chk
list1.ckl
list2.ckl
GUI Check Results
View results
in more detail
Summary
• Use GUI checkpoints to check GUI objects