<?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/</link>
	<description>关注软件测试，白盒测试，自动化测试，性能测试</description>
	<lastBuildDate>Thu, 26 Aug 2010 19:07:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.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-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(&#8220;request1&#8243;</p>
<p>        &#8220;URL = <a href="http://61.145.165.154:8080/uc/json" rel="nofollow">http://61.145.165.154:8080/uc/json</a>&#8220;,<br />
        &#8220;Method = POST&#8221;,</p>
<p>        &#8220;Resource=1&#8243;,<br />
        &#8220;RecContentType = uc/json&#8221;,<br />
        &#8220;EncType = uc/json&#8221;,<br />
        &#8220;Mode = HTTP&#8221;,<br />
        RAW_BODY_START,<br />
    // &#8220;{action:\&#8221;DeviceActive\&#8221;,device:{deviceid:\&#8221;abc\&#8221;,        devmodel:\&#8221;abc\&#8221;}}&#8221;,<br />
        //&#8221;body = deviceid = b90f632d06cf51a176c36be73cb725d516d7c77f&#8221;<br />
    &#8220;{action:\&#8221;DeviceActive\&#8221;,        device:{deviceid:\&#8221;b90f632d06cf51a176c36be73cb725d516d7c77f\&#8221;,devmodel:\&#8221;1\&#8221;}}&#8221;,<br />
    //&#8221;{device:{deviceid:\&#8221;b90f632d06cf51a176c36be73cb725d516d7c77f\&#8221;,devmodel:\&#8221;1\&#8221;}}&#8221;<br />
        //55,<br />
        RAW_BODY_END,<br />
        LAST);</p>
<p>        //return 0;<br />
}<br />
运行报如下错：<br />
Action.c(3): Error -27226: The &#8220;Method = POST&#8221; argument (number 2) is unrecognized or misplaced          [MsgId: MERR-27226]<br />
Action.c(3): web_custom_request(&#8220;request1URL = <a href="http://61.145.165.154:8080/uc/json" rel="nofollow">http://61.145.165.154:8080/uc/json</a>&#8220;) highest severity level was &#8220;ERROR&#8221;, 0 body bytes, 0 header bytes          [MsgId: MMSG-26388]</p>
<p>请指教谢谢！</p>
]]></content:encoded>
	</item>
</channel>
</rss>
