Showing
1 changed file
with
5 additions
and
5 deletions
@@ -243,7 +243,7 @@ | @@ -243,7 +243,7 @@ | ||
243 | <stringProp name="shareMode">shareMode.all</stringProp> | 243 | <stringProp name="shareMode">shareMode.all</stringProp> |
244 | </CSVDataSet> | 244 | </CSVDataSet> |
245 | <hashTree/> | 245 | <hashTree/> |
246 | - <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_Seckill_compute" enabled="true"> | 246 | + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_Seckill_submit" enabled="true"> |
247 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> | 247 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
248 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> | 248 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> |
249 | <boolProp name="LoopController.continue_forever">false</boolProp> | 249 | <boolProp name="LoopController.continue_forever">false</boolProp> |
@@ -259,7 +259,7 @@ | @@ -259,7 +259,7 @@ | ||
259 | <stringProp name="TestPlan.comments"></stringProp> | 259 | <stringProp name="TestPlan.comments"></stringProp> |
260 | </ThreadGroup> | 260 | </ThreadGroup> |
261 | <hashTree> | 261 | <hashTree> |
262 | - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Seckill_compute" enabled="true"> | 262 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Seckill_submit" enabled="true"> |
263 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | 263 | <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> |
264 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | 264 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> |
265 | <collectionProp name="Arguments.arguments"> | 265 | <collectionProp name="Arguments.arguments"> |
@@ -290,7 +290,7 @@ | @@ -290,7 +290,7 @@ | ||
290 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> | 290 | <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true"> |
291 | <stringProp name="TestPlan.comments"></stringProp> | 291 | <stringProp name="TestPlan.comments"></stringProp> |
292 | <boolProp name="resetInterpreter">false</boolProp> | 292 | <boolProp name="resetInterpreter">false</boolProp> |
293 | - <stringProp name="parameters">${SNCP} ${activityId_seckill} ${sku_seckill} ${uid_submit}</stringProp> | 293 | + <stringProp name="parameters">${SNCP} ${activityId_seckill} ${address_id_submit} ${sku_seckill} ${uid_submit}</stringProp> |
294 | <stringProp name="filename"></stringProp> | 294 | <stringProp name="filename"></stringProp> |
295 | <stringProp name="script">import java.security.MessageDigest; | 295 | <stringProp name="script">import java.security.MessageDigest; |
296 | import java.util.Random; | 296 | import java.util.Random; |
@@ -300,7 +300,7 @@ int rd = new Random().nextInt(2); | @@ -300,7 +300,7 @@ int rd = new Random().nextInt(2); | ||
300 | String clientType = clientTypes[rd]; | 300 | String clientType = clientTypes[rd]; |
301 | String privateKey = privateKeys[rd]; | 301 | String privateKey = privateKeys[rd]; |
302 | String os_version = "android6.0:MI_5"; | 302 | String os_version = "android6.0:MI_5"; |
303 | -String req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&app_version=6.0.2&buy_number=1&client_type="+clientType+"&coupon_code=&delivery_way=1&fromPage=aFP_InstalmentGoodsTakeOrder&gender=1,3&method=app.Seckill.compute&os_version="+os_version+"&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku="+bsh.args[2]+"&promotion_code=&screen_size=1080x1920&session_key=53d0d4a67ba919a634f4e76a80f7a9de&sku_type=S&udid=861945035813942cbb51d8d8830e026&uid="+bsh.args[3]+"&use_red_envelopes=&use_yoho_coin=0&v=7&yh_channel=1&yoho_bill_term=0"; | 303 | +String req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&address_id="+bsh.args[2]+"&app_version=6.0.2&buy_number=1&client_type="+clientType+"&coupon_code=&delivery_time=2&delivery_way=1&fromPage=aFP_InstalmentGoodsTakeOrder&gender=1,3&method=app.Seckill.submit&os_version="+os_version+"&payment_id=15&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku="+bsh.args[3]+"&promotion_code=&remark=&screen_size=1080x1920&session_key=53d0d4a67ba919a634f4e76a80f7a9de&sku_type=S&udid=861945035813942cbb51d8d8830e026&uid="+bsh.args[4]+"&use_red_envelopes=&use_yoho_coin=&v=7&yh_channel=1&yoho_bill_term=0"; |
304 | MessageDigest md = MessageDigest.getInstance("MD5"); | 304 | MessageDigest md = MessageDigest.getInstance("MD5"); |
305 | byte[] btInput = req.getBytes(); | 305 | byte[] btInput = req.getBytes(); |
306 | md.update(btInput); | 306 | md.update(btInput); |
@@ -315,7 +315,7 @@ for(byte b : btResult){ | @@ -315,7 +315,7 @@ for(byte b : btResult){ | ||
315 | } | 315 | } |
316 | String md5 = sb.toString(); | 316 | String md5 = sb.toString(); |
317 | os_version=URLEncoder.encode(os_version); | 317 | os_version=URLEncoder.encode(os_version); |
318 | -req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&app_version=6.0.2&buy_number=1&client_type="+clientType+"&coupon_code=&delivery_way=1&fromPage=aFP_InstalmentGoodsTakeOrder&gender=1,3&method=app.Seckill.compute&os_version="+os_version+"&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku="+bsh.args[2]+"&promotion_code=&screen_size=1080x1920&session_key=53d0d4a67ba919a634f4e76a80f7a9de&sku_type=S&udid=861945035813942cbb51d8d8830e026&uid="+bsh.args[3]+"&use_red_envelopes=&use_yoho_coin=0&v=7&yh_channel=1&yoho_bill_term=0"; | 318 | +req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&address_id="+bsh.args[2]+"&app_version=6.0.2&buy_number=1&client_type="+clientType+"&coupon_code=&delivery_time=2&delivery_way=1&fromPage=aFP_InstalmentGoodsTakeOrder&gender=1,3&method=app.Seckill.submit&os_version="+os_version+"&payment_id=15&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku="+bsh.args[3]+"&promotion_code=&remark=&screen_size=1080x1920&session_key=53d0d4a67ba919a634f4e76a80f7a9de&sku_type=S&udid=861945035813942cbb51d8d8830e026&uid="+bsh.args[4]+"&use_red_envelopes=&use_yoho_coin=&v=7&yh_channel=1&yoho_bill_term=0"; |
319 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> | 319 | vars.put("searchValue",req+"&client_secret="+md5);</stringProp> |
320 | </BeanShellPreProcessor> | 320 | </BeanShellPreProcessor> |
321 | <hashTree/> | 321 | <hashTree/> |
-
Please register or login to post a comment