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
85b6d4a863fd0c37914ed0902cfd7f78855c40c2
1 parent
5fdc502b
master
...
qq
commit by shell
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
script/default/test.jmx
script/default/test.jmx
View file @
85b6d4a
...
...
@@ -204,7 +204,7 @@
<stringProp
name=
"shareMode"
>
shareMode.all
</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"tg_app_product_
data
"
enabled=
"true"
>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"tg_app_product_
intro
"
enabled=
"true"
>
<stringProp
name=
"ThreadGroup.on_sample_error"
>
continue
</stringProp>
<elementProp
name=
"ThreadGroup.main_controller"
elementType=
"LoopController"
guiclass=
"LoopControlPanel"
testclass=
"LoopController"
testname=
"循环控制器"
enabled=
"true"
>
<boolProp
name=
"LoopController.continue_forever"
>
false
</boolProp>
...
...
@@ -217,10 +217,10 @@
<boolProp
name=
"ThreadGroup.scheduler"
>
false
</boolProp>
<stringProp
name=
"ThreadGroup.duration"
></stringProp>
<stringProp
name=
"ThreadGroup.delay"
></stringProp>
<stringProp
name=
"TestPlan.comments"
>
商品详情
2522;本
;信息
</stringProp>
<stringProp
name=
"TestPlan.comments"
>
商品详情
5551;述
;信息
</stringProp>
</ThreadGroup>
<hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"tc_app_product_
data
"
enabled=
"true"
>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"tc_app_product_
intro
"
enabled=
"true"
>
<boolProp
name=
"HTTPSampler.postBodyRaw"
>
true
</boolProp>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
>
<collectionProp
name=
"Arguments.arguments"
>
...
...
@@ -245,7 +245,7 @@
<boolProp
name=
"HTTPSampler.DO_MULTIPART_POST"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.monitor"
>
false
</boolProp>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"TestPlan.comments"
>
商品详情
2522;本
;信息
</stringProp>
<stringProp
name=
"TestPlan.comments"
>
商品详情
5551;述
;信息
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<BeanShellPreProcessor
guiclass=
"TestBeanGUI"
testclass=
"BeanShellPreProcessor"
testname=
"前置BeanShell"
enabled=
"true"
>
...
...
@@ -260,7 +260,7 @@ String[] privateKeys = {"fd4ad5fcfa0de589ef238c0e7331b585"};
int rd = new Random().nextInt(1);
String clientType = clientTypes[rd];
String privateKey = privateKeys[rd];
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
current_vip_level=0
&
fromPage=iFP_ProductDetail
&
is_student=0
&
method=app.product.data
&
os_version=9.1
&
physical_channel=1
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[0]+
"&
screen_size=375x667
&
session_key=c9e62120b6a534dea8a06e8e3875e810
&
showcomment=Y
&
token=
&
udid=dbff80c827e771b3035a1a5ae80892d571860a8d
&
uid=
"
+bsh.args[1]+
"&
v=7
"
;
String req =
"
app_version=5.8.1
&
client_type=
"
+clientType+
"&
fromPage=iFP_ProductDetail
&
method=app.product.intro
&
os_version=10.3.2
&
physical_channel=3
&
private_key=
"
+privateKey+
"&
product_skn=
"
+bsh.args[0]+
"&
return_type=html
&
screen_size=414x736
&
session_key=206e990645b864b46bdcf0052f7916cc
&
udid=06d06e09f9a194e4078712c49dc3402632d30d85
&
uid=
"
+bsh.args[1]+
"&
v=7
&
yh_channel=3
"
;
MessageDigest md = MessageDigest.getInstance(
"
MD5
"
);
byte[] btInput = req.getBytes();
md.update(btInput);
...
...
@@ -279,7 +279,7 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri
<hashTree/>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"1450572480"
>
"
code
"
:200
</stringProp>
<stringProp
name=
"1450572480"
>
html
</stringProp>
</collectionProp>
<stringProp
name=
"TestPlan.comments"
></stringProp>
<stringProp
name=
"Assertion.test_field"
>
Assertion.response_data
</stringProp>
...
...
Please
register
or
login
to post a comment