Authored by Rong

commit by shell

... ... @@ -62,7 +62,7 @@
<hashTree/>
<CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_&#21830;&#21697;for&#27983;&#35272;" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<stringProp name="filename">/opt/jmeter/data/product_10w.csv</stringProp>
<stringProp name="filename">/opt/jmeter/data/product_2w.csv</stringProp>
<stringProp name="fileEncoding">utf-8</stringProp>
<stringProp name="variableNames">product_id,product_skn</stringProp>
<stringProp name="delimiter">,</stringProp>
... ... @@ -204,7 +204,7 @@
<stringProp name="shareMode">shareMode.all</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_product_supportService" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_shop_queryShopsByBrandId" enabled="true">
<stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
<elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
<boolProp name="LoopController.continue_forever">false</boolProp>
... ... @@ -217,10 +217,10 @@
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<stringProp name="TestPlan.comments">&#21830;&#21697;&#35814;&#24773;&#39029;&#25903;&#25345;&#30340;&#26381;&#21153;&#35828;&#26126;</stringProp>
<stringProp name="TestPlan.comments">&#21697;&#29260;&#20449;&#24687;&#65288;app5.5.1&#29256;&#26412;&#21069;&#65292;pc&#20063;&#22312;&#29992;&#65289;</stringProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_product_supportService" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_shop_queryShopsByBrandId" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -245,13 +245,13 @@
<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">&#21830;&#21697;&#35814;&#24773;&#39029;&#25903;&#25345;&#30340;&#26381;&#21153;&#35828;&#26126;</stringProp>
<stringProp name="TestPlan.comments">&#21697;&#29260;&#20449;&#24687;&#65288;app5.5.1&#29256;&#26412;&#21069;&#65292;pc&#20063;&#22312;&#29992;&#65289;</stringProp>
</HTTPSamplerProxy>
<hashTree>
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${product_skn} ${uid}</stringProp>
<stringProp name="parameters">${brand_id} ${uid}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -260,7 +260,7 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;};
int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.8.1&amp;client_type=&quot;+clientType+&quot;&amp;coupon_limit_status=1&amp;fromPage=iFP_ProductDetail&amp;instalmentId=&amp;method=app.product.supportService&amp;os_version=10.3.1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[0]+&quot;&amp;screen_size=414x736&amp;session_key=c613b013b8fe06a772ac82364042d39a&amp;udid=e6ad6312df8ea882806c40c469eb97551c9aeb37&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&quot;;
String req = &quot;app_version=5.4.0&amp;brand_id=&quot;+bsh.args[0]+&quot;&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;method=app.shop.queryShopsByBrandId&amp;os_version=10.2.1&amp;physical_channel=2&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=375x667&amp;udid=56a00d93b46c4b924c17fa8a827c2a0419015a0c&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ...