Authored by Rong

commit by shell

... ... @@ -41,8 +41,13 @@
</collectionProp>
<stringProp name="TestPlan.comments"></stringProp> </Arguments>
<hashTree/>
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="arguments_NULL" enabled="true">
<Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="arguments_&#32447;&#19979;&#24215;" enabled="true">
<collectionProp name="Arguments.arguments">
<elementProp name="offline_warehouse_id" elementType="Argument">
<stringProp name="Argument.name">offline_warehouse_id</stringProp>
<stringProp name="Argument.value">12</stringProp>
<stringProp name="Argument.metadata">=</stringProp>
</elementProp>
<elementProp name="offline_shopping_key" elementType="Argument">
<stringProp name="Argument.name">offline_shopping_key</stringProp>
<stringProp name="Argument.value">a34d0ac74038cf67019950617c1fa7bb</stringProp>
... ... @@ -127,7 +132,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">${offline_uid} ${offline_shopping_key} ${offline_uid}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_shopping_key} ${offline_uid} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -137,7 +142,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.query&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.query&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;uid=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -198,7 +203,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">${offline_uid} ${offline_product_sku} ${offline_shopping_key}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_sku} ${offline_shopping_key} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -208,7 +213,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;buy_type=1&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;increase_number=1&amp;method=app.ShoppingForOffline.increase&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;buy_type=1&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;increase_number=1&amp;method=app.ShoppingForOffline.increase&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -269,7 +274,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">${offline_uid} ${offline_product_sku} ${offline_shopping_key}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_sku} ${offline_shopping_key} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -279,7 +284,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;buy_type=1&amp;client_type=&quot;+clientType+&quot;&amp;decrease_number=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.decrease&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;buy_type=1&amp;client_type=&quot;+clientType+&quot;&amp;decrease_number=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.decrease&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_sku=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -340,7 +345,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">${offline_uid} ${offline_product_skn} ${offline_shopping_key} ${offline_product_sku} ${offline_product_sku}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_shopping_key} ${offline_product_sku} ${offline_product_sku} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -350,7 +355,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String swap_data = &quot;[{\&quot;old_product_sku\&quot;:&quot;+bsh.args[3]+&quot;,\&quot;buy_number\&quot;:1,\&quot;new_product_sku\&quot;:&quot;+bsh.args[4]+&quot;,\&quot;old_buy_type\&quot;:1,\&quot;new_buy_type\&quot;:2}]&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.swap&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;swap_data=&quot;+swap_data+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.swap&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;swap_data=&quot;+swap_data+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[5]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -365,7 +370,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
swap_data=URLEncoder.encode(swap_data);
req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.swap&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;swap_data=&quot;+swap_data+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.swap&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;swap_data=&quot;+swap_data+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[5]+&quot;&quot;;
vars.put(&quot;searchValue&quot;,req+&quot;&amp;client_secret=&quot;+md5);</stringProp>
</BeanShellPreProcessor>
<hashTree/>
... ... @@ -411,7 +416,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">${offline_uid} ${offline_product_skn} ${offline_shopping_key}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -421,7 +426,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.add&amp;offline_buy_number=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=600155&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[2]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.add&amp;offline_buy_number=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;promotion_id=0&amp;screen_size=768x1024&amp;session_key=a9a868dab48bcd3ea6f2ea78eaa6b152&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -631,7 +636,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">${offline_uid} ${offline_shopping_key} ${offline_store_id} ${offline_uid}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_shopping_key} ${offline_store_id} ${offline_uid} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -641,7 +646,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;address_id=0&amp;app_version=5.6.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineSubmit&amp;offline_buy_type=1&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;receiverMobile=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;store_id=&quot;+bsh.args[2]+&quot;&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;address_id=0&amp;app_version=5.6.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineSubmit&amp;offline_buy_type=1&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;receiverMobile=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[1]+&quot;&amp;store_id=&quot;+bsh.args[2]+&quot;&amp;uid=&quot;+bsh.args[3]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[4]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -735,7 +740,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">${offline_uid} ${offline_product_skn} ${offline_product_sku}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -745,7 +750,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineBuyNowLockStock&amp;off_line_num=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;app_version=5.6.0&amp;client_type=&quot;+clientType+&quot;&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineBuyNowLockStock&amp;off_line_num=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;v=7&amp;warehouse_id=&quot;+bsh.args[3]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ... @@ -948,7 +953,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">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_shopping_key} ${offline_store_id} ${offline_uid}</stringProp>
<stringProp name="parameters">${offline_uid} ${offline_product_skn} ${offline_product_sku} ${offline_shopping_key} ${offline_store_id} ${offline_uid} ${offline_warehouse_id}</stringProp>
<stringProp name="filename"></stringProp>
<stringProp name="script">import java.security.MessageDigest;
import java.util.Random;
... ... @@ -958,7 +963,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req = &quot;address_id=0&amp;app_version=5.6.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineEasySubmit&amp;off_line_num=1&amp;offline_buy_type=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;receiverMobile=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[3]+&quot;&amp;store_id=&quot;+bsh.args[4]+&quot;&amp;uid=&quot;+bsh.args[5]+&quot;&amp;v=7&amp;warehouse_id=10&quot;;
String req = &quot;address_id=0&amp;app_version=5.6.0&amp;cart_type=ordinary&amp;client_type=&quot;+clientType+&quot;&amp;delivery_time=2&amp;delivery_way=1&amp;employee_uid=&quot;+bsh.args[0]+&quot;&amp;method=app.ShoppingForOffline.offlineEasySubmit&amp;off_line_num=1&amp;offline_buy_type=1&amp;online_buy_number=0&amp;os_version=10.3.1&amp;private_key=&quot;+privateKey+&quot;&amp;product_skn=&quot;+bsh.args[1]+&quot;&amp;product_sku=&quot;+bsh.args[2]+&quot;&amp;receiverMobile=0&amp;screen_size=768x1024&amp;session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c&amp;shopping_key=&quot;+bsh.args[3]+&quot;&amp;store_id=&quot;+bsh.args[4]+&quot;&amp;uid=&quot;+bsh.args[5]+&quot;&amp;v=7&amp;warehouse_id=&quot;+bsh.args[6]+&quot;&quot;;
MessageDigest md = MessageDigest.getInstance(&quot;MD5&quot;);
byte[] btInput = req.getBytes();
md.update(btInput);
... ...