51Testing软件测试论坛
标题:
password_edit_set(),提示error:illegal parameter
[打印本页]
作者:
bunny112
时间:
2006-6-20 16:42
标题:
password_edit_set(),提示error:illegal parameter
脚本如下:
table = "default.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
ddt_set_row(table,table_Row);
# Login
win_activate ("Login");
set_window ("Login", 4);
edit_set ("Agent Name:", "bunny112");
password_edit_set("Password:", ddt_val(table,"Password"));
button_press ("OK");
# Flight Reservation
set_window ("Flight Reservation", 11);
obj_mouse_drag ("#32770", 271, 137, 249, 184, LEFT);
win_close ("Flight Reservation");
}
ddt_close(table);
整了一个下午了还没有搞出来,请大家多多援助
作者:
msky1025
时间:
2006-6-21 14:39
需要先把密码转为密文password_encrypt(ddt_val(table,"Password"))
password_edit_set("Password:", password_encrypt(ddt_val(table,"Password")));
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2