...
|
...
|
@@ -216,7 +216,7 @@ |
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_favorite_isFavorite" enabled="true">
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_Shopping_queryCart" 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>
|
...
|
...
|
@@ -229,10 +229,10 @@ |
|
|
<boolProp name="ThreadGroup.scheduler">false</boolProp>
|
|
|
<stringProp name="ThreadGroup.duration"></stringProp>
|
|
|
<stringProp name="ThreadGroup.delay"></stringProp>
|
|
|
<stringProp name="TestPlan.comments">店铺是否收藏</stringProp>
|
|
|
<stringProp name="TestPlan.comments">查询用户购物车</stringProp>
|
|
|
</ThreadGroup>
|
|
|
<hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_favorite_isFavorite" enabled="true">
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_Shopping_queryCart" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
...
|
...
|
@@ -257,13 +257,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">店铺是否收藏</stringProp>
|
|
|
<stringProp name="TestPlan.comments">查询用户购物车</stringProp>
|
|
|
</HTTPSamplerProxy>
|
|
|
<hashTree>
|
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${shop_id} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${cart_shopping_key} ${cart_uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -273,7 +273,7 @@ int rd = new Random().nextInt(1); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=5.8.1&client_type="+clientType+"&gender=1,3&id="+bsh.args[0]+"&method=app.favorite.isFavorite&os_version=android6.0.1:vivo_X9i&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=f2728b3f659fe8bc19578c5503161a56&type=shop&udid=86522403847878016966bc20dfa6c28&uid="+bsh.args[1]+"&v=7&yh_channel=1";
|
|
|
String req = "app_version=5.8.0&client_type="+clientType+"&is_support_mlp=Y&method=app.Shopping.queryCart&os_version=yohobuy:web&private_key="+privateKey+"&screen_size=720x1280&session_key=3b3af315f8ee63ba511d596496dabd39&shopping_key="+bsh.args[0]+"&uid="+bsh.args[1]+"&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
|