Authored by Rong

commit by shell

... ... @@ -119,7 +119,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">${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 = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[0]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[2]+&quot;}]&quot;;
String req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[1]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[3]+&quot;}]&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
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 = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;fromPage=iFP_ProductDetail&amp;is_support_apple_pay=N&amp;method=app.Shopping.easyPayment&amp;os_version=10.3.2&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&amp;yoho_coin_mode=0&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ... @@ -217,7 +217,7 @@ vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stri
<BeanShellPreProcessor guiclass="TestBeanGUI" testclass="BeanShellPreProcessor" testname="&#21069;&#32622;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 = {&quot;fd4ad5fcfa0de589ef238c0e7331b585&quot;,&quot;a85bb
int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[0]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[2]+&quot;}]&quot;;
String req = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
String product_sku_list = &quot;[{\&quot;sku\&quot;:&quot;+bsh.args[1]+&quot;,\&quot;buy_number\&quot;:1,\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:&quot;+bsh.args[3]+&quot;}]&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
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 = &quot;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;app_version=6.0.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_way=2&amp;fromPage=iFP_Payment&amp;method=app.Shopping.easyCompute&amp;os_version=10.3.2&amp;payment_type=1&amp;physical_channel=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=375x667&amp;session_key=56839fa66dc3f1e58f8f3d9a7d12774c&amp;udid=4d08039b26ebafdea8f35336319bfdcd634029d3&amp;uid=&quot;+bsh.args[4]+&quot;&amp;v=7&amp;yoho_bill_term=0&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...