You are on page 1of 1

WinRunner practical approach

Recording in Context Sensitive mode

Create  Record Context Sensitive

Step 1: Activate application under test


Example : Start  Run  Calc
Result application should appear

Step 2: perform functional operations


Example : key in values 5 and 5 to perform add operation
Result : it should display 10 as output

Result : TSL Script is Generated

win_activate ("Calculator");
set_window ("Calculator", 2);
obj_mouse_click ("Button", 21, 14, LEFT);
obj_mouse_drag ("Button_1", 26, 12, 23, 12, LEFT);
obj_mouse_click ("Button", 24, 16, LEFT);
obj_mouse_click ("Button_2", 24, 20, LEFT);

You might also like