...
|
...
|
@@ -119,7 +119,7 @@ |
|
|
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="前置BeanShell" enabled="true">
|
|
|
<stringProp name="TestPlan.comments"></stringProp>
|
|
|
<boolProp name="resetInterpreter">false</boolProp>
|
|
|
<stringProp name="parameters">${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -128,8 +128,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb |
|
|
int rd = new Random().nextInt(2);
|
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String product_sku_list = "[{\"sku\":"+bsh.args[0]+",\"buy_number\":1,\"type\":\"limitcode\",\"limitproductcode\":\""+bsh.args[1]+"\",\"skn\":"+bsh.args[2]+"}]";
|
|
|
String req = "app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&fromPage=iFP_ProductDetail&is_support_apple_pay=N&method=app.Shopping.easyPayment&os_version=10.3.2&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[3]+"&v=7&yoho_bill_term=0&yoho_coin_mode=0";
|
|
|
String product_sku_list = "[{\"sku\":"+bsh.args[1]+",\"buy_number\":1,\"type\":\"limitcode\",\"limitproductcode\":\""+bsh.args[2]+"\",\"skn\":"+bsh.args[3]+"}]";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&fromPage=iFP_ProductDetail&is_support_apple_pay=N&method=app.Shopping.easyPayment&os_version=10.3.2&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[4]+"&v=7&yoho_bill_term=0&yoho_coin_mode=0";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -144,7 +144,7 @@ for(byte b : btResult){ |
|
|
}
|
|
|
String md5 = sb.toString();
|
|
|
product_sku_list=URLEncoder.encode(product_sku_list);
|
|
|
req = "app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&fromPage=iFP_ProductDetail&is_support_apple_pay=N&method=app.Shopping.easyPayment&os_version=10.3.2&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[3]+"&v=7&yoho_bill_term=0&yoho_coin_mode=0";
|
|
|
req = "_sncp="+bsh.args[0]+"&app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&fromPage=iFP_ProductDetail&is_support_apple_pay=N&method=app.Shopping.easyPayment&os_version=10.3.2&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[4]+"&v=7&yoho_bill_term=0&yoho_coin_mode=0";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
@@ -217,7 +217,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">${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
|
|
|
<stringProp name="parameters">${SNCP} ${limit_product_sku} ${limit_product_code} ${limit_product_skn} ${uid_submit}</stringProp>
|
|
|
<stringProp name="filename"></stringProp>
|
|
|
<stringProp name="script">import java.security.MessageDigest;
|
|
|
import java.util.Random;
|
...
|
...
|
@@ -226,8 +226,8 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585","a85bb |
|
|
int rd = new Random().nextInt(2);
|
|
|
String clientType = clientTypes[rd];
|
|
|
String privateKey = privateKeys[rd];
|
|
|
String product_sku_list = "[{\"sku\":"+bsh.args[0]+",\"buy_number\":1,\"type\":\"limitcode\",\"limitproductcode\":\""+bsh.args[1]+"\",\"skn\":"+bsh.args[2]+"}]";
|
|
|
String req = "app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&delivery_way=2&fromPage=iFP_Payment&method=app.Shopping.easyCompute&os_version=10.3.2&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[3]+"&v=7&yoho_bill_term=0";
|
|
|
String product_sku_list = "[{\"sku\":"+bsh.args[1]+",\"buy_number\":1,\"type\":\"limitcode\",\"limitproductcode\":\""+bsh.args[2]+"\",\"skn\":"+bsh.args[3]+"}]";
|
|
|
String req = "_sncp="+bsh.args[0]+"&app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&delivery_way=2&fromPage=iFP_Payment&method=app.Shopping.easyCompute&os_version=10.3.2&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[4]+"&v=7&yoho_bill_term=0";
|
|
|
MessageDigest md = MessageDigest.getInstance("MD5");
|
|
|
byte[] btInput = req.getBytes();
|
|
|
md.update(btInput);
|
...
|
...
|
@@ -242,7 +242,7 @@ for(byte b : btResult){ |
|
|
}
|
|
|
String md5 = sb.toString();
|
|
|
product_sku_list=URLEncoder.encode(product_sku_list);
|
|
|
req = "app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&delivery_way=2&fromPage=iFP_Payment&method=app.Shopping.easyCompute&os_version=10.3.2&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[3]+"&v=7&yoho_bill_term=0";
|
|
|
req = "_sncp="+bsh.args[0]+"&app_version=6.0.0&cart_type=ordinary&client_type="+clientType+"&delivery_way=2&fromPage=iFP_Payment&method=app.Shopping.easyCompute&os_version=10.3.2&payment_type=1&physical_channel=1&private_key="+privateKey+"&product_sku_list="+product_sku_list+"&screen_size=375x667&session_key=56839fa66dc3f1e58f8f3d9a7d12774c&udid=4d08039b26ebafdea8f35336319bfdcd634029d3&uid="+bsh.args[4]+"&v=7&yoho_bill_term=0";
|
|
|
vars.put("searchValue",req+"&client_secret="+md5);</stringProp>
|
|
|
</BeanShellPreProcessor>
|
|
|
<hashTree/>
|
...
|
...
|
|