关于winrunner中runtime record checkpoint wizard
我在设置完runtime record checkpoint wizard后运行测试脚本,在测试结果中对于runtime record checkpoint总是提示为:the sql statement you have entered is nod valid.但相同的sql语句在defautl check中设置却是可以运行的,实在不明白哪里出问题拉?我在runtime record checkpoint wizard中设置的sql语句是:select Orders.Customer_Name from Orders
整个测试代码是在winrunner自带的Flights 4A中订机票:
# Flight Reservation
win_activate ("Flight Reservation");
set_window ("Flight Reservation", 1);
obj_type ("MSMaskWndClass","122005");
#obj_get_info("MSMaskWndClass","value",aa);
#report_msg(aa);
。。。。。。。
。。。。。。。。。
#设置数据库检查点
db_check("list5.cdl", "dbvf1");
db_check("list8.cdl", "dbvf2");
db_record_check("list7.cvr", DVR_ONE_MATCH, record_num);
edit_get_text("Order No:",order);
report_msg(order & "is 机票单");
。。。。。。。。。 我的没问题呀:
# Flight Reservation
set_window ("Flight Reservation", 3);
menu_select_item ("File;Open Order...");
# Open Order
set_window ("Open Order", 1);
button_set ("Order No.", ON);
edit_set ("Edit", "3");
button_press ("OK");
# Original SQL: select Orders.Customer_Name from Orders
#db_check("list1.cdl", "dbvf1");
db_record_check("list2.cvr", DVR_ONE_MATCH, record_num);
# Flight Reservation
set_window ("Flight Reservation", 2);
obj_mouse_click ("Button", 13, 9, LEFT);
还有你的结果user message跑到数据库检查点前面了,与代码不符。
页:
[1]