How is it possible to select a different value from the combo box control in script playback in each test run?
NOTE : [I][This question was asked by eiman][/I]
Printable View
How is it possible to select a different value from the combo box control in script playback in each test run?
NOTE : [I][This question was asked by eiman][/I]
This was whe I was learning WinRunner. :)
Hope it helps. :D
[QUOTE]set_window ("Flight Reservation", 5);
edit_set ("Date of Flight:", "07/07/07");
list_get_info("Fly From:","count",n);
for (i=0;i<n;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");
}[/QUOTE]