...
|
...
|
@@ -36,23 +36,23 @@ |
|
|
<stringProp name="shareMode">shareMode.all</stringProp>
|
|
|
</CSVDataSet>
|
|
|
<hashTree/>
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_sesame_flowering_higher" enabled="true">
|
|
|
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_passport_signinByOpenID" 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>
|
|
|
<intProp name="LoopController.loops">-1</intProp>
|
|
|
</elementProp>
|
|
|
<stringProp name="ThreadGroup.num_threads">100</stringProp>
|
|
|
<stringProp name="ThreadGroup.num_threads">10</stringProp>
|
|
|
<stringProp name="ThreadGroup.ramp_time">10</stringProp>
|
|
|
<longProp name="ThreadGroup.start_time">1488865571000</longProp>
|
|
|
<longProp name="ThreadGroup.end_time">1488865571000</longProp>
|
|
|
<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_sesame_flowering_higher" enabled="true">
|
|
|
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_passport_signinByOpenID" enabled="true">
|
|
|
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
|
|
|
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
|
|
|
<collectionProp name="Arguments.arguments">
|
...
|
...
|
@@ -77,13 +77,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">${mobile_test}</stringProp>
|
|
|
<stringProp name="parameters">${open_id_test}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -92,8 +92,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb |
|
|
int rd = new Random().nextInt(2);
|
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String password = "HFCwrxLEBegZqq8OEZxwJQ==";
|
|
|
String req = "app_version=6.0.0&client_type="+clientType+"&fromPage=iFP_NLogin&isSkip=N&method=sesame.flowering.higher&os_version=10.3.2&password="+password+"&physical_channel=1&private_key="+privateKey+"&profile="+bsh.args[0]+"&screen_size=375x667&shopping_key=&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid=0&v=7";
|
|
|
String os_version = "yohobuy:h5";
|
|
|
String req = "app_version=5.9.0&client_type="+clientType+"&method=app.passport.signinByOpenID&nickname=&openId="+bsh.args[0]+"&os_version="+os_version+"&private_key="+privateKey+"&screen_size=720x1280&shoppingKey=&source_type=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -107,8 +107,8 @@ for(byte b : btResult){ |
|
|
sb.append(Integer.toHexString(bt));
|
|
|
}
|
|
|
String md5 = sb.toString();
|
|
|
password=URLEncoder.encode(password);
|
|
|
req = "app_version=6.0.0&client_type="+clientType+"&fromPage=iFP_NLogin&isSkip=N&method=sesame.flowering.higher&os_version=10.3.2&password="+password+"&physical_channel=1&private_key="+privateKey+"&profile="+bsh.args[0]+"&screen_size=375x667&shopping_key=&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid=0&v=7";
|
|
|
os_version=URLEncoder.encode(os_version);
|
|
|
req = "app_version=5.9.0&client_type="+clientType+"&method=app.passport.signinByOpenID&nickname=&openId="+bsh.args[0]+"&os_version="+os_version+"&private_key="+privateKey+"&screen_size=720x1280&shoppingKey=&source_type=wechat&v=7";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
@@ -127,7 +127,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<doubleProp>
|
|
|
<name>throughput</name>
|
|
|
<value>60000</value>
|
|
|
<value>6000</value>
|
|
|
<savedValue>0.0</savedValue>
|
|
|
</doubleProp>
|
|
|
<intProp name="calcMode">2</intProp>
|
...
|
...
|
|