mirror of
https://gitee.com/BTAJL/repchain.git
synced 2024-12-02 19:58:55 +08:00
jmeter测试脚本增加changState交易的xml用例
This commit is contained in:
parent
4e4236a366
commit
5b55d818e8
@ -32,4 +32,4 @@
|
||||
3. 注意事项
|
||||
* jmeter测试脚本中的字符串提交交易的测试用例,其内置的字符串只能提交一次,因为txid是固定唯一的
|
||||
* /transaction/postTran只能在debug模式下使用,在jar部署模式下,该接口不能使用
|
||||
**TODO** 未完待续
|
||||
4. **TODO** 未完待续
|
@ -532,6 +532,190 @@
|
||||
</HeaderManager>
|
||||
<hashTree/>
|
||||
</hashTree>
|
||||
<GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="-------------------" enabled="true"/>
|
||||
<hashTree/>
|
||||
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="设置ContractAssets为false /transaction/postTran" enabled="true">
|
||||
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
||||
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
||||
<collectionProp name="Arguments.arguments">
|
||||
<elementProp name="" elementType="HTTPArgument">
|
||||
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
||||
<stringProp name="Argument.value"><?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright 2019 Blockchain Technology and Application Joint Lab, Linkel Technology Co., Ltd, Beijing, Fintech Research Center of ISCAS.
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ ${scheme}://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BA SIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
-->
|
||||

|
||||
<!--该用例主要是启用/禁用(state:true/ state: false)合约并验证返回值-->
|
||||
<!--这个应该是可以成功启用/禁用的-->
|
||||
<CSpec>
|
||||
<stype>3</stype>
|
||||
<chaincodename>ContractAssetsTPL</chaincodename>
|
||||
<chaincodeversion>1</chaincodeversion>
|
||||
<iptFunc></iptFunc>
|
||||
<iptArgs></iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<ctype>2</ctype>
|
||||
<state>false</state>
|
||||
</CSpec></stringProp>
|
||||
<stringProp name="Argument.metadata">=</stringProp>
|
||||
</elementProp>
|
||||
</collectionProp>
|
||||
</elementProp>
|
||||
<stringProp name="HTTPSampler.domain">${host}</stringProp>
|
||||
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
||||
<stringProp name="HTTPSampler.protocol"></stringProp>
|
||||
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
||||
<stringProp name="HTTPSampler.path">/transaction/postTran</stringProp>
|
||||
<stringProp name="HTTPSampler.method">POST</stringProp>
|
||||
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
||||
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
||||
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
||||
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
||||
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
||||
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
||||
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
||||
</HTTPSamplerProxy>
|
||||
<hashTree>
|
||||
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
|
||||
<collectionProp name="HeaderManager.headers">
|
||||
<elementProp name="Referer" elementType="Header">
|
||||
<stringProp name="Header.name">Referer</stringProp>
|
||||
<stringProp name="Header.value">${scheme}://${host}:${port}/swagger/index.html</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept-Language" elementType="Header">
|
||||
<stringProp name="Header.name">Accept-Language</stringProp>
|
||||
<stringProp name="Header.value">zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="origin" elementType="Header">
|
||||
<stringProp name="Header.name">origin</stringProp>
|
||||
<stringProp name="Header.value">${scheme}://${host}:${port}</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="content-type" elementType="Header">
|
||||
<stringProp name="Header.name">content-type</stringProp>
|
||||
<stringProp name="Header.value">application/xml</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept-Encoding" elementType="Header">
|
||||
<stringProp name="Header.name">Accept-Encoding</stringProp>
|
||||
<stringProp name="Header.value">gzip, deflate</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="User-Agent" elementType="Header">
|
||||
<stringProp name="Header.name">User-Agent</stringProp>
|
||||
<stringProp name="Header.value">Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept" elementType="Header">
|
||||
<stringProp name="Header.name">Accept</stringProp>
|
||||
<stringProp name="Header.value">application/json</stringProp>
|
||||
</elementProp>
|
||||
</collectionProp>
|
||||
</HeaderManager>
|
||||
<hashTree/>
|
||||
</hashTree>
|
||||
<GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="-------------------" enabled="true"/>
|
||||
<hashTree/>
|
||||
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="设置ContractAssets为true /transaction/postTran" enabled="true">
|
||||
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
||||
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
||||
<collectionProp name="Arguments.arguments">
|
||||
<elementProp name="" elementType="HTTPArgument">
|
||||
<boolProp name="HTTPArgument.always_encode">false</boolProp>
|
||||
<stringProp name="Argument.value"><?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
~ Copyright 2019 Blockchain Technology and Application Joint Lab, Linkel Technology Co., Ltd, Beijing, Fintech Research Center of ISCAS.
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ ${scheme}://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BA SIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
-->
|
||||

