Authored by Rong

commit by shell

@@ -180,6 +180,18 @@ @@ -180,6 +180,18 @@
180 <stringProp name="shareMode">shareMode.all</stringProp> 180 <stringProp name="shareMode">shareMode.all</stringProp>
181 </CSVDataSet> 181 </CSVDataSet>
182 <hashTree/> 182 <hashTree/>
  183 + <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_mobile_openid_test_1w" enabled="true">
  184 + <stringProp name="TestPlan.comments"></stringProp>
  185 + <stringProp name="filename">/opt/jmeter/data/uid_mobile_openid_test.csv</stringProp>
  186 + <stringProp name="fileEncoding">utf-8</stringProp>
  187 + <stringProp name="variableNames">uid_test,mobile_test,open_id_test</stringProp>
  188 + <stringProp name="delimiter">,</stringProp>
  189 + <boolProp name="quotedData">false</boolProp>
  190 + <boolProp name="recycle">true</boolProp>
  191 + <boolProp name="stopThread">false</boolProp>
  192 + <stringProp name="shareMode">shareMode.all</stringProp>
  193 + </CSVDataSet>
  194 + <hashTree/>
183 <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_edit_25w" enabled="true"> 195 <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="data_uid_sku_edit_25w" enabled="true">
184 <stringProp name="TestPlan.comments"></stringProp> 196 <stringProp name="TestPlan.comments"></stringProp>
185 <stringProp name="filename">/opt/jmeter/data/uid_sku_edit.csv</stringProp> 197 <stringProp name="filename">/opt/jmeter/data/uid_sku_edit.csv</stringProp>
@@ -204,7 +216,7 @@ @@ -204,7 +216,7 @@
204 <stringProp name="shareMode">shareMode.all</stringProp> 216 <stringProp name="shareMode">shareMode.all</stringProp>
205 </CSVDataSet> 217 </CSVDataSet>
206 <hashTree/> 218 <hashTree/>
207 - <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_home_newPreference" enabled="true"> 219 + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_passport_checkIsNeedPopupRelated" enabled="true">
208 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> 220 <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
209 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> 221 <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
210 <boolProp name="LoopController.continue_forever">false</boolProp> 222 <boolProp name="LoopController.continue_forever">false</boolProp>
@@ -217,10 +229,10 @@ @@ -217,10 +229,10 @@
217 <boolProp name="ThreadGroup.scheduler">false</boolProp> 229 <boolProp name="ThreadGroup.scheduler">false</boolProp>
218 <stringProp name="ThreadGroup.duration"></stringProp> 230 <stringProp name="ThreadGroup.duration"></stringProp>
219 <stringProp name="ThreadGroup.delay"></stringProp> 231 <stringProp name="ThreadGroup.delay"></stringProp>
220 - <stringProp name="TestPlan.comments">&#20010;&#20154;&#20013;&#24515;&#24213;&#37096;&#20026;&#20320;&#20248;&#36873;</stringProp> 232 + <stringProp name="TestPlan.comments"></stringProp>
221 </ThreadGroup> 233 </ThreadGroup>
222 <hashTree> 234 <hashTree>
223 - <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_home_newPreference" enabled="true"> 235 + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_passport_checkIsNeedPopupRelated" enabled="true">
224 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> 236 <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
225 <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> 237 <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
226 <collectionProp name="Arguments.arguments"> 238 <collectionProp name="Arguments.arguments">
@@ -245,23 +257,23 @@ @@ -245,23 +257,23 @@
245 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> 257 <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp>
246 <boolProp name="HTTPSampler.monitor">false</boolProp> 258 <boolProp name="HTTPSampler.monitor">false</boolProp>
247 <stringProp name="HTTPSampler.embedded_url_re"></stringProp> 259 <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
248 - <stringProp name="TestPlan.comments">&#20010;&#20154;&#20013;&#24515;&#24213;&#37096;&#20026;&#20320;&#20248;&#36873;</stringProp> 260 + <stringProp name="TestPlan.comments"></stringProp>
249 </HTTPSamplerProxy> 261 </HTTPSamplerProxy>
250 <hashTree> 262 <hashTree>
251 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true"> 263 <BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
252 <stringProp name="TestPlan.comments"></stringProp> 264 <stringProp name="TestPlan.comments"></stringProp>
253 <boolProp name="resetInterpreter">false</boolProp> 265 <boolProp name="resetInterpreter">false</boolProp>
254 - <stringProp name="parameters">${uid}</stringProp> 266 + <stringProp name="parameters">${uid_test}</stringProp>
255 <stringProp name="filename"></stringProp> 267 <stringProp name="filename"></stringProp>
256 <stringProp name="script">import java.security.MessageDigest; 268 <stringProp name="script">import java.security.MessageDigest;
257 import java.util.Random; 269 import java.util.Random;
258 -String[] clientTypes = {&quot;android&quot;};  
259 -String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;};  
260 -int rd = new Random().nextInt(1); 270 +String[] clientTypes = {&quot;android&quot;,&quot;iphone&quot;};
  271 +String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb0674e08986c6b115d5e3a4884fa&quot;};
  272 +int rd = new Random().nextInt(2);
261 String clientType = clientTypes[rd]; 273 String clientType = clientTypes[rd];
262 String privateKey = privateKeys[rd]; 274 String privateKey = privateKeys[rd];
263 -  
264 -String req = &quot;app_version=5.8.1&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_RecommendProduct&amp;limit=30&amp;method=app.home.newPreference&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;rec_pos=100004&amp;screen_size=375x667&amp;udid=9561cd2262d04577127d43b483232a2f745dc25b&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&amp;yh_channel=1&quot;; 275 +String os_version = &quot;android7.1.1:OPPO_R11&quot;;
  276 +String req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_My&amp;gender=1,3&amp;method=app.passport.checkIsNeedPopupRelated&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=4e60eb7ee3968dd240273fb636e16b80&amp;udid=8661700390046705bf2aaaf80bac2e9&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&amp;yh_channel=1&quot;;
265 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;); 277 MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
266 byte[] btInput = req.getBytes(); 278 byte[] btInput = req.getBytes();
267 md.update(btInput); 279 md.update(btInput);
@@ -275,8 +287,8 @@ for(byte b : btResult){ @@ -275,8 +287,8 @@ for(byte b : btResult){
275 sb.append(Integer.toHexString(bt)); 287 sb.append(Integer.toHexString(bt));
276 } 288 }
277 String md5 = sb.toString(); 289 String md5 = sb.toString();
278 -  
279 - 290 +os_version=URLEncoder.encode(os_version);
  291 +req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_My&amp;gender=1,3&amp;method=app.passport.checkIsNeedPopupRelated&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=4e60eb7ee3968dd240273fb636e16b80&amp;udid=8661700390046705bf2aaaf80bac2e9&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&amp;yh_channel=1&quot;;
280 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp> 292 vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
281 </BeanShellPreProcessor> 293 </BeanShellPreProcessor>
282 <hashTree/> 294 <hashTree/>