kavensyw 发表于 2009-10-5 16:21:02

看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,Status:Pass,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:42

看看btn_CNFDOC_proper_state是不是一个字符串常量阿
页: [1]
查看完整版本: 看sample tests的一点疑问