51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2045|回复: 1
打印 上一主题 下一主题

[求助] loadrunner中的参数值该怎么进行处理呢?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-2-28 09:11:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
web_submit_data("getAssessPapers.jsp",
                "Action=http://192.168.1.205:8080/xmps/assess/getAssessPapers.jsp",
                "Method=POST",
                "RecContentType=text/json",
                "Referer=http://192.168.1.205:8080/xmps/run/projectMark.jsp",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=typeFields", "Value=项目类型\x1B部门\x1B专业", ENDITEM,
                "Name=typeValues", "Value=\b\x1B\b\x1B\b", ENDITEM,
                "Name=jobId", "Value=1", ENDITEM,
                "Name=assessorId", "Value={7AE4EC54-01FE-4208-806B-7D317CA34A1D}", ENDITEM,
                "Name=typeClses", "Value=String;String;Integer;String", ENDITEM,
                "Name=attrNeeds", "Value=,", ENDITEM,
                LAST);

        lr_think_time(32);

        web_submit_data("submitAssessPapers.jsp",
                "Action=http://192.168.1.205:8080/xmps/assess/submitAssessPapers.jsp",
                "Method=POST",
                "RecContentType=text/json",
                "Referer=http://192.168.1.205:8080/xmps/run/projectMark.jsp",
                "Snapshot=t4.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=dataStr", "Value={1DE8BF78-511C-41AA-BB72-3EF15F4AC5B8}:1,2,3,4,5,6,7,8,9,3,4\x1B{99AEF8E7-3D4F-4678-AFC0-0115187FF3FD}:0,0,0,0,0,0,0,0,0,0,0\x1B{45E21EF8-D190-4186-A471-733AC7B0ACDB}:0,0,0,0,0,0,0,0,0,0,0\x1B{92A79766-DA61-471A-8BAE-AE2181EE55F1}:0,0,0,0,0,0,0,0,0,0,0\x1B{D77C149F-EE36-473A-B035-DB4939DAEBAF}:0,0,0,0,0,0,0,0,0,0,0\x1B{4FEBBD75-AE7A-4B6A-8C51-204F7C795328}:0,0,0,0,0,0,0,0,0,0,0\x1B{2802A449-3DA1-4B6E-93A3-7B3DF3EDCC5D}:0,0,0,0,0,0,0,0,0,0,0\x1B"
                "{39D17988-69F1-4D0E-A49C-7330C00AFA24}:0,0,0,0,0,0,0,0,0,0,0\x1B{A302EC1A-6032-4961-8451-E8CB8135D418}:0,0,0,0,0,0,0,0,0,0,0\x1B{5FB225D5-A700-44CA-B5BF-E055FD11422E}:0,0,0,0,0,0,0,0,0,0,0\x1B{9E847C8D-3306-45B2-A4B1-DECFA4355255}:0,0,0,0,0,0,0,0,0,0,0\x1B{D929A8A0-98D2-4220-B1B5-EB6535384B4A}:0,0,0,0,0,0,0,0,0,0,0\x1B{B248752D-BCF5-43B3-8D17-06CA6F26C785}:0,0,0,0,0,0,0,0,0,0,0\x1B{76C1F6BB-70D8-4998-BA73-49638A1D7C9A}:0,0,0,0,0,0,0,0,0,0,0\x1B{CABED4B7-F728-4926-9FB2-6C7A673713E7}:0,0,0,0,0,0,0,0"
                ",0,0,0\x1B{BD44B422-089E-4BDC-8D1F-0FCF7FDEB179}:0,0,0,0,0,0,0,0,0,0,0\x1B{8D7C8A68-DB77-4253-8F79-4E22F03A110A}:0,0,0,0,0,0,0,0,0,0,0\x1B{4BB24FA0-59FB-4EE8-AF96-45074E2CE5A6}:0,0,0,0,0,0,0,0,0,0,0\x1B{029E6B09-04AD-446D-81AB-EAEC8C63279C}:0,0,0,0,0,0,0,0,0,0,0\x1B{475F8733-8C3A-45E9-A7C9-402D4844DF72}:0,0,0,0,0,0,0,0,0,0,0\x1B{FA60C60F-FB81-4585-BDFC-033D2EC4E844}:0,0,0,0,0,0,0,0,0,0,0\x1B{2D034920-C55A-4BE4-9C46-B053D4941623}:0,0,0,0,0,0,0,0,0,0,0\x1B{907907EC-BCE0-417C-BCF1-005E0EA99DBC}:0,0,0"
                ",0,0,0,0,0,0,0,0\x1B{6AE24CC1-97E3-4D8C-A2CB-9E8219D1E618}:0,0,0,0,0,0,0,0,0,0,0\x1B{FDA9B66E-5BA0-4508-B670-D0ED9059FB66}:0,0,0,0,0,0,0,0,0,0,0\x1B{AAC77E3B-CCAE-4C49-8480-FC6B35E82452}:0,0,0,0,0,0,0,0,0,0,0\x1B{4E14795F-8890-4EF7-9889-E3EFA0AD6D0B}:0,0,0,0,0,0,0,0,0,0,0\x1B{16ABBA6F-3902-4D5F-8577-3D8D44861D1B}:0,0,0,0,0,0,0,0,0,0,0\x1B{2F165B08-FDC1-4B9C-9528-00B1774C7295}:0,0,0,0,0,0,0,0,0,0,0\x1B{CB5CE0CD-1827-49A3-A126-861BA6B2EF14}:0,0,0,0,0,0,0,0,0,0,0\x1B"
                "{C24A79A5-753E-4641-8D9D-EA214CE7ADE6}:0,0,0,0,0,0,0,0,0,0,0\x1B{7F2DD5F1-C752-40DB-AA8A-CE12816AD58D}:0,0,0,0,0,0,0,0,0,0,0\x1B{5FD3393C-E6D4-4B73-9D42-BB1F108F6E08}:0,0,0,0,0,0,0,0,0,0,0\x1B{C07C57DF-4F73-454F-8D96-EBA0D5796D4A}:0,0,0,0,0,0,0,0,0,0,0\x1B{D954F2D2-C53C-4AE4-9BEA-2F8C52F12BA1}:0,0,0,0,0,0,0,0,0,0,0\x1B{E6A48FFA-3FBB-450F-969D-CB529EC24FDF}:0,0,0,0,0,0,0,0,0,0,0\x1B{C213495A-311F-4935-B40F-C594756E2261}:0,0,0,0,0,0,0,0,0,0,0\x1B{FFCC039F-5654-4159-934B-11272BF6626E}:0,0,0,0,0,0,0,0"
                ",0,0,0\x1B{39F21CBE-3D3B-4CED-A6E8-9F4CD0007703}:0,0,0,0,0,0,0,0,0,0,0\x1B{8E1A49D7-E866-41B6-AAFF-3309BC85C230}:0,0,0,0,0,0,0,0,0,0,0\x1B{089A49EE-CB12-456A-8479-AB35B26B6BD7}:0,0,0,0,0,0,0,0,0,0,0\x1B{1E5B7967-F7DD-44EA-B1A7-89F6B548B002}:0,0,0,0,0,0,0,0,0,0,0\x1B{1A2A9178-30FF-4B1D-BE3C-CB066EEF9A4D}:0,0,0,0,0,0,0,0,0,0,0\x1B{039CD2F7-01FD-4E09-928F-E27327838E29}:0,0,0,0,0,0,0,0,0,0,0", ENDITEM,
                "Name=jobId", "Value=1", ENDITEM,
                "Name=assessorId", "Value={7AE4EC54-01FE-4208-806B-7D317CA34A1D}", ENDITEM,
                "Name=typeClses", "Value=String;String;Integer;String", ENDITEM,
                "Name=examineeIdType", "Value=String", ENDITEM,
                "Name=assessItemIds", "Value=1\x1B2\x1B3\x1B4\x1B5\x1B6\x1B7\x1B8\x1B9\x1B10\x1B11", ENDITEM,
                LAST);
