Authored by Rong

commit by shell

... ... @@ -101,7 +101,7 @@
<boolProp name="TransactionController.parent">false</boolProp>
</TransactionController>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_query" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_add" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -132,7 +132,7 @@
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${offline_uid} ${offline_shopping_key} ${offline_uid} ${offline_warehouse_id}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -142,7 +142,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.query&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.add&amp;offline_buy_number=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=a9a868dab48bcd3ea6f2ea78eaa6b152&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -171,6 +171,13 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">offline_shopping_key</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$..data.shopping_key</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
<stringProp name="JSONPostProcessor.defaultValues">a34d0ac74038cf67019950617c1fa7bb</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_increase" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
... ... @@ -385,7 +392,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_add" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_query" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -416,7 +423,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_warehouse_id}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_shopping_key} ${offline_uid} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -426,7 +433,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.add&amp;offline_buy_number=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=a9a868dab48bcd3ea6f2ea78eaa6b152&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.query&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -455,13 +462,6 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<intProp name="Assertion.test_type">16</intProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor guiclass="JSONPostProcessorGui" testclass="JSONPostProcessor" testname="JSON Extractor" enabled="true">
<stringProp name="JSONPostProcessor.referenceNames">offline_shopping_key</stringProp>
<stringProp name="JSONPostProcessor.jsonPathExprs">$..data.shopping_key</stringProp>
<stringProp name="JSONPostProcessor.match_numbers">1</stringProp>
<stringProp name="JSONPostProcessor.defaultValues">a34d0ac74038cf67019950617c1fa7bb</stringProp>
</JSONPostProcessor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="child_tc_app_ShoppingForOffline_offlinePayment" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
... ...