Authored by Rong

commit by shell

... ... @@ -216,7 +216,7 @@
<stringProp name="shareMode">shareMode.all</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_secondPage_categoryList" enabled="true">
<ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_app_secondPage_shopsList" 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>
... ... @@ -229,10 +229,10 @@
<boolProp name="ThreadGroup.scheduler">false</boolProp>
<stringProp name="ThreadGroup.duration"></stringProp>
<stringProp name="ThreadGroup.delay"></stringProp>
<stringProp name="TestPlan.comments">&#21697;&#31867;&#39302;</stringProp>
<stringProp name="TestPlan.comments">&#21697;&#29260;&#39302;</stringProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_secondPage_categoryList" enabled="true">
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_app_secondPage_shopsList" enabled="true">
<boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
<elementProp name="HTTPsampler.Arguments" elementType="Arguments">
<collectionProp name="Arguments.arguments">
... ... @@ -257,7 +257,7 @@
<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">&#21697;&#31867;&#39302;</stringProp>
<stringProp name="TestPlan.comments">&#21697;&#29260;&#39302;</stringProp>
</HTTPSamplerProxy>
<hashTree>
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
... ... @@ -272,8 +272,8 @@ String[] privateKeys = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version = &quot;android7.0:EVA-AL10&quot;;
String req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;content_code=528e6974107d358148271357f999446f&amp;gender=2,3&amp;limit=50&amp;method=app.secondPage.categoryList&amp;os_version=&quot;+os_version+&quot;&amp;page=1&amp;physical_channel=2&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1794&amp;session_key=78f9d0e45df94cee075dd0db965b5c55&amp;udid=8631970399531048500d3c70eb7133e&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&amp;yh_channel=2&quot;;
String req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;content_code=528e6974107d358148271357f999446f&amp;limit=50&amp;method=app.secondPage.shopsList&amp;os_version=10.3.3&amp;page=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=375x667&amp;session_key=a6fdb0652bc4a4b601e024e385b8421b&amp;udid=778326c9c83ea378c09d0108e367b2a22394b0fc&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -287,8 +287,8 @@ for(byte b : btResult){
sb.append(Integer.toHexString(bt));
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req = &quot;app_version=6.0.0&amp;client_type=&quot;+clientType+&quot;&amp;content_code=528e6974107d358148271357f999446f&amp;gender=2,3&amp;limit=50&amp;method=app.secondPage.categoryList&amp;os_version=&quot;+os_version+&quot;&amp;page=1&amp;physical_channel=2&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1794&amp;session_key=78f9d0e45df94cee075dd0db965b5c55&amp;udid=8631970399531048500d3c70eb7133e&amp;uid=&quot;+bsh.args[0]+&quot;&amp;v=7&amp;yh_channel=2&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...