oho 发表于 2011-8-31 16:37:35

loadrunner 手动关联无法确定边界

用windff找到两个脚本的不同值是:
web_submit_data("acq0101g0!checkLockData.do",
                "Action=http://172.16.1.93:81/pmw/rpt/acq0101g0!checkLockData.do",
                "Method=POST",
                "RecContentType=application/json",
                "Referer=http://172.16.1.93:81/pmw/rpt/acq0101g0!init_d.do",
                "Snapshot=t10.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=taskListId", "Value=j000000027a", ENDITEM,
                LAST);
在generationLog里面查找j000000027a第一次出现在:
****** Response Body For Transaction With Id 184 ******
{"acq0101g0Vo":{"auditTime":null,"auditUnitId":null,"auditUser":null,"beforeAfterDays":null,"beforeAfterReason":null,"collectTime":null,"collectUser":null,"dataExceptionFlg":null,"dataPeriod":null,"endTime":null,"exceptionFlg":null,"execStatus":"10,20","execUnitId":"646400","id":null,"nochangePeriods":null,"order":"TASK_ID desc","publishUnitId":null,"reportStatus":"10,40","reportTime":null,"reportType":"","reportTypeList":[{"key":"A01","value":"鏃ユ姤"},{"key":"A02","value":"鍛ㄦ姤"},{"key":"A03","value":"鏃姤"},{"key":"A04","value":"鍗婃湀鎶\xA5"},{"key":"A05","value":"鏈堟姤"},{"key":"A06","value":"涓ゆ湀鎶\xA5"},{"key":"A07","value":"瀛f姤"},{"key":"A08","value":"鍗婂勾鎶\xA5"},{"key":"A09","value":"骞存姤"}],"reportUser":null,"startTime":null,"taskId":null,"taskName":"","taskPid":null,"templateName":"","timeExceptionFlg":null,"urgentStatus":null},"curPage":1,"pageSize":10,"recordList":[{"reportType":"A01","beforeAfterDays":2,"reportUser":null,"auditUnitId":null,"dataPeriod":"201108290800","beforeAfterReason":null,"auditUser":null,"endTime":"2011-08-29 11:00","taskName":"涓\x80鍛ㄦ掣宸炴补浠\xB7","exceptionFlg":"10","id":"j000000027a","reportTime":null,"startTime":"2011-08-29 08:00",
$$$$$$ Response Body For Transaction With Id 184 Ended $$$$$$

这样怎么确定边界啊?

JOANNE 发表于 2011-8-31 16:58:46

左边界"id":"
右边界",

oho 发表于 2011-8-31 17:26:12

额~这么简单,我试试,谢谢啦

wsbuaa 发表于 2011-9-1 09:13:57

在函数中填的话,左边界应当是\"id\":\"
右边界应当是   \",
引号是特殊字符,前面要加转义符\

Ferry178 发表于 2011-9-1 10:57:52

领教了
页: [1]
查看完整版本: loadrunner 手动关联无法确定边界