Authored by Rong

commit by shell

@@ -36,23 +36,23 @@ @@ -36,23 +36,23 @@
36 <stringProp name="shareMode">shareMode.all</stringProp> 36 <stringProp name="shareMode">shareMode.all</stringProp>
37 </CSVDataSet> 37 </CSVDataSet>
38 <hashTree/> 38 <hashTree/>
39 - <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_sesame_flowering_higher" enabled="true"> 39 + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_passport_signinByOpenID" enabled="true">
40 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> 40 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
41 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> 41 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
42 <boolProp name="LoopController.continue_forever">false</boolProp> 42 <boolProp name="LoopController.continue_forever">false</boolProp>
43 <intProp name="LoopController.loops">-1</intProp> 43 <intProp name="LoopController.loops">-1</intProp>
44 </elementProp> 44 </elementProp>
45 - <stringProp name="ThreadGroup.num_threads">100</stringProp> 45 + <stringProp name="ThreadGroup.num_threads">10</stringProp>
46 <stringProp name="ThreadGroup.ramp_time">10</stringProp> 46 <stringProp name="ThreadGroup.ramp_time">10</stringProp>
47 <longProp name="ThreadGroup.start_time">1488865571000</longProp> 47 <longProp name="ThreadGroup.start_time">1488865571000</longProp>
48 <longProp name="ThreadGroup.end_time">1488865571000</longProp> 48 <longProp name="ThreadGroup.end_time">1488865571000</longProp>
49 <boolProp name="ThreadGroup.scheduler">false</boolProp> 49 <boolProp name="ThreadGroup.scheduler">false</boolProp>
50 <stringProp name="ThreadGroup.duration"></stringProp> 50 <stringProp name="ThreadGroup.duration"></stringProp>
51 <stringProp name="ThreadGroup.delay"></stringProp> 51 <stringProp name="ThreadGroup.delay"></stringProp>
52 - <stringProp name="TestPlan.comments"></stringProp> 52 + <stringProp name="TestPlan.comments">&#31532;&#19977;&#26041;&#30331;&#24405;</stringProp>
53 </ThreadGroup> 53 </ThreadGroup>
54 <hashTree> 54 <hashTree>
55 - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_sesame_flowering_higher" enabled="true"> 55 + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_passport_signinByOpenID" enabled="true">
56 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> 56 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
57 <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> 57 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
58 <collectionProp name="Arguments.arguments"> 58 <collectionProp name="Arguments.arguments">
@@ -77,13 +77,13 @@ @@ -77,13 +77,13 @@
77 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> 77 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
78 <boolProp name="HTTPSampler.monitor">false</boolProp> 78 <boolProp name="HTTPSampler.monitor">false</boolProp>
79 <stringProp name="HTTPSampler.embedded_url_re"></stringProp> 79 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
80 - <stringProp name="TestPlan.comments"></stringProp> 80 + <stringProp name="TestPlan.comments">&#31532;&#19977;&#26041;&#30331;&#24405;</stringProp>
81 </HTTPSamplerProxy> 81 </HTTPSamplerProxy>
82 <hashTree> 82 <hashTree>
83 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true"> 83 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
84 <stringProp name="TestPlan.comments"></stringProp> 84 <stringProp name="TestPlan.comments"></stringProp>
85 <boolProp name="resetInterpreter">false</boolProp> 85 <boolProp name="resetInterpreter">false</boolProp>
86 - <stringProp name="parameters">${mobile_test}</stringProp> 86 + <stringProp name="parameters">${open_id_test}</stringProp>
87 <stringProp name="filename"></stringProp> 87 <stringProp name="filename"></stringProp>
88 <stringProp name="script">import java.security.MessageDigest; 88 <stringProp name="script">import java.security.MessageDigest;
89 import java.util.Random; 89 import java.util.Random;
@@ -92,8 +92,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb @@ -92,8 +92,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
92 int rd = new Random().nextInt(2); 92 int rd = new Random().nextInt(2);
93 String clientType = clientTypes[rd]; 93 String clientType = clientTypes[rd];
94 String privateKey = privateKeys[rd]; 94 String privateKey = privateKeys[rd];
95 -String password = &quot;HFCwrxLEBegZqq8OEZxwJQ==&quot;;  
96 -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;; 95 +String os_version = &quot;yohobuy:h5&quot;;
  96 +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;;
97 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;); 97 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
98 byte[] btInput = req.getBytes(); 98 byte[] btInput = req.getBytes();
99 md.update(btInput); 99 md.update(btInput);
@@ -107,8 +107,8 @@ for(byte b : btResult){ @@ -107,8 +107,8 @@ for(byte b : btResult){
107 sb.append(Integer.toHexString(bt)); 107 sb.append(Integer.toHexString(bt));
108 } 108 }
109 String md5 = sb.toString(); 109 String md5 = sb.toString();
110 -password=URLEncoder.encode(password);  
111 -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;; 110 +os_version=URLEncoder.encode(os_version);
  111 +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;;
112 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp> 112 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
113 </BeanShellPreProcessor> 113 </BeanShellPreProcessor>
114 <hashTree/> 114 <hashTree/>
@@ -127,7 +127,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri @@ -127,7 +127,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
127 <stringProp name="TestPlan.comments"></stringProp> 127 <stringProp name="TestPlan.comments"></stringProp>
128 <doubleProp> 128 <doubleProp>
129 <name>throughput</name> 129 <name>throughput</name>
130 - <value>60000</value> 130 + <value>6000</value>
131 <savedValue>0.0</savedValue> 131 <savedValue>0.0</savedValue>
132 </doubleProp> 132 </doubleProp>
133 <intProp name="calcMode">2</intProp> 133 <intProp name="calcMode">2</intProp>