ajax协议 页面响应时间的问题
用loadrunner的ajax协议录制的脚本,页面操作过程是:访问http://abc/testPage.aspx 页面,点击页面中的 请登录链接,后弹出登录层,填写用户名和密码后点击登录后,页面打开一个ajax写的一个表单填写的页面,里面有很多项(下面的代码只截取了前几项),填写表单信息。我现在想得到这个表单填写页面的整个页面下载时间,这样定义事务对吗?得到的是整个表单也的下载时间吗?望大家赐教!
web_browser("testPage.aspx",
DESCRIPTION,
ACTION,
"Navigate=http://abc/testPage.aspx",
LAST);
web_browser("Verification",
"Snapshot=t2.inf",
DESCRIPTION,
VERIFICATION,
"BrowserTitle=myhello!",
LAST);
web_text_link("[请登录]",
"Snapshot=t2.inf",
DESCRIPTION,
"Text=[请登录]",
ACTION,
"UserAction=Click",
LAST);
web_edit_field("txtLoginUsername",
"Snapshot=t3.inf",
DESCRIPTION,
"Type=text",
"Name=txtLoginUsername",
ACTION,
"SetValue=testusername",
LAST);
web_edit_field("txtLoginPwd",
"Snapshot=t4.inf",
DESCRIPTION,
"Type=password",
"Name=txtLoginPwd",
ACTION,
"SetEncryptedValue=4a261c5bffa875a556ce443f",
LAST);
lr_start_transaction("表单页");
web_edit_field("txtLoginPwd_2",
"Snapshot=t5.inf",
DESCRIPTION,
"Type=password",
"Name=txtLoginPwd",
ACTION,
"FireEvent=onfocus",
LAST);
web_button("INPUT",
"Snapshot=t6.inf",
DESCRIPTION,
"Type=button",
"Tag=INPUT",
"ID=btnLogin",
ACTION,
"UserAction=Click",
LAST);
lr_end_transaction("表单页",LR_AUTO);
web_edit_field("txtName", //填写表单中的姓名
"Snapshot=t7.inf",
DESCRIPTION,
"Type=text",
"Name=txtName",
ACTION,
"SetValue=testname",
LAST);
web_radio_group("rdSex", //选择表单中的性别项
"Snapshot=t8.inf",
DESCRIPTION,
"Name=rdSex",
ACTION,
"SelectValue=0",
LAST);
"Ordinal=1",
ACTION,
"UserAction=Click",
LAST); 没人回复吗?:Q “填写用户名和密码后点击登录后,页面打开一个ajax写的一个表单填写的页面”
登陆完成就直接加载到表单填写的页面了? 不一定很可靠
页:
[1]