Toggle navigation
Toggle navigation
This project
Loading...
Sign in
YPT
/
jmeter
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rong
8 years ago
Commit
cc6ccdab9b21ef727b23c612465d6e3ce1dadc5f
1 parent
f105280b
commit by shell
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
script/offline/offlineCart.jmx
script/offline/offlineCart.jmx
View file @
cc6ccda
...
...
@@ -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_
线下店
"
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=
"前置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 =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.query
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[1]+
"&
uid=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.query
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[1]+
"&
uid=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
"
+bsh.args[3]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -198,7 +203,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"
>
${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 =
"
app_version=5.6.0
&
buy_type=1
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
increase_number=1
&
method=app.ShoppingForOffline.increase
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
app_version=5.6.0
&
buy_type=1
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
increase_number=1
&
method=app.ShoppingForOffline.increase
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
"
+bsh.args[3]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -269,7 +274,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"
>
${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 =
"
app_version=5.6.0
&
buy_type=1
&
client_type=
"
+clientType+
"&
decrease_number=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.decrease
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
app_version=5.6.0
&
buy_type=1
&
client_type=
"
+clientType+
"&
decrease_number=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.decrease
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=
"
+bsh.args[3]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -340,7 +345,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"
>
${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 =
"
[{\
"
old_product_sku\
"
:
"
+bsh.args[3]+
"
,\
"
buy_number\
"
:1,\
"
new_product_sku\
"
:
"
+bsh.args[4]+
"
,\
"
old_buy_type\
"
:1,\
"
new_buy_type\
"
:2}]
"
;
String req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.swap
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
swap_data=
"
+swap_data+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.swap
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
swap_data=
"
+swap_data+
"&
v=7
&
warehouse_id=
"
+bsh.args[5]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
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 =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.swap
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
swap_data=
"
+swap_data+
"&
v=7
&
warehouse_id=
10
"
;
req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.swap
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
swap_data=
"
+swap_data+
"&
v=7
&
warehouse_id=
"
+bsh.args[5]+
"
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -411,7 +416,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"
>
${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 =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.add
&
offline_buy_number=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
600155
&
promotion_id=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[2]+
"&
v=7
&
warehouse_id=10
"
;
String req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.add
&
offline_buy_number=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
"
+bsh.args[2]+
"&
promotion_id=0
&
screen_size=768x1024
&
session_key=a9a868dab48bcd3ea6f2ea78eaa6b152
&
v=7
&
warehouse_id=
"
+bsh.args[3]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -631,7 +636,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"
>
${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 =
"
address_id=0
&
app_version=5.6.0
&
cart_type=ordinary
&
client_type=
"
+clientType+
"&
delivery_time=2
&
delivery_way=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineSubmit
&
offline_buy_type=1
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
receiverMobile=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[1]+
"&
store_id=
"
+bsh.args[2]+
"&
uid=
"
+bsh.args[3]+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
address_id=0
&
app_version=5.6.0
&
cart_type=ordinary
&
client_type=
"
+clientType+
"&
delivery_time=2
&
delivery_way=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineSubmit
&
offline_buy_type=1
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
receiverMobile=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[1]+
"&
store_id=
"
+bsh.args[2]+
"&
uid=
"
+bsh.args[3]+
"&
v=7
&
warehouse_id=
"
+bsh.args[4]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -735,7 +740,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"
>
${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 =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineBuyNowLockStock
&
off_line_num=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
"
+bsh.args[2]+
"&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
v=7
&
warehouse_id=
10
"
;
String req =
"
app_version=5.6.0
&
client_type=
"
+clientType+
"&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineBuyNowLockStock
&
off_line_num=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
"
+bsh.args[2]+
"&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
v=7
&
warehouse_id=
"
+bsh.args[3]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -948,7 +953,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"
>
${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 =
"
address_id=0
&
app_version=5.6.0
&
cart_type=ordinary
&
client_type=
"
+clientType+
"&
delivery_time=2
&
delivery_way=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineEasySubmit
&
off_line_num=1
&
offline_buy_type=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
"
+bsh.args[2]+
"&
receiverMobile=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[3]+
"&
store_id=
"
+bsh.args[4]+
"&
uid=
"
+bsh.args[5]+
"&
v=7
&
warehouse_id=
10
"
;
String req =
"
address_id=0
&
app_version=5.6.0
&
cart_type=ordinary
&
client_type=
"
+clientType+
"&
delivery_time=2
&
delivery_way=1
&
employee_uid=
"
+bsh.args[0]+
"&
method=app.ShoppingForOffline.offlineEasySubmit
&
off_line_num=1
&
offline_buy_type=1
&
online_buy_number=0
&
os_version=10.3.1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[1]+
"&
product_sku=
"
+bsh.args[2]+
"&
receiverMobile=0
&
screen_size=768x1024
&
session_key=2c7a09f4590e4f1ff4dc586ad1c7e98c
&
shopping_key=
"
+bsh.args[3]+
"&
store_id=
"
+bsh.args[4]+
"&
uid=
"
+bsh.args[5]+
"&
v=7
&
warehouse_id=
"
+bsh.args[6]+
"
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
Please
register
or
login
to post a comment