51Testing软件测试论坛
标题:
请教插入FUNCTION的问题
[打印本页]
作者:
xxmao163
时间:
2005-12-16 16:01
标题:
请教插入FUNCTION的问题
运行下面的脚本时,执行到if(ticket * price == total)时
出错:
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 2);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No.", ON);
edit_set ("Edit", "1");
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 2);
menu_select_item ("File;Fax Order...");
# Fax Order No. 1
set_window("Fax Order No. 1", 12);
win_activate ("Fax Order No. 1");
set_window ("Fax Order No. 1", 3);
edit_get_text("# Tickets:",ticket);
edit_get_text("Ticket Price:",price);
edit_get_text("Total:",total);
if(ticket * price == total)
tl_step("total",0,"total is correct);
else
tl_step("total",1,"total is incorrect);
button_press ("Cancel");
# Flight Reservation
set_window ("Flight Reservation", 3);
obj_mouse_click ("Button", 20, 16, LEFT);
[
本帖最后由 xxmao163 于 2005-12-16 16:03 编辑
]
作者:
李zi
时间:
2005-12-16 17:25
if和else下的语句的"不匹配
tl_step("total",0,"total is correct);
correct后面少了一个“
tl_step("total",0,"total is correct");
作者:
李zi
时间:
2005-12-16 17:25
if和else下的语句的"不匹配
tl_step("total",0,"total is correct);
correct后面少了一个“
tl_step("total",0,"total is correct");
作者:
xxmao163
时间:
2005-12-19 09:59
哦,谢谢
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2