Authored by Rong

commit by shell

... ... @@ -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">&#31532;&#19977;&#26041;&#30331;&#24405;</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">&#31532;&#19977;&#26041;&#30331;&#24405;</stringProp>
</HTTPSamplerProxy>
<hashTree>
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;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 = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String password = &quot;HFCwrxLEBegZqq8OEZxwJQ==&quot;;
String req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_NLogin&amp;isSkip=N&amp;method=sesame.flowering.higher&amp;os_version=10.3.2&amp;password=&quot;+password+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;profile=&quot;+bsh.args[0]+&quot;&amp;screen_size=375x667&amp;shopping_key=&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=0&amp;v=7&quot;;
String os_version = &quot;yohobuy:h5&quot;;
String req = &quot;app_version=5.9.0&amp;client_type=&quot;+clientType+&quot;&amp;method=app.passport.signinByOpenID&amp;nickname=&amp;openId=&quot;+bsh.args[0]+&quot;&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=720x1280&amp;shoppingKey=&amp;source_type=wechat&amp;v=7&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
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 = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_NLogin&amp;isSkip=N&amp;method=sesame.flowering.higher&amp;os_version=10.3.2&amp;password=&quot;+password+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;profile=&quot;+bsh.args[0]+&quot;&amp;screen_size=375x667&amp;shopping_key=&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=0&amp;v=7&quot;;
os_version=URLEncoder.encode(os_version);
req = &quot;app_version=5.9.0&amp;client_type=&quot;+clientType+&quot;&amp;method=app.passport.signinByOpenID&amp;nickname=&amp;openId=&quot;+bsh.args[0]+&quot;&amp;os_version=&quot;+os_version+&quot;&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=720x1280&amp;shoppingKey=&amp;source_type=wechat&amp;v=7&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ... @@ -127,7 +127,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+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>
... ...