jmeter.properties配置

jmeter配置文件中关于保存jtl参数对应jtl文件结果显示,修改jmeter.properties,中下列下面是属性值,对应测试结果jtl 文件显示内容


jmeter.save.saveservice.data_type=true
<httpSample t="1058" lt="1058" ts="1474342023348" s="true" lb="HTTP璇锋?" rc="200" rm="OK" tn="绾跨?5" dt="text" by="259" ng="1" na="1"/>

jmeter.save.saveservice.response_data=true
<httpSample t="44" lt="44" ts="1474342484479" s="true" lb="HTTP璇锋?" rc="200" rm="OK" tn="绾跨?缁.1t="text" by="259" ng="2" na="2">
  <responseData class="java.lang.String">{&quot;resultStatus&quot;:1,&quot;status&quot;:1,&quot;data&quot;:{&quot;data&quot;:{}}}</responseData>

jmeter.save.saveservice.response_data.on_error=true
<responseData class="java.lang.String">org.apache.http.conn.HttpHostConnectException: Connection to http://www.baidu.com refused
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
        at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
        at org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:107)
        at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:643)
        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
        at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:517)
        at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:331)
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1146)
        at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1135)
        at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:434)
        at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:261)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
        ... 14 more


jmeter.save.saveservice.samplerData=true
<httpSample t="99" lt="76" ts="1474356548379" s="false" lb="interface_one" rc="503" rm="路镁?帽??路n="绾跨?缁.1-3" dt="text" by="2589" ng="3" na="3">
  <cookies class="java.lang.String"></cookies>
  <method class="java.lang.String">GET</method>
  <queryString class="java.lang.String"></queryString>
</httpSample>


jmeter.save.saveservice.responseHeaders=true
<httpSample t="135" lt="135" ts="1474356690576" s="true" lb="interface_one" rc="200" rm="OK" tn="绾跨? 1-1" dt="text" by="660" ng="3" na="3">
  <responseHeader class="java.lang.String">HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 405
Accept-Ranges: bytes
Server: HFS 2.3 beta
Set-Cookie: HFS_SID=0.58718928671442; path=/;
Last-Modified: Wed, 03 Aug 2016 07:09:54 GMT
Content-Disposition: filename=&quot;jsondatedemo.txt&quot;;
</responseHeader>
</httpSample>


jmeter.save.saveservice.requestHeaders=true
<httpSample t="135" lt="135" ts="1474356776748" s="true" lb="interface_one" rc="200" rm="OK" tn="绾跨? 1-2" dt="text" by="661" ng="3" na="3">
  <requestHeader class="java.lang.String">Connection: keep-alive
Host: 10.58.100.90
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
</requestHeader>
</httpSample>


jmeter.save.saveservice.encoding=true
<httpSample t="103" lt="102" ts="1474356836713" s="true" lb="interface_one" rc="200" rm="OK" tn="绾跨? 1-3" dt="text" de="" by="660" ng="3" na="3"/>
<httpSample t="161" lt="161" ts="1474356836672" s="false" lb="interface_one" rc="503" rm="路镁?帽?? tn="绾跨?缁.1-2" dt="text" de="GB2312" by="2589" ng="3" na="3"/>


jmeter.save.saveservice.url=true
<httpSample t="144" lt="144" ts="1474356991820" s="true" lb="interface_one" rc="200" rm="OK" tn="绾跨? 1-1" dt="text" by="661" ng="3" na="3">
  <java.net.URL>http://10.58.100.90/jsondatedemo.txt</java.net.URL>
</httpSample>

jmeter.save.saveservice.filename=true
<httpSample t="24" lt="24" ts="1474357124627" s="true" lb="interface_two" rc="200" rm="OK" tn="绾跨?缁-3" dt="text" by="661" ng="3" na="3">
  <responseFile class="java.lang.String"></responseFile>
</httpSample>


jmeter.save.saveservice.hostname=true
<httpSample t="135" lt="135" ts="1474357200117" s="true" lb="interface_one" rc="200" rm="OK" tn="绾跨? 1-2" dt="text" by="661" ng="3" na="3" hn="vm-156-223-dev03-hp.bj-cn.vpc.letv.cn"/>

相关推荐