51Testing软件测试论坛
标题:
请教高人解决数据关联的问题.
[打印本页]
作者:
angel_wu
时间:
2007-4-20 14:46
标题:
请教高人解决数据关联的问题.
在做数据关联时,有的地方自动关联是不能检测出来的,需要手动建关联..比如一个出库单列表,为了虚拟多个用户选择某一出库单(暂时定为出库单编号为001)进行操作时的系统负载,我们录制了脚本,但是,001出库单在列表中的顺序是变化的,每次打开时显示的行数据都不确定,这就需要做关联..
现在我将脚本和日志贴出来,希望有人可以帮我解决
脚本一.
eb_submit_data("confirmOutputSheet.do",
"Action=http://192.168.3.242:9080/webapp/lmss_logisticsmanage/confirmOutputSheet.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.3.242:9080/webapp/lmss_logisticsmanage/viewOutputSheet.do?outputSheetId=4028837211df6b820112032794fc5e3b",
"Snapshot=t23.inf",
"Mode=HTML",
ITEMDATA,
"Name=outputSheetId", "Value=4028837211df6b820112032794fc5e3b", ENDITEM,
"Name=cardCategoryId", "Value=4028837211df6b820111df9f75fe00ab", ENDITEM,
web_reg_save_param("getchedIndex",web_submit_data("confirmOutputSheet.do"),LAST),
"Name=checkedIndex", "Value=0", ENDITEM
, **
这是出库单所在的行
"Name=storeRecordId", "Value=4028837211df6b820112027eb00c5e27", ENDITEM,
"Name=num", "Value=1", ENDITEM,
"Name=startNumber", "Value={NewParam_2}", ENDITEM,
"Name=endNumber", "Value={{NewParam_3}", ENDITEM,
"Name=storeRecordId", "Value=4028837211df6b820111fe23eb8e34e9", ENDITEM,
"Name=startNumber", "Value=", ENDITEM,
"Name=endNumber", "Value=", ENDITEM,
"Name=storeRecordId", "Value=4028837211df6b820111fe15ba5132cf", ENDITEM,
"Name=startNumber", "Value=", ENDITEM,
"Name=endNumber", "Value=", ENDITEM,
"Name=storeRecordId", "Value=4028837211df6b820111fe15ba5132d0", ENDITEM,
"Name=startNumber", "Value=", ENDITEM,
"Name=endNumber", "Value=", ENDITEM,
"Name=storeRecordId", "Value=4028837211df6b820111fe44b7203502", ENDITEM,
"Name=startNumber", "Value=", ENDITEM,
"Name=endNumber", "Value=", ENDITEM,
"Name=isMainPage", "Value=true", ENDITEM,
"Name=_Action_Button_Name", "Value=确认出库", ENDITEM,
LAST);
现在的总是是,怎么做关联使得每次虚拟用户进入列表,都能自动找到出库单001的行号,选中其所在行的选择框,进行数据录入???
求大侠帮忙分析
作者:
angel_wu
时间:
2007-4-20 14:48
log很长,我只截取一部分..贴出来sdlkfj9
Action.c(207): web_submit_data("outputSheetList.do") 已启用 [MsgId: MMSG-26355]
Action.c(207): t=65530ms: Already connected to 192.168.3.242:9080 [MsgId: MMSG-26000]
Action.c(207): “
http://192.168.3.242:9080/webapp ... /outputSheetList.do
”(RelFrameId=1)的 t=65535ms: 490 个字节请求标头
Action.c(207): POST /webapp/lmss_logisticsmanage/outputSheetList.do HTTP/1.1\r\n
Action.c(207): Content-Type: application/x-www-form-urlencoded\r\n
Action.c(207): Cache-Control: no-cache\r\n
Action.c(207): Referer:
http://192.168.3.242:9080/webapp ... tputSheetProcess.do
Action.c(207): \r\n
Action.c(207): User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\n
Action.c(207): Accept-Encoding: gzip, deflate\r\n
Action.c(207): Accept-Language: zh-cn\r\n
Action.c(207): Accept: */*\r\n
Action.c(207): Connection: Keep-Alive\r\n
Action.c(207): Host: 192.168.3.242:9080\r\n
Action.c(207): Cookie: JSESSIONID=0000prun-gQlFDlK2iJejxcQ7ox:-1\r\n
Action.c(207): Content-Length: 48\r\n
Action.c(207): \r\n
Action.c(207): “
http://192.168.3.242:9080/webapp ... /outputSheetList.do
”(RelFrameId=1)的 t=65595ms: 48 个字节请求正文
Action.c(207): isMainPage=true&_Action_Button_Name=%B7%B5%BB%D8
Action.c(207): “
http://192.168.3.242:9080/webapp ... /outputSheetList.do
”(RelFrameId=1)的 t=66319ms: 189 个字节响应标头
Action.c(207): HTTP/1.1 200 OK\r\n
Action.c(207): Content-Type: text/html; charset=GBK\r\n
Action.c(207): Content-Language: zh-CN\r\n
Action.c(207): Transfer-Encoding: chunked\r\n
Action.c(207): Date: Fri, 20 Apr 2007 05:35:17 GMT\r\n
Action.c(207): Server: WebSphere Application Server/6.1\r\n
Action.c(207): \r\n
Action.c(207): “
http://192.168.3.242:9080/webapp ... /outputSheetList.do
”(RelFrameId=1)的 t=66366ms: 5 个字节成块响应开销
Action.c(207): d5a\r\n
Action.c(207): “
http://192.168.3.242:9080/webapp ... /outputSheetList.do
”(RelFrameId=1)的 t=66373ms: 3418 个字节成块响应正文
Action.c(207): \r\n
Action.c(207): \r\n
Action.c(207): \r\n
Action.c(207): \r\n
Action.c(207): \r\n
Action.c(207): <html>\r\n
Action.c(207): <head>\r\n
Action.c(207): \r\n
Action.c(207): <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\r\n
Action.c(207): <meta http-equiv="Accept-Encoding" content="gzip">\r\n
Action.c(207): \r\n
Action.c(207): <title>卡业务管理系统--出库单列表</title>\r\n
Action.c(207): \r\n
Action.c(207): <link REL="StyleSheet" HREF="../css/style.css" TYPE="text/css" />\r\n
Action.c(207): <link REL="StyleSheet" HREF="../css/DatePicker.css" TYPE="text/css" />\r\n
Action.c(207): \r\n
Action.c(207): <meta http-equiv="Content-Type" content="text/html; charset=gb2312">\r\n
Action.c(207): \r\n
Action.c(207): \r\n
Action.c(207): <LINK media=all href="../css/style.css" type=text/css rel=stylesheet>\r\n
Action.c(207): <LINK media=all href="../css/extremecomponents.css" type=text/css rel=stylesheet>\r\n
Action.c(207): <script>\r\n
Action.c(207): \t\teventPool = new Array();\r\n
Action.c(207): </script>\r\n
Action.c(207): \r\n
Action.c(207): <script language="javascript" src="../core/commons.js"></script>\r\n
Action.c(207): <script language="jscript" src="../core/commonBodyJS.js"></script>\r\n
Action.c(207): <script language="jscript" src="../core/Check.js"></script>\r\n
Action.c(207): <script language="jscript" src="../core/DatePicker.js"></script>\r\n
Action.c(207): <script type='text/javascript' src='../dwr/interface/DataProvider.js'></script>\r\n
Action.c(207): <script type='text/javascript' src='../dwr/engine.js'></script>\r\n
Action.c(207): <script language="javascript" src="../dwr/util.js"></script>\r\n
Action.c(207): <script language="javascript" src="../core/prototype_1.5.js"></script>\r\n
Action.c(207): <script language="javascript" src="../core/demo.js"></script>\r\n
Action.c(207): <script type='text/javascript' src='../dwr/interface/ChangeRoles.js'></script>\r\n
Action.c(207): <script language="JScript" event="onload" for="window">\r\n
Action.c(207): \t\ttry\r\n
Action.c(207): \t\t{\r\n
Action.c(207): \t\t\t//判断上个页面是否有打开的菜单,如果在当前页面有同样的菜单,则展开\r\n
Action.c(207): \t\t var preSelected = getCookie("Cudes_Selected_Menu");\r\n
Action.c(207): \t\t if(preSelected)\r\n
Action.c(207): \t\t {\r\n
Action.c(207): \t\t if( categoryMenu.length)\r\n
Action.c(207): \t\t {\r\n
Action.c(207): \t\tfor(i=0;i<categoryMenu.length;i++)\r\n
Action.c(207): \t\t{\r\n
Action.c(207): \t\t\tif(preSelected == categoryMenu
.innerText)\r\n
Action.c(207): \t\t\t{\r\n
Action.c(207): \timgObj = categoryMenu
.previousSibling.firstChild;\r\n
Action.c(207): \tsubMenuObj = categoryMenu
.parentNode.nextSibling;\r\n
Action.c(207): \t\timgObj.src='../images/menu_img_open.gif';\r\n
Action.c(207): \t\tsubMenuObj.style.display='block';\r\n
Action.c(207): \t\tspread\t\t=\t1;\r\n
Action.c(207): \t\tbreak;\r\n
作者:
angel_wu
时间:
2007-4-20 14:48
请大家积极发言,给我一个建议
作者:
Zee
时间:
2007-4-20 15:04
做个关联。
作者:
colin_zhang
时间:
2007-4-21 09:50
做关联是要注意了,一定要是服务器到客户端的变量,不然在录制时会出错的哈
作者:
rting
时间:
2007-4-22 20:43
我也遇到这种问题,还没解决!
作者:
angel_wu
时间:
2007-4-23 08:44
发表于 2007-4-20 15:04 资料 个人空间 短消息 加为好友
做个关联。
自动关联不行,我试用,怎么进行手动关联啊?希望不吝剌教
作者:
angel_wu
时间:
2007-4-23 09:09
我的QQ号38551994,加我
作者:
Zee
时间:
2007-4-23 09:23
手动关联。论坛有很多帖。
作者:
leay
时间:
2007-4-23 09:39
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2