|
||||
<!--该用例主要是启用/禁用(state:true/ state: false)合约并验证返回值-->
|
||||
<!--这个应该是可以成功启用/禁用的-->
|
||||
<CSpec>
|
||||
<stype>3</stype>
|
||||
<chaincodename>ContractAssetsTPL</chaincodename>
|
||||
<chaincodeversion>1</chaincodeversion>
|
||||
<iptFunc></iptFunc>
|
||||
<iptArgs></iptArgs>
|
||||
<timeout>0</timeout>
|
||||
<legal_prose></legal_prose>
|
||||
<code></code>
|
||||
<ctype>2</ctype>
|
||||
<state>true</state>
|
||||
</CSpec></stringProp>
|
||||
<stringProp name="Argument.metadata">=</stringProp>
|
||||
</elementProp>
|
||||
</collectionProp>
|
||||
</elementProp>
|
||||
<stringProp name="HTTPSampler.domain">${host}</stringProp>
|
||||
<stringProp name="HTTPSampler.port">${port}</stringProp>
|
||||
<stringProp name="HTTPSampler.protocol"></stringProp>
|
||||
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
||||
<stringProp name="HTTPSampler.path">/transaction/postTran</stringProp>
|
||||
<stringProp name="HTTPSampler.method">POST</stringProp>
|
||||
<boolProp name="HTTPSampler.follow_redirects">true</boolProp>
|
||||
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
||||
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
||||
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
||||
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
||||
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
||||
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
||||
</HTTPSamplerProxy>
|
||||
<hashTree>
|
||||
<HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
|
||||
<collectionProp name="HeaderManager.headers">
|
||||
<elementProp name="Referer" elementType="Header">
|
||||
<stringProp name="Header.name">Referer</stringProp>
|
||||
<stringProp name="Header.value">${scheme}://${host}:${port}/swagger/index.html</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept-Language" elementType="Header">
|
||||
<stringProp name="Header.name">Accept-Language</stringProp>
|
||||
<stringProp name="Header.value">zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="origin" elementType="Header">
|
||||
<stringProp name="Header.name">origin</stringProp>
|
||||
<stringProp name="Header.value">${scheme}://${host}:${port}</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="content-type" elementType="Header">
|
||||
<stringProp name="Header.name">content-type</stringProp>
|
||||
<stringProp name="Header.value">application/xml</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept-Encoding" elementType="Header">
|
||||
<stringProp name="Header.name">Accept-Encoding</stringProp>
|
||||
<stringProp name="Header.value">gzip, deflate</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="User-Agent" elementType="Header">
|
||||
<stringProp name="Header.name">User-Agent</stringProp>
|
||||
<stringProp name="Header.value">Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0</stringProp>
|
||||
</elementProp>
|
||||
<elementProp name="Accept" elementType="Header">
|
||||
<stringProp name="Header.name">Accept</stringProp>
|
||||
<stringProp name="Header.value">application/json</stringProp>
|
||||
</elementProp>
|
||||
</collectionProp>
|
||||
</HeaderManager>
|
||||
<hashTree/>
|
||||
</hashTree>
|
||||
</hashTree>
|
||||
<ResultCollector guiclass="SummaryReport" testclass="ResultCollector" testname="Summary Report" enabled="true">
|
||||
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
||||
|
Loading…
Reference in New Issue
Block a user