2 u012480995 u012480995 于 2014.12.03 15:25 提问

loadrunner关联函数获取id报错,请问左右边界该怎么写



96
UN0096
第一
                                            </td>
                                            <td>
                                                    <span class="red">否</span>

                                            </td>
                                            <td>未知 </td>
                                            <td>未知</td>
                                            <td>未知</td>
                                            <td>ddd</td>
                                            <td>010-85261082</td>
                                            <td>13521327898</td>
                                            <td style="font-size: 12px;">
                                                <div class="hidden-phone visible-desktop action-buttons">

                                                    <a target="_blank" title="详情" class="green" href="/Assoc/Unit/Details/96">
                                                        <i class="icon-pencil bigger-130"></i>详情</a>

                                                </div>
                                            </td>
                                        </tr>                        
                                        <tr>
                                            <td>95</td>
                                            <td>UN0095</td>
                                            <td>33333

                                            </td>
                                            <td>
                                                    <span class="red">否</span>

                                            </td>
                                            <td>未知 </td>
                                            <td>未知</td>
                                            <td>未知</td>
                                            <td>ddddddd</td>
                                            <td>010-85261258</td>
                                            <td>13521327898</td>
                                            <td style="font-size: 12px;">
                                                <div class="hidden-phone visible-desktop action-buttons">

                                                    <a target="_blank" title="详情" class="green" href="/Assoc/Unit/Details/95">
                                                        <i class="icon-pencil bigger-130"></i>详情</a>

                                                </div>
                                            </td>
                                        </tr>           


        我现在要通过关联函数,获取96,95.....(是id号)的值。
        关联函数:
            web_reg_save_param_ex(
    "ParamName=FindId",
    "LB=<tr>\r\n<td>",
    "RB=</td>\r\n<td>UN",
    SEARCH_FILTERS,
    "Scope=ALL",
    "ContentType=text/html",
    LAST);


    运行结果报错:
    FindAction.c(59): Error -35061: No match found for the requested parameter "FindId". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 9999 bytes, use web_set_max_html_param_len to increase the parameter size    [MsgId: MERR-35061]

FindAction.c(59): web_submit_data("Unit") highest severity level was "ERROR", 4076 body bytes, 306 header bytes [MsgId: MMSG-26388]

请大家帮帮忙,指点一下。是不是左右边界写的不对。该怎样写?

1个回答

lzp_lrp
lzp_lrp   Ds   Rxr 2015.01.09 08:47

问题出在
web_reg_save_param_ex(
"ParamName=FindId",
"LB=

\r\n",
"RB=\r\nUN",
SEARCH_FILTERS,
"Scope=ALL",
"ContentType=text/html",
LAST);
这里了
你在run-time setting --log--always send messages --extended log 中把parameter substitution 勾上,运行,查看FindId这个参数的值。
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!