How is it possible to select a different value from the combo box control in script playback in each test run?
NOTE : [This question was asked by eiman]
How is it possible to select a different value from the combo box control in script playback in each test run?
NOTE : [This question was asked by eiman]
This was whe I was learning WinRunner.
Hope it helps.
set_window ("Flight Reservation", 5);
edit_set ("Date of Flight:", "07/07/07");
list_get_info("Fly From:","count",n);
for (i=0;i{
list_get_item("Fly From:",i,x);
list_select_item("Fly From:",x);
if (list_select_item("Fly To:",x))
tl_step("S1",1,x & " appears in fly to also");
else
tl_step("S1",0,x & " does't appear in fly to");
}
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.
-sutnarcha-