Authored by Rong

commit by shell

... ... @@ -96,7 +96,7 @@
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;BeanShell" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="resetInterpreter">false</boolProp>
<stringProp name="parameters">${activityId} ${uid}</stringProp>
<stringProp name="parameters">${SNCP} ${activityId} ${uid}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -106,7 +106,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version = &quot;android6.0.1:MI_4LTE&quot;;
String req = &quot;activityId=&quot;+bsh.args[0]+&quot;&amp;app_version=6.7.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_Queue&amp;gender=1,3&amp;method=app.drawline.addQueue&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&amp;udid=866899023021106371c7743458299a6&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&amp;vip_level=0&amp;yh_channel=1&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activityId=&quot;+bsh.args[1]+&quot;&amp;app_version=6.7.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_Queue&amp;gender=1,3&amp;method=app.drawline.addQueue&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&amp;udid=866899023021106371c7743458299a6&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;vip_level=0&amp;yh_channel=1&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -121,7 +121,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req = &quot;activityId=&quot;+bsh.args[0]+&quot;&amp;app_version=6.7.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_Queue&amp;gender=1,3&amp;method=app.drawline.addQueue&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&amp;udid=866899023021106371c7743458299a6&amp;uid=&quot;+bsh.args[1]+&quot;&amp;v=7&amp;vip_level=0&amp;yh_channel=1&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;activityId=&quot;+bsh.args[1]+&quot;&amp;app_version=6.7.0&amp;business_line=yohobuy&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=aFP_Queue&amp;gender=1,3&amp;method=app.drawline.addQueue&amp;os_version=&quot;+os_version+&quot;&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=1080x1920&amp;session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&amp;udid=866899023021106371c7743458299a6&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;vip_level=0&amp;yh_channel=1&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...