回放的时候,报
Action.c(53): 警告: 带有参数分隔符的字符串",0,0,0\x1B{39F21CBE-3D3B-4CED-A6E8-9F4CD0007703}:0,0,0,0,0,0,0,0,0,0,0\x1B{8E1A49D7-E866-41B6-AAFF-3309BC85C230}:0,0,0,0,0,0,0,0,0,0,0\x1B{089A49EE-CB12-456A-8479-AB35B26B6BD7}:0,0,0,0,0,0,0,0,0,0,0\x1B{1E5B7967-F7DD-44EA-B1A7-89F6B548B002}:0,0,0,0,0,0,0,0,0,0,0\x1B{1A2A9178-30FF-4B1D-BE3C-CB066EEF9A4D}:0,0,0,0,0,0,0,0,0,0,0\x1B{039CD2F7-01FD-4E09-928F-E27327838E29}:0,0,0,0,0,0,0,0,0,0,0", 不是参数。

{7AE4EC54-01FE-4208-806B-7D317CA34A1D}不是参数,所有的参数值都报这个,并且数据也没提交成功。

要对这里面的特殊字符进行转义吗?他应该是转义好了的吧,请大虾们给以解答,谢谢各位了@
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2013-2-28 09:35:42 | 只看该作者
需要转义,加个单斜杠就成了
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-22 18:11 , Processed in 0.086995 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表