|
6#
楼主 |
发表于 2010-2-1 15:24:48
|
只看该作者
我具体说说我的问题 并贴上图 我点击图01的左边列表的危险化学品,会加载出右边的增删改查等按钮,并且还加载5万多条已经存在的记录,开发说这个是异步加载的,如图01。我录了脚本,并作为一个事务,代码如下:
lr_start_transaction("2打开化学危险品界面");
web_url("risDangerbm!queryList.action",
"URL=http://192.168.253.65:8080/EmeSys/risDangerbm!queryList.action",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=App_Themes/Standard/Images/divButtonLeftTitle.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonFunctionAdd.gif", ENDITEM,
"Url=App_Themes/Standard/Images/tableSearchTitle.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonFunctionEdit.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonFunctionDelete.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonSetSearch.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonSearch.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonSearchMoreDown.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/GridView/Images/trHead.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonSetTableColumn.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/Window/Images/Loading.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/GridView/Images/trFoot.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/GridView/Images/SelectedArrowhead.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonFunctionEdit_Hover.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonFunctionAdd_Hover.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/Window/Images/tdMax.gif", ENDITEM,
"Url=App_Themes/Standard/jQuery/Window/Images/tdClose_Hover.gif", ENDITEM,
"Url=App_Themes/Standard/Images/Button/buttonSearch_Hover.gif", ENDITEM,
LAST);
web_submit_data("risDangerbmJson!queryList.action",
"Action=http://192.168.253.65:8080/EmeSys/risDangerbmJson!queryList.action",
"Method=POST",
"RecContentType=application/json",
"Referer=http://192.168.253.65:8080/EmeSys/risDangerbm!queryList.action",
"Snapshot=t8.inf",
"Mode=HTML",
ITEMDATA,
"Name=PageSize", "Value=20", ENDITEM,
"Name=PageNow", "Value=1", ENDITEM,
"Name=cHXWXPNameTitle", "Value=", ENDITEM,
"Name=cHXWXPName", "Value=", ENDITEM,
"Name=cFKHXWXPLB", "Value=", ENDITEM,
"Name=cFKYDHXPLBBM", "Value=", ENDITEM,
"Name=cFKFXDJSBBM", "Value=", ENDITEM,
LAST);
lr_end_transaction("2打开化学危险品界面",LR_AUTO);
但是回放的时候我启动了浏览器同步,看到只显示了部分内容如图02,下面的5万多条的记录根本不显示,只返回了一串奇怪的没解析的东西,如图03,因此脚本放到场景中的时候测出来这个事务的响应时间是相当的快,0.4秒左右。但是我实际感觉了一下把5万多条数据加载出来得4秒钟。 |
|