Authored by Rong

commit by shell

... ... @@ -263,7 +263,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">${address_id_submit} ${limit_product_sku} ${limit_product_skn} ${limit_product_code} ${uid_submit}</stringProp>
<stringProp name="parameters">${SNCP} ${address_id_submit} ${limit_product_sku} ${limit_product_skn} ${limit_product_code} ${uid_submit}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -272,8 +272,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;type\&quot;:\&quot;limitcode\&quot;,\&quot;buy_number\&quot;:1,\&quot;sku\&quot;:\&quot;&quot;+bsh.args[1]+&quot;\&quot;,\&quot;skn\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[3]+&quot;\&quot;}]&quot;;
String req = &quot;address_id=&quot;+bsh.args[0]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
String product_sku_list = &quot;[{\&quot;type\&quot;:\&quot;limitcode\&quot;,\&quot;buy_number\&quot;:1,\&quot;sku\&quot;:\&quot;&quot;+bsh.args[2]+&quot;\&quot;,\&quot;skn\&quot;:\&quot;&quot;+bsh.args[3]+&quot;\&quot;,\&quot;limitproductcode\&quot;:\&quot;&quot;+bsh.args[4]+&quot;\&quot;}]&quot;;
String req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;address_id=&quot;+bsh.args[1]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[5]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -288,7 +288,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
product_sku_list=URLEncoder.encode(product_sku_list);
req = &quot;address_id=&quot;+bsh.args[0]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[4]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
req = &quot;_sncp=&quot;+bsh.args[0]+&quot;&amp;address_id=&quot;+bsh.args[1]+&quot;&amp;app_version=5.8.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;is_print_price=Y&amp;method=app.Shopping.easySubmit&amp;os_version=yohobuy:web&amp;payment_id=15&amp;payment_type=1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku_list=&quot;+product_sku_list+&quot;&amp;screen_size=720x1280&amp;session_key=6dcded32fa271b3473d8917f039979fd&amp;udid=yoho_pc&amp;uid=&quot;+bsh.args[5]+&quot;&amp;use_yoho_coin=0&amp;v=7&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ...