Authored by Rong

commit by shell

... ... @@ -243,7 +243,7 @@
<stringProp name="shareMode">shareMode.all</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_Seckill_compute" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_Seckill_submit" 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>
... ... @@ -259,7 +259,7 @@
<stringProp name="TestPlan.comments"></stringProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Seckill_compute" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Seckill_submit" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -290,7 +290,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">${SNCP} ${activityId_seckill} ${sku_seckill} ${uid_submit}</stringProp>
<stringProp name="parameters">${SNCP} ${activityId_seckill} ${address_id_submit} ${sku_seckill} ${uid_submit}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -300,7 +300,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version = &quot;android6.0:MI_5&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activity_id=&quot;+bsh.args[1]+&quot;&amp;app_version=6.0.2&amp;buy_number=1&amp;client_type=&quot;+clientType+&quot;&amp;coupon_code=&amp;delivery_way=1&amp;fromPage=aFP_InstalmentGoodsTakeOrder&amp;gender=1,3&amp;method=app.Seckill.compute&amp;os_version=&quot;+os_version+&quot;&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;promotion_code=&amp;screen_size=1080x1920&amp;session_key=53d0d4a67ba919a634f4e76a80f7a9de&amp;sku_type=S&amp;udid=861945035813942cbb51d8d8830e026&amp;uid=&quot;+bsh.args[3]+&quot;&amp;use_red_envelopes=&amp;use_yoho_coin=0&amp;v=7&amp;yh_channel=1&amp;yoho_bill_term=0&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activity_id=&quot;+bsh.args[1]+&quot;&amp;address_id=&quot;+bsh.args[2]+&quot;&amp;app_version=6.0.2&amp;buy_number=1&amp;client_type=&quot;+clientType+&quot;&amp;coupon_code=&amp;delivery_time=2&amp;delivery_way=1&amp;fromPage=aFP_InstalmentGoodsTakeOrder&amp;gender=1,3&amp;method=app.Seckill.submit&amp;os_version=&quot;+os_version+&quot;&amp;payment_id=15&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[3]+&quot;&amp;promotion_code=&amp;remark=&amp;screen_size=1080x1920&amp;session_key=53d0d4a67ba919a634f4e76a80f7a9de&amp;sku_type=S&amp;udid=861945035813942cbb51d8d8830e026&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_red_envelopes=&amp;use_yoho_coin=&amp;v=7&amp;yh_channel=1&amp;yoho_bill_term=0&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -315,7 +315,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activity_id=&quot;+bsh.args[1]+&quot;&amp;app_version=6.0.2&amp;buy_number=1&amp;client_type=&quot;+clientType+&quot;&amp;coupon_code=&amp;delivery_way=1&amp;fromPage=aFP_InstalmentGoodsTakeOrder&amp;gender=1,3&amp;method=app.Seckill.compute&amp;os_version=&quot;+os_version+&quot;&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;promotion_code=&amp;screen_size=1080x1920&amp;session_key=53d0d4a67ba919a634f4e76a80f7a9de&amp;sku_type=S&amp;udid=861945035813942cbb51d8d8830e026&amp;uid=&quot;+bsh.args[3]+&quot;&amp;use_red_envelopes=&amp;use_yoho_coin=0&amp;v=7&amp;yh_channel=1&amp;yoho_bill_term=0&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activity_id=&quot;+bsh.args[1]+&quot;&amp;address_id=&quot;+bsh.args[2]+&quot;&amp;app_version=6.0.2&amp;buy_number=1&amp;client_type=&quot;+clientType+&quot;&amp;coupon_code=&amp;delivery_time=2&amp;delivery_way=1&amp;fromPage=aFP_InstalmentGoodsTakeOrder&amp;gender=1,3&amp;method=app.Seckill.submit&amp;os_version=&quot;+os_version+&quot;&amp;payment_id=15&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[3]+&quot;&amp;promotion_code=&amp;remark=&amp;screen_size=1080x1920&amp;session_key=53d0d4a67ba919a634f4e76a80f7a9de&amp;sku_type=S&amp;udid=861945035813942cbb51d8d8830e026&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_red_envelopes=&amp;use_yoho_coin=&amp;v=7&amp;yh_channel=1&amp;yoho_bill_term=0&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...