51Testing软件测试论坛

标题: 苦求 学习LR志同道合之人 [打印本页]

作者: tiannianyong    时间: 2008-11-10 17:36
标题: 苦求 学习LR志同道合之人
我在厦门软件园二期。

最近学LR,用LR,感觉没进步,想找个伴。

男女不限。

欢迎高手当我的老师!~
作者: tiannianyong    时间: 2008-11-10 17:40
标题: 关联一个问题,实在找不出错误,帮个忙
服务器返回值:
---------------------------
<?xml version="1.0" encoding="GBK"?>

<root>
  <status>1</status>
  <rows>
    <row>
      <id>5512</id>
    </row>
  </rows>
</root>
-------------------------
脚本:

Action()
{
//关联函数
web_reg_save_param("user_id",
"NOTFOUND=ERROR",
                "LB=id>",
                "RB=</id>",
                "Ord=1",
                "RelFrameId=1",
                "Search=Body",
                LAST);

web_custom_request("LoadXml.action_4",
"URL=http://192.168.1.146:7001/uc/default/LoadXml.action?transaction=index.member.reg&_k_=1226302172181",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.146:7001/uc/velocity/memberReg.vm",
"Snapshot=t9.inf",
"Mode=HTML",
"EncType=text/xml; charset=UTF-8",
"Body=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22gbk%22%3F%3E%3Croot%3E%3Crows%3E%3Crow%3E%3Ckey/%3E%3CbannerBigCateg/%3E%3Cword/%3E%3CloginName%3E{loginName}%3C/loginName%3E%3Cpassword%3E111111%3C/password%3E%3ColdPassword%3E111111%3C/oldPassword%3E%3Cnickname%3E{nickname}%3C/nickname%3E%3Cemail%3EnickEmail@163.com%3C/email%3E%3Cquestion%3EPASSQUESTION%3C/question%3E%3Canswer%3EPASSANSWER%3C/answer%3E%3CvalidateCode%3E7669%3C/validateCode%3E%3Cagree%3Etrue%3C/"
"agree%3E%3CbuttonName%3E%u6CE8%A0%A0%u518C%3C/buttonName%3E%3Cid/%3E%3CselTianYear%3E1950%3C/selTianYear%3E%3CselTianMonth%3E1%3C/selTianMonth%3E%3CselTianHour%3E0%3C/selTianHour%3E%3CselTianMinute%3E0%3C/selTianMinute%3E%3C/row%3E%3C/rows%3E%3C/root%3E",
LAST);

web_custom_request("LoadXml.action_5",
"URL=http://192.168.1.146:7001/uc/default/LoadXml.action?transaction=authority.user.add&_k_=1226302172655",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.1.146:7001/uc/velocity/memberReg.vm",
"Snapshot=t10.inf",
"Mode=HTML",
"EncType=text/xml; charset=UTF-8",
"Body=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22gbk%22%3F%3E%3Croot%3E%3Crows%3E%3Crow%3E%3Ckey/%3E%3CbannerBigCateg/%3E%3Cword/%3E%3CloginName%3E{loginName}%3C/loginName%3E%3Cpassword%3E111111%3C/password%3E%3ColdPassword%3E111111%3C/oldPassword%3E%3Cnickname%3E{nickname}%3C/nickname%3E%3Cemail%3EnickEmail@163.com%3C/email%3E%3Cquestion%3EPASSQUESTION%3C/question%3E%3Canswer%3EPASSANSWER%3C/answer%3E%3CvalidateCode%3E7669%3C/validateCode%3E%3Cagree%3Etrue%3C/"
"agree%3E%3CbuttonName%3E%u6CE8%A0%A0%u518C%3C/buttonName%3E%3Cid%3E{user_id}%3C/id%3E%3CselTianYear%3E1950%3C/selTianYear%3E%3CselTianMonth%3E1%3C/selTianMonth%3E%3CselTianHour%3E0%3C/selTianHour%3E%3CselTianMinute%3E0%3C/selTianMinute%3E%3C/row%3E%3C/rows%3E%3C/root%3E",
LAST);
/*
lr_output_message("*******************************************");
lr_output_message("user_id=%s", lr_eval_string("user_id"));

    lr_end_transaction("reg", LR_AUTO);
*/
return 0;
}

我这么设置怎么是错误的???
----------------------------------
Action.c(12): Error -26377: No match found for the requested parameter "user_id". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size   [MsgId: MERR-26377]
Action.c(12): web_custom_request("LoadXml.action_4") highest severity level was "ERROR", 361 body bytes, 314 header bytes, 16 chunking overhead bytes   [MsgId: MMSG-26387]
Ending action Action.

帮我看一下吧,谢谢哦
作者: gp_jl    时间: 2008-11-11 15:24
1.将关联函数保存长度设置长点下,好像是超长度;
2.将lr_output_message("user_id=%s", lr_eval_string("user_id"));修改为:lr_output_message("user_id=%s", lr_eval_string("{user_id}"));试下关联函数she

[ 本帖最后由 gp_jl 于 2008-11-11 16:41 编辑 ]
作者: iori    时间: 2008-11-11 16:23
web_custom_request("LoadXml.action_4", )中为什么不关联?
作者: Old々Man    时间: 2008-11-17 15:32
关联XML文件时不要选择BODY
作者: 026300    时间: 2008-11-17 15:41
原帖由 Old々Man 于 2008-11-17 15:32 发表
关联XML文件时不要选择BODY



为什么这么说?
作者: tiannianyong    时间: 2009-2-23 10:31
厦门没人在软件园做性能测试的吗???




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2