...
|
...
|
@@ -96,7 +96,7 @@ |
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置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 = "android6.0.1:MI_4LTE";
|
|
|
String req = "activityId="+bsh.args[0]+"&app_version=6.7.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_Queue&gender=1,3&method=app.drawline.addQueue&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&udid=866899023021106371c7743458299a6&uid="+bsh.args[1]+"&v=7&vip_level=0&yh_channel=1";
|
|
|
String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=6.7.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_Queue&gender=1,3&method=app.drawline.addQueue&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&udid=866899023021106371c7743458299a6&uid="+bsh.args[2]+"&v=7&vip_level=0&yh_channel=1";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
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 = "activityId="+bsh.args[0]+"&app_version=6.7.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_Queue&gender=1,3&method=app.drawline.addQueue&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&udid=866899023021106371c7743458299a6&uid="+bsh.args[1]+"&v=7&vip_level=0&yh_channel=1";
|
|
|
req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=6.7.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_Queue&gender=1,3&method=app.drawline.addQueue&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x1920&session_key=eda4ab2daa1ea85bcd4ef79ce9ccbe2f&udid=866899023021106371c7743458299a6&uid="+bsh.args[2]+"&v=7&vip_level=0&yh_channel=1";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
|