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
7 years ago
Commit
c9a839f5a5fd32213b4bc2df5ea567564caa4f4e
1 parent
72c0b8a4
commit by shell
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
script/default/test1.jmx
script/default/test1.jmx
View file @
c9a839f
...
...
@@ -225,7 +225,7 @@
<BeanShellPreProcessor
guiclass=
"TestBeanGUI"
testclass=
"BeanShellPreProcessor"
testname=
"前置BeanShell"
enabled=
"true"
>
<stringProp
name=
"TestPlan.comments"
></stringProp>
<boolProp
name=
"resetInterpreter"
>
false
</boolProp>
<stringProp
name=
"parameters"
>
${cart_uid}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
cart_uid}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -235,7 +235,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
yohobuy:web
"
;
String req =
"
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.queryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=3b3af315f8ee63ba511d596496dabd39
&
shopping_key=0
&
uid=
"
+bsh.args[0
]+
"&
v=7
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.queryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=3b3af315f8ee63ba511d596496dabd39
&
shopping_key=0
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -250,7 +250,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req =
"
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.queryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=3b3af315f8ee63ba511d596496dabd39
&
shopping_key=0
&
uid=
"
+bsh.args[0
]+
"&
v=7
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.queryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=3b3af315f8ee63ba511d596496dabd39
&
shopping_key=0
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -323,7 +323,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"
>
${cart_promotion_id} ${cart_uid}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
cart_promotion_id} ${cart_uid}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -333,7 +333,7 @@ int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
android5.1:HUAWEI_TAG-TL00
"
;
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
gender=1,3
&
method=app.Shopping.queryPromotionGifts
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
promotion_ids=
"
+bsh.args[0]+
"&
screen_size=720x1184
&
session_key=266c935f31d983be4e7a53c860a0aa08
&
udid=8607740395271396b56710412cb59c1
&
uid=
"
+bsh.args[1
]+
"&
v=7
&
yh_channel=1
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
gender=1,3
&
method=app.Shopping.queryPromotionGifts
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
promotion_ids=
"
+bsh.args[1]+
"&
screen_size=720x1184
&
session_key=266c935f31d983be4e7a53c860a0aa08
&
udid=8607740395271396b56710412cb59c1
&
uid=
"
+bsh.args[2
]+
"&
v=7
&
yh_channel=1
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -348,7 +348,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
gender=1,3
&
method=app.Shopping.queryPromotionGifts
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
promotion_ids=
"
+bsh.args[0]+
"&
screen_size=720x1184
&
session_key=266c935f31d983be4e7a53c860a0aa08
&
udid=8607740395271396b56710412cb59c1
&
uid=
"
+bsh.args[1
]+
"&
v=7
&
yh_channel=1
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
gender=1,3
&
method=app.Shopping.queryPromotionGifts
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
promotion_ids=
"
+bsh.args[1]+
"&
screen_size=720x1184
&
session_key=266c935f31d983be4e7a53c860a0aa08
&
udid=8607740395271396b56710412cb59c1
&
uid=
"
+bsh.args[2
]+
"&
v=7
&
yh_channel=1
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -421,7 +421,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"
>
${sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -431,7 +431,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
yohobuy:web
"
;
String req =
"
app_version=5.8.0
&
buy_number=1
&
client_type=
"
+clientType+
"&
edit_product_sku=0
&
goods_type=0
&
method=app.Shopping.add
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[0]+
"&
promotion_id=
&
screen_size=720x1280
&
selected=Y
&
session_key=5103fd2c7217459929865c1da6aa7f5a
&
shopping_key=0
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
buy_number=1
&
client_type=
"
+clientType+
"&
edit_product_sku=0
&
goods_type=0
&
method=app.Shopping.add
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=
&
screen_size=720x1280
&
selected=Y
&
session_key=5103fd2c7217459929865c1da6aa7f5a
&
shopping_key=0
&
uid=
"
+bsh.args[2
]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -446,7 +446,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req =
"
app_version=5.8.0
&
buy_number=1
&
client_type=
"
+clientType+
"&
edit_product_sku=0
&
goods_type=0
&
method=app.Shopping.add
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[0]+
"&
promotion_id=
&
screen_size=720x1280
&
selected=Y
&
session_key=5103fd2c7217459929865c1da6aa7f5a
&
shopping_key=0
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
buy_number=1
&
client_type=
"
+clientType+
"&
edit_product_sku=0
&
goods_type=0
&
method=app.Shopping.add
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku=
"
+bsh.args[1]+
"&
promotion_id=
&
screen_size=720x1280
&
selected=Y
&
session_key=5103fd2c7217459929865c1da6aa7f5a
&
shopping_key=0
&
uid=
"
+bsh.args[2
]+
"&
v=7
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -519,7 +519,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"
>
${sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -529,8 +529,8 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
yohobuy:web
"
;
String product_sku_list =
"
[{\
"
product_sku\
"
:
"
+bsh.args[0]+
"
,\
"
buy_number\
"
:1,\
"
promotion_id\
"
:0}]
"
;
String req =
"
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.removeAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=ee6f3430e10c933810a7bf78576bfb47
&
shopping_key=0
&
uid=
"
+bsh.args[1]+
"&
v=7
"
;
String product_sku_list =
"
[{\
"
product_sku\
"
:
"
+bsh.args[1]+
"
,\
"
buy_number\
"
:1,\
"
promotion_id\
"
:0}]
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.removeAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=ee6f3430e10c933810a7bf78576bfb47
&
shopping_key=0
&
uid=
"
+bsh.args[2]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -546,7 +546,7 @@ for(byte b : btResult){
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
product_sku_list=URLEncoder.encode(product_sku_list);
req =
"
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.removeAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=ee6f3430e10c933810a7bf78576bfb47
&
shopping_key=0
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.removeAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=ee6f3430e10c933810a7bf78576bfb47
&
shopping_key=0
&
uid=
"
+bsh.args[2
]+
"&
v=7
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -619,7 +619,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"
>
${__RandomString(1,YN,)} ${sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
__RandomString(1,YN,)} ${sku_edit} ${uid_edit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -629,8 +629,8 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
yohobuy:h5
"
;
String product_sku_list =
"
[{\
"
goods_type\
"
:\
"
ordinary\
"
,\
"
selected\
"
:\
""
+bsh.args[0]+
"
\
"
,\
"
product_sku\
"
:
"
+bsh.args[1]+
"
,\
"
promotion_id\
"
:\
"
\
"
,\
"
buy_number\
"
:\
"
1\
"
}]
"
;
String req =
"
app_version=5.9.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.selectedAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=00ed65eb36a474388df2fa2d6e97a8a5
&
shopping_key=73f21814e488a48fc0204d780cea2302
&
uid=
"
+bsh.args[2]+
"&
v=7
"
;
String product_sku_list =
"
[{\
"
goods_type\
"
:\
"
ordinary\
"
,\
"
selected\
"
:\
""
+bsh.args[1]+
"
\
"
,\
"
product_sku\
"
:
"
+bsh.args[2]+
"
,\
"
promotion_id\
"
:\
"
\
"
,\
"
buy_number\
"
:\
"
1\
"
}]
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.9.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.selectedAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=00ed65eb36a474388df2fa2d6e97a8a5
&
shopping_key=73f21814e488a48fc0204d780cea2302
&
uid=
"
+bsh.args[3]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -646,7 +646,7 @@ for(byte b : btResult){
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
product_sku_list=URLEncoder.encode(product_sku_list);
req =
"
app_version=5.9.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.selectedAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=00ed65eb36a474388df2fa2d6e97a8a5
&
shopping_key=73f21814e488a48fc0204d780cea2302
&
uid=
"
+bsh.args[2
]+
"&
v=7
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.9.0
&
client_type=
"
+clientType+
"&
is_support_mlp=Y
&
method=app.Shopping.selectedAndQryCart
&
os_version=
"
+os_version+
"&
private_key=
"
+privateKey+
"&
product_sku_list=
"
+product_sku_list+
"&
screen_size=720x1280
&
session_key=00ed65eb36a474388df2fa2d6e97a8a5
&
shopping_key=73f21814e488a48fc0204d780cea2302
&
uid=
"
+bsh.args[3
]+
"&
v=7
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -817,7 +817,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"
>
${uid_edit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
uid_edit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -827,7 +827,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
method=app.address.get
&
os_version=10.3.2
&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=375x667
&
session_key=c4f170c70a600b3df96e867c2bbacd4c
&
udid=2c079bef53b4c209243252984cb0b4498fbf13b7
&
uid=
"
+bsh.args[0
]+
"&
v=7
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=iFP_AppDelegate
&
method=app.address.getlist
&
os_version=10.3.1
&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=375x667
&
udid=155baae56a5ce7d9e7f9bf037a41a9e8fd766dda
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -1307,7 +1307,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"
>
${uid_submit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
uid_submit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -1317,7 +1317,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String os_version =
"
android5.0.2:vivo_Y33
"
;
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=aFP_ChoosePayWay
&
gender=1,3
&
method=app.payment.findPayListDetail
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=f0c318ece4d0aba1dffa909bda9114bf
&
udid=8688590290067987d3cae6cca3e561a
&
uid=
"
+bsh.args[0
]+
"&
v=7
&
yh_channel=1
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=aFP_ChoosePayWay
&
gender=1,3
&
method=app.payment.findPayListDetail
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=f0c318ece4d0aba1dffa909bda9114bf
&
udid=8688590290067987d3cae6cca3e561a
&
uid=
"
+bsh.args[1
]+
"&
v=7
&
yh_channel=1
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -1332,7 +1332,7 @@ for(byte b : btResult){
}
String md5 = sb.toString();
os_version=URLEncoder.encode(os_version);
req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=aFP_ChoosePayWay
&
gender=1,3
&
method=app.payment.findPayListDetail
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=f0c318ece4d0aba1dffa909bda9114bf
&
udid=8688590290067987d3cae6cca3e561a
&
uid=
"
+bsh.args[0
]+
"&
v=7
&
yh_channel=1
"
;
req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=aFP_ChoosePayWay
&
gender=1,3
&
method=app.payment.findPayListDetail
&
os_version=
"
+os_version+
"&
physical_channel=1
&
private_key=
"
+privateKey+
"&
screen_size=720x1280
&
session_key=f0c318ece4d0aba1dffa909bda9114bf
&
udid=8688590290067987d3cae6cca3e561a
&
uid=
"
+bsh.args[1
]+
"&
v=7
&
yh_channel=1
"
;
vars.put(
"
searchValue
"
,req+
"&
client_secret=
"
+md5);
</stringProp>
</BeanShellPreProcessor>
<hashTree/>
...
...
@@ -1405,7 +1405,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"
>
${product_skn} ${uid_edit}
</stringProp>
<stringProp
name=
"parameters"
>
${
SNCP} ${
product_skn} ${uid_edit}
</stringProp>
<stringProp
name=
"filename"
></stringProp>
<stringProp
name=
"script"
>
import java.security.MessageDigest;
import java.util.Random;
...
...
@@ -1415,7 +1415,7 @@ int rd = new Random().nextInt(2);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
limit=2
&
method=app.recommend.purchased
&
os_version=10.0.2
&
physical_channel=1
&
private_key=
"
+privateKey+
"&
productSkn=
"
+bsh.args[0]+
"&
rec_pos=100007
&
screen_size=375x667
&
session_key=9ca3b28ae75a7cf8790cf9a79a61cda3
&
udid=d961ca21607cfc982caafdc23630f9461b373fb3
&
uid=
"
+bsh.args[1
]+
"&
v=7
"
;
String req =
"
_sncp=
"
+bsh.args[0]+
"&
app_version=5.8.1
&
client_type=
"
+clientType+
"&
limit=2
&
method=app.recommend.purchased
&
os_version=10.0.2
&
physical_channel=1
&
private_key=
"
+privateKey+
"&
productSkn=
"
+bsh.args[1]+
"&
rec_pos=100007
&
screen_size=375x667
&
session_key=9ca3b28ae75a7cf8790cf9a79a61cda3
&
udid=d961ca21607cfc982caafdc23630f9461b373fb3
&
uid=
"
+bsh.args[2
]+
"&
v=7
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
Please
register
or
login
to post a comment