<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《LoadRunner模拟客户端发送JSON格式的请求》的评论</title>
	<atom:link href="http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/feed/" rel="self" type="application/rss+xml" />
	<link>http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=json-format-request-using-loadrunner</link>
	<description>软件测试，自动化测试，白盒测试，Python</description>
	<lastBuildDate>Wed, 18 Jan 2012 09:08:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>作者：magus</title>
		<link>http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/comment-page-1/#comment-4792</link>
		<dc:creator>magus</dc:creator>
		<pubDate>Wed, 01 Jun 2011 12:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://magustest.com/blog/?p=249#comment-4792</guid>
		<description>我记得是不需要用web_reg_save_param的</description>
		<content:encoded><![CDATA[<p>我记得是不需要用web_reg_save_param的</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：andy</title>
		<link>http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/comment-page-1/#comment-4712</link>
		<dc:creator>andy</dc:creator>
		<pubDate>Sun, 29 May 2011 03:38:51 +0000</pubDate>
		<guid isPermaLink="false">http://magustest.com/blog/?p=249#comment-4712</guid>
		<description>请教下，接收的json串，lr会放到缓存中吗，还是需要使用web_reg_save_param函数保存</description>
		<content:encoded><![CDATA[<p>请教下，接收的json串，lr会放到缓存中吗，还是需要使用web_reg_save_param函数保存</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：magus</title>
		<link>http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/comment-page-1/#comment-464</link>
		<dc:creator>magus</dc:creator>
		<pubDate>Thu, 01 Jul 2010 12:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://magustest.com/blog/?p=249#comment-464</guid>
		<description>如果你发的请求就是贴在这里的代码的话，是不是双引号有问题？我贴出来以后看双引号是中文符号的双引号，不是英文的。</description>
		<content:encoded><![CDATA[<p>如果你发的请求就是贴在这里的代码的话，是不是双引号有问题？我贴出来以后看双引号是中文符号的双引号，不是英文的。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：weilin</title>
		<link>http://magustest.com/blog/loadtest/json-format-request-using-loadrunner/comment-page-1/#comment-460</link>
		<dc:creator>weilin</dc:creator>
		<pubDate>Wed, 30 Jun 2010 01:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://magustest.com/blog/?p=249#comment-460</guid>
		<description>你好请教你个问题，我现在做JSON数据的接口性能测试：如下
写的脚本如下：
Action()
{
        web_custom_request(&quot;request1&quot;
        
        &quot;URL = http://61.145.165.154:8080/uc/json&quot;,
        &quot;Method = POST&quot;,

        &quot;Resource=1&quot;,
        &quot;RecContentType = uc/json&quot;,
        &quot;EncType = uc/json&quot;,
        &quot;Mode = HTTP&quot;,
        RAW_BODY_START,
    // &quot;{action:\&quot;DeviceActive\&quot;,device:{deviceid:\&quot;abc\&quot;,        devmodel:\&quot;abc\&quot;}}&quot;,
        //&quot;body = deviceid = b90f632d06cf51a176c36be73cb725d516d7c77f&quot;
    &quot;{action:\&quot;DeviceActive\&quot;,        device:{deviceid:\&quot;b90f632d06cf51a176c36be73cb725d516d7c77f\&quot;,devmodel:\&quot;1\&quot;}}&quot;,
    //&quot;{device:{deviceid:\&quot;b90f632d06cf51a176c36be73cb725d516d7c77f\&quot;,devmodel:\&quot;1\&quot;}}&quot;
        //55,
        RAW_BODY_END,
        LAST);

        //return 0;
}
运行报如下错：
Action.c(3): Error -27226: The &quot;Method = POST&quot; argument (number 2) is unrecognized or misplaced          [MsgId: MERR-27226]
Action.c(3): web_custom_request(&quot;request1URL = http://61.145.165.154:8080/uc/json&quot;) highest severity level was &quot;ERROR&quot;, 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]

请指教谢谢！</description>
		<content:encoded><![CDATA[<p>你好请教你个问题，我现在做JSON数据的接口性能测试：如下<br />
写的脚本如下：<br />
Action()<br />
{<br />
        web_custom_request(“request1&#8243;</p>
<p>        “URL = <a href="http://61.145.165.154:8080/uc/json" rel="nofollow">http://61.145.165.154:8080/uc/json</a>“,<br />
        “Method = POST”,</p>
<p>        “Resource=1&#8243;,<br />
        “RecContentType = uc/json”,<br />
        “EncType = uc/json”,<br />
        “Mode = HTTP”,<br />
        RAW_BODY_START,<br />
    // “{action:\”DeviceActive\”,device:{deviceid:\”abc\”,        devmodel:\”abc\”}}”,<br />
        //”body = deviceid = b90f632d06cf51a176c36be73cb725d516d7c77f”<br />
    “{action:\”DeviceActive\”,        device:{deviceid:\”b90f632d06cf51a176c36be73cb725d516d7c77f\”,devmodel:\”1\”}}”,<br />
    //”{device:{deviceid:\”b90f632d06cf51a176c36be73cb725d516d7c77f\”,devmodel:\”1\”}}”<br />
        //55,<br />
        RAW_BODY_END,<br />
        LAST);</p>
<p>        //return 0;<br />
}<br />
运行报如下错：<br />
Action.c(3): Error -27226: The “Method = POST” argument (number 2) is unrecognized or misplaced          [MsgId: MERR-27226]<br />
Action.c(3): web_custom_request(“request1URL = <a href="http://61.145.165.154:8080/uc/json" rel="nofollow">http://61.145.165.154:8080/uc/json</a>“) highest severity level was “ERROR”, 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]</p>
<p>请指教谢谢！</p>
]]></content:encoded>
	</item>
</channel>
</rss>

