...
|
...
|
@@ -108,7 +108,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;
|
...
|
...
|
@@ -118,7 +118,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productList&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productList&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -206,7 +206,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">${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;
|
...
|
...
|
@@ -216,7 +216,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.activity.getGroups&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.activity.getGroups&os_version=6.6.1&private_key="+privateKey+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -304,7 +304,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_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -314,7 +314,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.product.data&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.product.data&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -402,7 +402,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_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -412,7 +412,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=smallapp.product.intro&os_version=6.6.1&private_key="+privateKey+"&productskn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=smallapp.product.intro&os_version=6.6.1&private_key="+privateKey+"&productskn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -500,7 +500,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_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -510,7 +510,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&coupon_limit_status=0&method=app.product.supportService&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&coupon_limit_status=0&method=app.product.supportService&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -598,7 +598,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_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -608,7 +608,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.Shopping.count&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[0]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[1]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.Shopping.count&os_version=6.6.1&private_key="+privateKey+"&product_skn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -696,7 +696,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">${activityId} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${activityId} ${product_skn} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -706,7 +706,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "activityId="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productInfo&os_version=6.6.1&private_key="+privateKey+"&productSkn="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7";
|
|
|
String req = "_sncp="+bsh.args[0]+"&activityId="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&client_type="+clientType+"&method=app.collage.productInfo&os_version=6.6.1&private_key="+privateKey+"&productSkn="+bsh.args[2]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[3]+"&user_source=wechat&v=7";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -794,7 +794,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">${activityId} ${product_sku} ${uid}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${activityId} ${product_sku} ${uid}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -804,7 +804,7 @@ int rd = new Random().nextInt(2); |
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
|
|
|
String req = "activity_id="+bsh.args[0]+"&app_version=2.3.2&business_line=miniapp&buy_number=1&client_type="+clientType+"&group_no=&is_support_apple_pay=N&method=app.GroupBuy.payment&os_version=6.6.1&private_key="+privateKey+"&product_sku="+bsh.args[1]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[2]+"&user_source=wechat&v=7&yoho_coin_mode=0";
|
|
|
String req = "_sncp="+bsh.args[0]+"&activity_id="+bsh.args[1]+"&app_version=2.3.2&business_line=miniapp&buy_number=1&client_type="+clientType+"&group_no=&is_support_apple_pay=N&method=app.GroupBuy.payment&os_version=6.6.1&private_key="+privateKey+"&product_sku="+bsh.args[2]+"&screen_size=375x603&session_key=57760afa8df1c8fa854f05c95f147e50&source_type=wechat&udid=a937bd3fee40ae778d8aa76f1bb8d8c2&uid="+bsh.args[3]+"&user_source=wechat&v=7&yoho_coin_mode=0";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
|