...
|
...
|
@@ -72,7 +72,7 @@ |
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_product_data" enabled="true">
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_product_test" 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>
|
...
|
...
|
@@ -85,10 +85,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">app_product_test</stringProp>
|
|
|
</ThreadGroup>
|
|
|
<hashTree>
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_product_data" enabled="true">
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_product_test" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
...
|
...
|
@@ -113,23 +113,23 @@ |
|
|
<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">app_product_test</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">${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters"></stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
|
|
String[] clientTypes = {"android"};
|
|
|
String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585"};
|
|
|
int rd = new Random().nextInt(1);
|
|
|
String[] clientTypes = {"android","iphone"};
|
|
|
String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb0674e08986c6b115d5e3a4884fa"};
|
|
|
int rd = new Random().nextInt(2);
|
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=5.8.1&client_type="+clientType+"&current_vip_level=0&fromPage=iFP_ProductDetail&is_student=0&method=app.product.data&os_version=9.1&physical_channel=1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x667&session_key=c9e62120b6a534dea8a06e8e3875e810&showcomment=Y&token=&udid=dbff80c827e771b3035a1a5ae80892d571860a8d&uid="+bsh.args[1]+"&v=7";
|
|
|
String req = "app_version=6.1.0&client_type="+clientType+"&current_vip_level=0&fromPage=iFP_ProductDetail&is_student=0&method=app.product.test&os_version=9.1&physical_channel=1&private_key="+privateKey+"&product_skn=51320918&screen_size=375x667&session_key=c9e62120b6a534dea8a06e8e3875e810&showcomment=Y&token=&udid=dbff80c827e771b3035a1a5ae80892d571860a8d&uid=13773240&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -163,7 +163,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<doubleProp>
|
|
|
<name>throughput</name>
|
|
|
<value>300000</value>
|
|
|
<value>600000</value>
|
|
|
<savedValue>0.0</savedValue>
|
|
|
</doubleProp>
|
|
|
<intProp name="calcMode">2</intProp>
|
...
|
...
|
|