|
测试脚本
table = "90.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 4);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No._1", ON);
edit_set ("Edit_2", "4");
button_press ("OK_1");
# Flight Reservation
set_window ("Flight Reservation", 5);
menu_select_item ("File;Fax Order...");
# Fax Order No. 4
set_window ("Fax Order No. 4", 1);
edit_get_text("# Tickets:",Tickets);
edit_get_text("Ticket Price:",Price);
edit_get_text("Total:",Total);
#check that the total ticket price is calculated correctly.
if(Tickets*Price==Total)
tl_step("Total",0,"Total is correct.");
else
tl_step("Total",1,"Total is incorrect.");
button_press ("Cancel");
}
ddt_close(table);
执行没有问题,可是为何90.xls表中没有数据呢 |
|