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
d7a8aa8f2febb0528be9e426175c5d3f3e06ca94
1 parent
d3085f69
commit by shell
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
101 additions
and
19 deletions
script/default/test4.jmx
script/default/test4.jmx
View file @
d7a8aa8
...
...
@@ -12,35 +12,39 @@
<stringProp
name=
"TestPlan.user_define_classpath"
></stringProp>
</TestPlan>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"header_pc
_item
"
enabled=
"true"
>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"header_pc"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
User-Agent
</stringProp>
<stringProp
name=
"Header.value"
>
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Accept
</stringProp>
<stringProp
name=
"Header.value"
>
text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Accept-Encoding
</stringProp>
<stringProp
name=
"Header.value"
>
gzip, deflate
</stringProp>
<stringProp
name=
"Header.name"
>
Accept-Language
</stringProp>
<stringProp
name=
"Header.value"
>
zh-CN,zh;q=0.8,en-US;q=0.5,en;q=
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Accept-Language
</stringProp>
<stringProp
name=
"Header.value"
>
zh-CN,zh;q=0.8
</stringProp>
<stringProp
name=
"Header.name"
>
Accept-Encoding
</stringProp>
<stringProp
name=
"Header.value"
>
gzip, deflate
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Cache-Control
</stringProp>
<stringProp
name=
"Header.value"
>
max-age=0
</stringProp>
<stringProp
name=
"Header.name"
>
Content-Type
</stringProp>
<stringProp
name=
"Header.value"
>
application/x-www-form-urlencoded; charset=UTF-8
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Host
</stringProp>
<stringProp
name=
"Header.value"
>
item.yohobuy.com
</stringProp>
<stringProp
name=
"Header.name"
>
X-Requested-With
</stringProp>
<stringProp
name=
"Header.value"
>
XMLHttpRequest
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Upgrade-Insecure-Requests
</stringProp>
<stringProp
name=
"Header.value"
>
1
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
User-Agent
</stringProp>
<stringProp
name=
"Header.value"
>
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
</stringProp>
<stringProp
name=
"Header.name"
>
Host
</stringProp>
<stringProp
name=
"Header.value"
>
item.yohobuy.com
</stringProp>
</elementProp>
</collectionProp>
<stringProp
name=
"TestPlan.comments"
></stringProp>
...
...
@@ -97,7 +101,7 @@
<stringProp
name=
"shareMode"
>
shareMode.all
</stringProp>
</CSVDataSet>
<hashTree/>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"tg_&#
21830;品详情
;页"
enabled=
"true"
>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"tg_&#
36141;物车
;页"
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>
...
...
@@ -118,7 +122,7 @@
<boolProp
name=
"TransactionController.parent"
>
false
</boolProp>
</TransactionController>
<hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"tc_&#
21830;品详情
;页"
enabled=
"true"
>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"tc_&#
36141;物车
;页"
enabled=
"true"
>
<boolProp
name=
"HTTPSampler.postBodyRaw"
>
true
</boolProp>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
>
<collectionProp
name=
"Arguments.arguments"
>
...
...
@@ -135,7 +139,7 @@
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
ITEM}/${product_skn}.html
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
PC}/cart/cart
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
...
...
@@ -168,7 +172,7 @@
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
ITEM}/product/detail/header?productSkn=${product_skn}
&
md5=23f6562111a48d95199bfb3de7a3b5f7
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
PC}/common/suggestfeedback?callback=jQuery112406794760531637825_1505889296863
&
return_type=jsonp
&
client_secret=web
&
code=200
&
_=1505889296864
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
...
...
@@ -207,7 +211,7 @@
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
ITEM}/product/index/favnum?sid=986
&
bid=1621
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_
PC}/cart/cart/recommendProduct
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
...
...
@@ -235,7 +239,46 @@
<collectionProp
name=
"Arguments.arguments"
>
<elementProp
name=
""
elementType=
"HTTPArgument"
>
<boolProp
name=
"HTTPArgument.always_encode"
>
false
</boolProp>
<stringProp
name=
"Argument.value"
>
shopId=2214
</stringProp>
<stringProp
name=
"Argument.value"
></stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_PC}/common/recentReview?callback=jQuery112406794760531637825_1505889296865
&
limit=15
&
_=1505889296866
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.use_keepalive"
>
true
</boolProp>
<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"
>
务必以
tc_
开头,否则无法获取统计结果
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"1450572480"
></stringProp>
</collectionProp>
<stringProp
name=
"TestPlan.comments"
></stringProp>
<stringProp
name=
"Assertion.test_field"
>
Assertion.response_data
</stringProp>
<boolProp
name=
"Assertion.assume_success"
>
false
</boolProp>
<intProp
name=
"Assertion.test_type"
>
16
</intProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"ajax_4"
enabled=
"true"
>
<boolProp
name=
"HTTPSampler.postBodyRaw"
>
true
</boolProp>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
>
<collectionProp
name=
"Arguments.arguments"
>
<elementProp
name=
""
elementType=
"HTTPArgument"
>
<boolProp
name=
"HTTPArgument.always_encode"
>
false
</boolProp>
<stringProp
name=
"Argument.value"
></stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
...
...
@@ -246,8 +289,47 @@
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_ITEM}/product/index/isFavoriteShop
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_PC}/cart/cart/checkFav
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.use_keepalive"
>
true
</boolProp>
<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"
>
务必以
tc_
开头,否则无法获取统计结果
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"1450572480"
></stringProp>
</collectionProp>
<stringProp
name=
"TestPlan.comments"
></stringProp>
<stringProp
name=
"Assertion.test_field"
>
Assertion.response_data
</stringProp>
<boolProp
name=
"Assertion.assume_success"
>
false
</boolProp>
<intProp
name=
"Assertion.test_type"
>
16
</intProp>
</ResponseAssertion>
<hashTree/>
</hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"ajax_5"
enabled=
"true"
>
<boolProp
name=
"HTTPSampler.postBodyRaw"
>
true
</boolProp>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
>
<collectionProp
name=
"Arguments.arguments"
>
<elementProp
name=
""
elementType=
"HTTPArgument"
>
<boolProp
name=
"HTTPArgument.always_encode"
>
false
</boolProp>
<stringProp
name=
"Argument.value"
></stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
http://${HOST_PC}/passport/cert/headerTip?callback=jQuery112406794760531637825_1505889296867
&
_=1505889296868
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
GET
</stringProp>
<boolProp
name=
"HTTPSampler.follow_redirects"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.auto_redirects"
>
false
</boolProp>
<boolProp
name=
"HTTPSampler.use_keepalive"
>
true
</boolProp>
...
...
Please
register
or
login
to post a comment