if (tickets*price==total)
tl_step("total",0,"Total is correct");
else
tl_step("total",1,"Total is not incorrect");
wait(1);
button_press ("Cancel");
}
ddt_close(table);
51 context sensitive error--- obj_get_info:"Fax Order No. 2" Object is not in the GUI map.00:00:58
51 context sensitive error--- set_window:"Fax Order No. 2" Object is not in the GUI map.00:00:58
54 stop run pause lesson7 00:01:02
55 start run run lesson7 00:01:49
57 context sensitive error--- edit_get_text:"# Tickets:" Object is not in the GUI map.00:01:51
60 context sensitive error--- edit_get_text:"Ticket Price:" Object is not in the GUI map.00:01:56
61 context sensitive error--- edit_get_text:"Total:" Object is not in the GUI map.00:01:56
74 tl_step --- Step: total, Status: Fail, Description: Total is not incorrect00:02:04
76 context sensitive error--- button_press:"Cancel" Object is not in the GUI map.00:02:05
80 stop run fail lesson7 00:02:05作者: lantianwei 时间: 2007-9-26 16:28
我知道了,是你的对象没有保存,你要把对象库SAVE一下.作者: ly60 时间: 2007-9-28 08:54
我保存了一下,然后在gui文件中添加了另一个窗体对象及其中用到的对象,就可以了.
多谢版主
我用循环就是为了方便,可是每个循环都要手动在gui文件中添加相应的对象,请问有没有更方便的办法?作者: lantianwei 时间: 2007-9-28 09:47
建议使用描述性编程,请参照http://bbs.51testing.com/thread-84070-1-1.html作者: ly60 时间: 2007-9-28 09:56
好的,我去学习一下,不胜感激