...
|
...
|
@@ -1789,7 +1789,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri |
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${product_id} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${product_id} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -1799,7 +1799,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String os_version = "android7.1.1:vivo_X20Plus_A";
|
|
|
String req = "app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[1]+"&v=7&vip_level=1&yh_channel=1";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[1]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[2]+"&v=7&vip_level=1&yh_channel=1";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -1814,7 +1814,7 @@ for(byte b : btResult){ |
|
|
}
|
|
|
String md5 = sb.toString();
|
|
|
os_version=URLEncoder.encode(os_version);
|
|
|
req = "app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[0]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[1]+"&v=7&vip_level=1&yh_channel=1";
|
|
|
req = "_sncp="+bsh.args[0]+"&app_version=6.6.0&business_line=yohobuy&client_type="+clientType+"&fromPage=aFP_ProductDetail&gender=1,3&id="+bsh.args[1]+"&method=app.favorite.isFavoriteNew&os_version="+os_version+"&physical_channel=1&private_key="+privateKey+"&screen_size=1080x2040&session_key=d99017a864d27b7772fa494bc2edc8e3&udid=867476033141296577e6dba2096f180&uid="+bsh.args[2]+"&v=7&vip_level=1&yh_channel=1";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
|