|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<jmeterTestPlan version="1.2" properties="3.1" jmeter="3.1 r1770033">
|
|
|
<jmeterTestPlan version="1.2" properties="3.2" jmeter="3.2 r1790748">
|
|
|
<hashTree>
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="支付回调" enabled="true">
|
|
|
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="支付回调" enabled="true">
|
|
|
<stringProp name="TestPlan.comments">YohoPerformanceTest_ThisScriptIsGeneratedByYPT</stringProp>
|
|
|
<boolProp name="TestPlan.functional_mode">false</boolProp>
|
|
|
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
|
|
|
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
|
|
|
<collectionProp name="Arguments.arguments">
|
|
|
</collectionProp>
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
</elementProp>
|
|
|
<stringProp name="TestPlan.user_define_classpath"></stringProp>
|
|
|
</TestPlan>
|
...
|
...
|
@@ -20,10 +19,11 @@ |
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments">通用session校验码</stringProp> </Arguments>
|
|
|
<stringProp name="TestPlan.comments">通用session校验码</stringProp>
|
|
|
</Arguments>
|
|
|
<hashTree/>
|
|
|
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_hosts_pt" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">/opt/jmeter/data/hosts_pt.csv</stringProp>
|
|
|
<stringProp name="filename">/opt/jmeter/data/hosts_pt.csv</stringProp>
|
|
|
<stringProp name="fileEncoding">utf-8</stringProp>
|
|
|
<stringProp name="variableNames">HOST_API,HOST_SERVICE</stringProp>
|
...
|
...
|
@@ -32,22 +32,11 @@ |
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_edit_25w" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="filename">/opt/jmeter/data/uid_sku_edit.csv</stringProp>
|
|
|
<stringProp name="fileEncoding">utf-8</stringProp>
|
|
|
<stringProp name="variableNames">uid_edit,address_id_edit,coupon_code_edit,sku_edit</stringProp>
|
|
|
<stringProp name="delimiter">,</stringProp>
|
|
|
<boolProp name="quotedData">false</boolProp>
|
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
<boolProp name="ignoreFirstLine">false</boolProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_submit_25w" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">/opt/jmeter/data/uid_sku_submit.csv</stringProp>
|
|
|
<stringProp name="filename">/opt/jmeter/data/uid_sku_submit.csv</stringProp>
|
|
|
<stringProp name="fileEncoding">utf-8</stringProp>
|
|
|
<stringProp name="variableNames">uid_submit,address_id_submit,coupon_code_submit,sku_submit</stringProp>
|
...
|
...
|
@@ -56,18 +45,7 @@ |
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_couponId_20w" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="filename">/opt/jmeter/data/uid_couponId.csv</stringProp>
|
|
|
<stringProp name="fileEncoding">utf-8</stringProp>
|
|
|
<stringProp name="variableNames">uid_coupon,couponId_coupon</stringProp>
|
|
|
<stringProp name="delimiter">,</stringProp>
|
|
|
<boolProp name="quotedData">false</boolProp>
|
|
|
<boolProp name="recycle">true</boolProp>
|
|
|
<boolProp name="stopThread">false</boolProp>
|
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
<boolProp name="ignoreFirstLine">false</boolProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_payNotify" enabled="true">
|
...
|
...
|
@@ -83,14 +61,8 @@ |
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
</ThreadGroup>
|
|
|
<hashTree>
|
|
|
<TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="tc_payNotify" enabled="true">
|
|
|
<boolProp name="TransactionController.includeTimers">false</boolProp>
|
|
|
<boolProp name="TransactionController.parent">false</boolProp>
|
|
|
</TransactionController>
|
|
|
<hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_add_submit" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
...
|
...
|
@@ -104,8 +76,6 @@ |
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/?${searchValue}</stringProp>
|
...
|
...
|
@@ -114,13 +84,12 @@ |
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${sku_submit} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
...
|
...
|
@@ -151,18 +120,17 @@ req = "app_version=5.8.0&buy_number=1&client_type="+clientType |
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="1450572480">"code":200</stringProp>
|
|
|
<stringProp name="723337899">"code":200</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_payment" enabled="true">
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_payment" enabled="false">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
...
|
...
|
@@ -175,8 +143,6 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/?${searchValue}</stringProp>
|
...
|
...
|
@@ -185,15 +151,15 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">结算</stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">结算</stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${SNCP} ${uid_edit}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -222,18 +188,17 @@ req = "_sncp="+bsh.args[0]+"&app_version=5.9.0&cart_type= |
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="1450572480">"code":200</stringProp>
|
|
|
<stringProp name="723337899">"code":200</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_compute" enabled="true">
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_compute" enabled="false">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
...
|
...
|
@@ -246,8 +211,6 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/?${searchValue}</stringProp>
|
...
|
...
|
@@ -256,15 +219,15 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">计算</stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">计算</stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${SNCP} ${coupon_code_edit} ${uid_edit}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -274,7 +237,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String os_version = "yohobuy:h5";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=5.9.0&cart_type=ordinary&client_type="+clientType+"&coupon_code="+bsh.args[1]+"&delivery_way=2&method=app.Shopping.compute&os_version="+os_version+"&payment_type=2&private_key="+privateKey+"&screen_size=720x1280&session_key=00ed65eb36a474388df2fa2d6e97a8a5&uid="+bsh.args[2]+"&use_yoho_coin=0&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=5.9.0&cart_type=ordinary&client_type="+clientType+"&coupon_code=0&delivery_way=2&method=app.Shopping.compute&os_version="+os_version+"&payment_type=2&private_key="+privateKey+"&screen_size=720x1280&session_key=00ed65eb36a474388df2fa2d6e97a8a5&uid="+bsh.args[1]+"&use_yoho_coin=0&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -293,11 +256,10 @@ req = "_sncp="+bsh.args[0]+"&app_version=5.9.0&cart_type= |
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="1450572480">"code":200</stringProp>
|
|
|
<stringProp name="723337899">"code":200</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
...
|
...
|
@@ -317,8 +279,6 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_API}/?${searchValue}</stringProp>
|
...
|
...
|
@@ -327,13 +287,13 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">提交订单</stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">提交订单</stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${SNCP} ${address_id_submit} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
...
|
...
|
@@ -364,102 +324,43 @@ req = "_sncp="+bsh.args[0]+"&address_id="+bsh.args[1]+&q |
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="1450572480">"code":200</stringProp>
|
|
|
<stringProp name="723337899">"code":200</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
|
|
|
<stringProp name="JSONPostProcessor.referenceNames">order_code</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.order_code</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.defaultValues">0</stringProp>
|
|
|
</JSONPostProcessor>
|
|
|
<hashTree/>
|
|
|
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
|
|
|
<stringProp name="JSONPostProcessor.referenceNames">order_amount</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.jsonPathExprs">$.data.order_amount</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
|
|
|
<stringProp name="JSONPostProcessor.defaultValues">0</stringProp>
|
|
|
</JSONPostProcessor>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="登录一次" enabled="true"/>
|
|
|
<hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_first" enabled="true">
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
|
|
|
<collectionProp name="Arguments.arguments"/>
|
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_SERVICE}/signin.html</stringProp>
|
|
|
<stringProp name="HTTPSampler.method">GET</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>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings"/>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_login" 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">areaCode=86&account=${mobile_test}&password=abc123&verifyCode=yoho4946abcdef%23%24%25%26!%40&isRemember=true&loginType=password&yohobuy=yoho4946abcdef%23%24%25%26!%40</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_SERVICE}/passport/login/auth</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>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="723337899">"code":200</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
</hashTree>
|
|
|
<com.blazemeter.jmeter.controller.ParallelSampler guiclass="com.blazemeter.jmeter.controller.ParallelControllerGui" testclass="com.blazemeter.jmeter.controller.ParallelSampler" testname="bzm - Parallel Controller" enabled="true">
|
|
|
<boolProp name="PARENT_SAMPLE">false</boolProp>
|
|
|
</com.blazemeter.jmeter.controller.ParallelSampler>
|
|
|
<hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_alipay_notify" 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">gmt_create=2017-09-19 09:37:44&buyer_email=312253929@qq.com&notify_time=2017-09-19 09:37:44&gmt_payment=2017-09-19 09:37:48&seller_email=zfb@yoho.cn&quantity=1&subject=有货订单-1767888334&use_coupon=N&sign=IAt9QV7/BiK+TVmaHxNg6xBMkY+0ijd8JHEELRbUY4b62cLPVXWgvzNmG4JshFJP7MksuQnt8QAMkw27nWrKCx/jxqyPemLa6hloZ8ZBRWIyhaXxRedYKI4ql6qRBiw1TpE9SV/I3tbMFPtU1QtvqSmYBIUYQzq8MBkALcPQwIY=&discount=0.00&body=有货订单-1767888334&buyer_id=2088002633399764&notify_id=43c98d35ec047a8a9ae1e24e162576elv6&notify_type=trade_status_sync&payment_type=1&out_trade_no=1767888334&price=336.00&trade_status=TRADE_SUCCESS&total_fee=336.00&trade_no=2017091821001001290232678488&sign_type=RSA&seller_id=2088701661478015&is_total_fee_adjust=N</stringProp>
|
|
|
<stringProp name="Argument.value">gmt_create=${__time(yyyy-MM-dd HH:mm:ss,)}&buyer_email=312253929@qq.com&notify_time=${__time(yyyy-MM-dd HH:mm:ss,)}&gmt_payment=${__time(yyyy-MM-dd HH:mm:ss,)}&seller_email=zfb@yoho.cn&quantity=1&subject=有货订单-${order_code}&use_coupon=N&sign=IAt9QV7/BiK+TVmaHxNg6xBMkY+0ijd8JHEELRbUY4b62cLPVXWgvzNmG4JshFJP7MksuQnt8QAMkw27nWrKCx/jxqyPemLa6hloZ8ZBRWIyhaXxRedYKI4ql6qRBiw1TpE9SV/I3tbMFPtU1QtvqSmYBIUYQzq8MBkALcPQwIY=&discount=0.00&body=有货订单-${order_code}&buyer_id=2088002633399764&notify_id=43c98d35ec047a8a9ae1e24e162576elv6&notify_type=trade_status_sync&payment_type=1&out_trade_no=${order_code}&price=${order_amount}.00&trade_status=TRADE_SUCCESS&total_fee=${order_amount}.00&trade_no=2017091821001001290232678488&sign_type=RSA&seller_id=2088701661478015&is_total_fee_adjust=N</stringProp>
|
|
|
<stringProp name="Argument.metadata">=</stringProp>
|
|
|
</elementProp>
|
|
|
</collectionProp>
|
|
|
</elementProp>
|
|
|
<stringProp name="HTTPSampler.domain"></stringProp>
|
|
|
<stringProp name="HTTPSampler.port"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.protocol"></stringProp>
|
|
|
<stringProp name="HTTPSampler.contentEncoding"></stringProp>
|
|
|
<stringProp name="HTTPSampler.path">http://${HOST_SERVICE}/payment/alipay_notify/</stringProp>
|
...
|
...
|
@@ -468,29 +369,25 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<boolProp name="HTTPSampler.auto_redirects">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.use_keepalive">true</boolProp>
|
|
|
<boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
|
|
|
<boolProp name="HTTPSampler.monitor">false</boolProp>
|
|
|
<stringProp name="HTTPSampler.embedded_url_re"></stringProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="HTTPSampler.connect_timeout"></stringProp>
|
|
|
<stringProp name="HTTPSampler.response_timeout"></stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true">
|
|
|
<collectionProp name="Asserion.test_strings">
|
|
|
<stringProp name="1450572480">"code":200</stringProp>
|
|
|
<stringProp name="-1867169789">success</stringProp>
|
|
|
</collectionProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
|
|
|
<boolProp name="Assertion.assume_success">false</boolProp>
|
|
|
<intProp name="Assertion.test_type">16</intProp>
|
|
|
</ResponseAssertion>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
</hashTree>
|
|
|
</hashTree>
|
|
|
<ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="固定TPM" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="固定TPM" enabled="true">
|
|
|
<doubleProp>
|
|
|
<name>throughput</name>
|
|
|
<value>300000</value>
|
|
|
<value>180000.0</value>
|
|
|
<savedValue>0.0</savedValue>
|
|
|
</doubleProp>
|
|
|
<intProp name="calcMode">2</intProp>
|
...
|
...
|
@@ -543,8 +440,48 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
</collectionProp>
|
|
|
</elementProp>
|
|
|
<stringProp name="classname">org.apache.jmeter.visualizers.backend.graphite.GraphiteBackendListenerClient</stringProp>
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
</BackendListener>
|
|
|
<hashTree/> </hashTree>
|
|
|
<hashTree/>
|
|
|
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="false">
|
|
|
<boolProp name="ResultCollector.error_logging">false</boolProp>
|
|
|
<objProp>
|
|
|
<name>saveConfig</name>
|
|
|
<value class="SampleSaveConfiguration">
|
|
|
<time>true</time>
|
|
|
<latency>true</latency>
|
|
|
<timestamp>true</timestamp>
|
|
|
<success>true</success>
|
|
|
<label>true</label>
|
|
|
<code>true</code>
|
|
|
<message>true</message>
|
|
|
<threadName>true</threadName>
|
|
|
<dataType>true</dataType>
|
|
|
<encoding>false</encoding>
|
|
|
<assertions>true</assertions>
|
|
|
<subresults>true</subresults>
|
|
|
<responseData>false</responseData>
|
|
|
<samplerData>false</samplerData>
|
|
|
<xml>false</xml>
|
|
|
<fieldNames>true</fieldNames>
|
|
|
<responseHeaders>false</responseHeaders>
|
|
|
<requestHeaders>false</requestHeaders>
|
|
|
<responseDataOnError>false</responseDataOnError>
|
|
|
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
|
|
|
<assertionsResultsToSave>0</assertionsResultsToSave>
|
|
|
<bytes>true</bytes>
|
|
|
<sentBytes>true</sentBytes>
|
|
|
<threadCounts>true</threadCounts>
|
|
|
<idleTime>true</idleTime>
|
|
|
<connectTime>true</connectTime>
|
|
|
</value>
|
|
|
</objProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
</ResultCollector>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
<WorkBench guiclass="WorkBenchGui" testclass="WorkBench" testname="工作台" enabled="true">
|
|
|
<boolProp name="WorkBench.save">true</boolProp>
|
|
|
</WorkBench>
|
|
|
<hashTree/>
|
|
|
</hashTree>
|
|
|
</jmeterTestPlan> |
|
|
\ No newline at end of file |
|
|
</jmeterTestPlan> |
...
|
...
|
|