|
本帖最后由 sunpsyche1016 于 2010-11-3 15:55 编辑
对于一个用ajax开发bs的系统
是应该选择
ajax(click&script)
还是
WEB(Http/Html)
呢?
用ajax(click&script)录制的脚本:
Action()
{
web_browser("its",
DESCRIPTION,
ACTION,
"Navigate=http://192.168.120/its",
LAST);
lr_think_time(4);
web_edit_field("login.username",
"Snapshot=t9.inf",
DESCRIPTION,
"Type=text",
"Name=login.username",
ACTION,
"SetValue={NewParam}",
LAST);
lr_think_time(4);
web_edit_field("login.password",
"Snapshot=t10.inf",
DESCRIPTION,
"Type=password",
"Name=login.password",
ACTION,
"SetEncryptedValue=4cd0fd740281ef7e5880",
LAST);
web_button("INPUT",
"Snapshot=t11.inf",
DESCRIPTION,
"Type=button",
"Tag=INPUT",
"ID=dl",
ACTION,
"UserAction=Click",
LAST);
web_browser("Sync",
"Snapshot=t12.inf",
DESCRIPTION,
ACTION,
"Sync",
LAST);
return 0;
}
回放的时候和运行场景的时候出错 |
|