51Testing软件测试论坛

标题: 看sample tests的一点疑问 [打印本页]

作者: kavensyw    时间: 2009-10-5 16:21
标题: 看sample tests的一点疑问
一些函数中参数带下划线的格式如何理解或对应,
如:
脚本:
# Using win_check_gui() to verify that buttons are in correct state
rc = win_check_gui ("Open Order", "buttons.ckl", "Ord_ON", 2);
if (rc != E_OK)
        tl_step (order_num_checked, FAIL, btn_enabled_instead_of_disabled);
else
        tl_step (order_num_checked, PASS, btn_CNFDOC_proper_state);
测试结果中显示:
Step:Order No. Checked,Statusass,Description:Customer Name,Flight Date,OK,and Cancel were in the proper state.
其中的
order_num_checked与Order No. Checked;
btn_CNFDOC_proper_state与Customer Name,Flight Date,OK,and Cancel were in the proper state
是按什么规则对应的,有winrunner自带的这方面帮助吗?
作者: lantianwei    时间: 2009-10-8 11:40
看看btn_CNFDOC_proper_state是不是一个字符串常量阿




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2