Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
opt
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
test
opt
Commits
b5f53177
Commit
b5f53177
authored
Sep 13, 2021
by
章钰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品推荐
parent
1323c68c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
847 additions
and
0 deletions
+847
-0
autoscript/商品推荐.jmx
+847
-0
No files found.
autoscript/商品推荐.jmx
0 → 100644
View file @
b5f53177
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan
version=
"1.2"
properties=
"5.0"
jmeter=
"5.1.1 r1855137"
>
<hashTree>
<TestPlan
guiclass=
"TestPlanGui"
testclass=
"TestPlan"
testname=
"测试计划"
enabled=
"true"
>
<stringProp
name=
"TestPlan.comments"
></stringProp>
<boolProp
name=
"TestPlan.functional_mode"
>
false
</boolProp>
<boolProp
name=
"TestPlan.tearDown_on_shutdown"
>
true
</boolProp>
<boolProp
name=
"TestPlan.serialize_threadgroups"
>
true
</boolProp>
<elementProp
name=
"TestPlan.user_defined_variables"
elementType=
"Arguments"
guiclass=
"ArgumentsPanel"
testclass=
"Arguments"
testname=
"用户定义的变量"
enabled=
"true"
>
<collectionProp
name=
"Arguments.arguments"
/>
</elementProp>
<stringProp
name=
"TestPlan.user_define_classpath"
></stringProp>
</TestPlan>
<hashTree>
<ConfigTestElement
guiclass=
"HttpDefaultsGui"
testclass=
"ConfigTestElement"
testname=
"HTTP请求默认值"
enabled=
"true"
>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
guiclass=
"HTTPArgumentsPanel"
testclass=
"Arguments"
testname=
"用户定义的变量"
enabled=
"true"
>
<collectionProp
name=
"Arguments.arguments"
/>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
>
testopt.jwsmed.com
</stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
>
https
</stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
></stringProp>
<stringProp
name=
"HTTPSampler.concurrentPool"
>
6
</stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</ConfigTestElement>
<hashTree/>
<CookieManager
guiclass=
"CookiePanel"
testclass=
"CookieManager"
testname=
"HTTP Cookie管理器"
enabled=
"true"
>
<collectionProp
name=
"CookieManager.cookies"
/>
<boolProp
name=
"CookieManager.clearEachIteration"
>
false
</boolProp>
</CookieManager>
<hashTree/>
<JDBCDataSource
guiclass=
"TestBeanGUI"
testclass=
"JDBCDataSource"
testname=
"JDBC Connection Configuration"
enabled=
"true"
>
<boolProp
name=
"autocommit"
>
true
</boolProp>
<stringProp
name=
"checkQuery"
>
select 1
</stringProp>
<stringProp
name=
"connectionAge"
>
5000
</stringProp>
<stringProp
name=
"dataSource"
>
jarvis_prod_test
</stringProp>
<stringProp
name=
"dbUrl"
>
jdbc:mysql://rm-2zer7527706ysmqd4o.mysql.rds.aliyuncs.com:3306/jarvis_prod_test
</stringProp>
<stringProp
name=
"driver"
>
com.mysql.jdbc.Driver
</stringProp>
<boolProp
name=
"keepAlive"
>
true
</boolProp>
<stringProp
name=
"password"
>
Jarvis_test
</stringProp>
<stringProp
name=
"poolMax"
>
0
</stringProp>
<stringProp
name=
"timeout"
>
10000
</stringProp>
<stringProp
name=
"transactionIsolation"
>
DEFAULT
</stringProp>
<stringProp
name=
"trimInterval"
>
60000
</stringProp>
<stringProp
name=
"username"
>
jarvis_test
</stringProp>
<stringProp
name=
"initQuery"
></stringProp>
</JDBCDataSource>
<hashTree/>
<SetupThreadGroup
guiclass=
"SetupThreadGroupGui"
testclass=
"SetupThreadGroup"
testname=
"登录"
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>
<stringProp
name=
"LoopController.loops"
>
1
</stringProp>
</elementProp>
<stringProp
name=
"ThreadGroup.num_threads"
>
1
</stringProp>
<stringProp
name=
"ThreadGroup.ramp_time"
>
1
</stringProp>
<boolProp
name=
"ThreadGroup.scheduler"
>
false
</boolProp>
<stringProp
name=
"ThreadGroup.duration"
></stringProp>
<stringProp
name=
"ThreadGroup.delay"
></stringProp>
</SetupThreadGroup>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"HTTP信息头管理器"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Content-Type
</stringProp>
<stringProp
name=
"Header.value"
>
application/x-www-form-urlencoded
</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"登录"
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"
>
username=yu.zhang
&
password=123456
&
userId=yu.zhang
&
userPwd=123456
&
grant_type=password
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/user/index/ajax/login
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"false"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"723337899"
>
"
code
"
:200
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></stringProp>
<stringProp
name=
"Assertion.test_field"
>
Assertion.response_data
</stringProp>
<boolProp
name=
"Assertion.assume_success"
>
false
</boolProp>
<intProp
name=
"Assertion.test_type"
>
2
</intProp>
</ResponseAssertion>
<hashTree/>
<JSONPostProcessor
guiclass=
"JSONPostProcessorGui"
testclass=
"JSONPostProcessor"
testname=
"JSON提取器"
enabled=
"true"
>
<stringProp
name=
"JSONPostProcessor.referenceNames"
>
code
</stringProp>
<stringProp
name=
"JSONPostProcessor.jsonPathExprs"
>
$.code
</stringProp>
<stringProp
name=
"JSONPostProcessor.match_numbers"
></stringProp>
<stringProp
name=
"JSONPostProcessor.defaultValues"
>
null
</stringProp>
<boolProp
name=
"JSONPostProcessor.compute_concat"
>
true
</boolProp>
</JSONPostProcessor>
<hashTree/>
<RegexExtractor
guiclass=
"RegexExtractorGui"
testclass=
"RegexExtractor"
testname=
"提取登录的token"
enabled=
"true"
>
<stringProp
name=
"RegexExtractor.useHeaders"
>
true
</stringProp>
<stringProp
name=
"RegexExtractor.refname"
>
token
</stringProp>
<stringProp
name=
"RegexExtractor.regex"
>
Set-Cookie: SERVITIZATION_BACKEND=(.*?);
</stringProp>
<stringProp
name=
"RegexExtractor.template"
>
$1$
</stringProp>
<stringProp
name=
"RegexExtractor.default"
>
null
</stringProp>
<stringProp
name=
"RegexExtractor.match_number"
>
1
</stringProp>
</RegexExtractor>
<hashTree/>
<BeanShellAssertion
guiclass=
"BeanShellAssertionGui"
testclass=
"BeanShellAssertion"
testname=
"校验登录是否成功"
enabled=
"true"
>
<stringProp
name=
"BeanShellAssertion.query"
>
//校验返回结果状态
String ResponseCode = vars.get(
"
code
"
);
//log.info(
"
获取到的code~~~~~~
"
+ ResponseCode);
if (ResponseCode.equals(
"
200
"
))
{
// 响应码等于200时,设置断言成功,并输出成功信息
Failure = false;
FailureMessage =
"
登录成功
"
;
}
else{
// 响应码不等于200时,设置断言失败,并输出失败信息
Failure = true;
FailureMessage =
"
Response code was not a 200 response code it was
"
+ ResponseCode +
"
.
"
;
print (
"
the return code is
"
+ ResponseCode); // this goes to stdout
log.warn(
"
the return code is
"
+ ResponseCode); // this goes to the JMeter log file
}
String a = vars.get(
"
token
"
);
log.info(
"
获取到的token~~~~~~
"
+ a);
${__setProperty(tokenValue,${token})}
</stringProp>
<stringProp
name=
"BeanShellAssertion.filename"
></stringProp>
<stringProp
name=
"BeanShellAssertion.parameters"
></stringProp>
<boolProp
name=
"BeanShellAssertion.resetInterpreter"
>
false
</boolProp>
</BeanShellAssertion>
<hashTree/>
</hashTree>
</hashTree>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"推荐选品"
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>
<stringProp
name=
"LoopController.loops"
>
1
</stringProp>
</elementProp>
<stringProp
name=
"ThreadGroup.num_threads"
>
1
</stringProp>
<stringProp
name=
"ThreadGroup.ramp_time"
>
1
</stringProp>
<boolProp
name=
"ThreadGroup.scheduler"
>
false
</boolProp>
<stringProp
name=
"ThreadGroup.duration"
></stringProp>
<stringProp
name=
"ThreadGroup.delay"
></stringProp>
</ThreadGroup>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"HTTP信息头管理器"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
cookie
</stringProp>
<stringProp
name=
"Header.value"
>
SERVITIZATION_BACKEND=${__property(tokenValue)}
</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"导入选品"
enabled=
"true"
>
<elementProp
name=
"HTTPsampler.Files"
elementType=
"HTTPFileArgs"
>
<collectionProp
name=
"HTTPFileArgs.files"
>
<elementProp
name=
"./data\choose goods.xlsx"
elementType=
"HTTPFileArg"
>
<stringProp
name=
"File.path"
>
./data\choose goods.xlsx
</stringProp>
<stringProp
name=
"File.paramname"
>
file
</stringProp>
<stringProp
name=
"File.mimetype"
>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
guiclass=
"HTTPArgumentsPanel"
testclass=
"Arguments"
testname=
"用户定义的变量"
enabled=
"true"
>
<collectionProp
name=
"Arguments.arguments"
/>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
>
utf-8
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/goods/import?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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"
>
true
</boolProp>
<boolProp
name=
"HTTPSampler.BROWSER_COMPATIBLE_MULTIPART"
>
true
</boolProp>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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>
<GenericController
guiclass=
"LogicControllerGui"
testclass=
"GenericController"
testname=
"简单控制器"
enabled=
"true"
/>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"HTTP信息头管理器"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Content-Type
</stringProp>
<stringProp
name=
"Header.value"
>
application/json
</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"搜索"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
""
,
"
endTime
"
:
""
,
"
productId
"
:10016}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/goods/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"TestPlan.comments"
>
根据productId搜索
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<RegexExtractor
guiclass=
"RegexExtractorGui"
testclass=
"RegexExtractor"
testname=
"正则表达式提取器"
enabled=
"true"
>
<stringProp
name=
"RegexExtractor.useHeaders"
>
false
</stringProp>
<stringProp
name=
"RegexExtractor.refname"
>
skuid
</stringProp>
<stringProp
name=
"RegexExtractor.regex"
>
"
id
"
:(.*?),
"
productId
"
:10016
</stringProp>
<stringProp
name=
"RegexExtractor.template"
>
$1$
</stringProp>
<stringProp
name=
"RegexExtractor.default"
>
null
</stringProp>
<stringProp
name=
"RegexExtractor.match_number"
>
1
</stringProp>
</RegexExtractor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"置顶"
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"
>
{
"
id
"
:${skuid},
"
top
"
:true}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/goods/update?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1396497626"
>
"
data
"
:
"
操作成功
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"取消置顶"
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"
>
{
"
id
"
:${skuid},
"
top
"
:false}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/goods/update?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1396497626"
>
"
data
"
:
"
操作成功
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"删除选品"
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"
>
{
"
idList
"
:[${skuid}]}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/goods/deleteBatch?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1396497626"
>
"
data
"
:
"
操作成功
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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>
</hashTree>
<BeanShellSampler
guiclass=
"BeanShellSamplerGui"
testclass=
"BeanShellSampler"
testname=
"BeanShell 取样器"
enabled=
"false"
>
<stringProp
name=
"BeanShellSampler.query"
>
import org.apache.jmeter.services.FileServer;
import com.bzj.utils.*;
String baseDir=FileServer.getFileServer().getBaseDir(); //获取当前脚本的路径
log.info(
"
baseDir=
"
+baseDir);//打印出来
</stringProp>
<stringProp
name=
"BeanShellSampler.filename"
></stringProp>
<stringProp
name=
"BeanShellSampler.parameters"
></stringProp>
<boolProp
name=
"BeanShellSampler.resetInterpreter"
>
false
</boolProp>
</BeanShellSampler>
<hashTree/>
<DebugSampler
guiclass=
"TestBeanGUI"
testclass=
"DebugSampler"
testname=
"调试取样器"
enabled=
"false"
>
<boolProp
name=
"displayJMeterProperties"
>
false
</boolProp>
<boolProp
name=
"displayJMeterVariables"
>
true
</boolProp>
<boolProp
name=
"displaySystemProperties"
>
false
</boolProp>
</DebugSampler>
<hashTree/>
</hashTree>
<ThreadGroup
guiclass=
"ThreadGroupGui"
testclass=
"ThreadGroup"
testname=
"投放设置"
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>
<stringProp
name=
"LoopController.loops"
>
1
</stringProp>
</elementProp>
<stringProp
name=
"ThreadGroup.num_threads"
>
1
</stringProp>
<stringProp
name=
"ThreadGroup.ramp_time"
>
1
</stringProp>
<boolProp
name=
"ThreadGroup.scheduler"
>
false
</boolProp>
<stringProp
name=
"ThreadGroup.duration"
></stringProp>
<stringProp
name=
"ThreadGroup.delay"
></stringProp>
</ThreadGroup>
<hashTree>
<HeaderManager
guiclass=
"HeaderPanel"
testclass=
"HeaderManager"
testname=
"HTTP信息头管理器"
enabled=
"true"
>
<collectionProp
name=
"HeaderManager.headers"
>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
cookie
</stringProp>
<stringProp
name=
"Header.value"
>
SERVITIZATION_BACKEND=${__property(tokenValue)}
</stringProp>
</elementProp>
<elementProp
name=
""
elementType=
"Header"
>
<stringProp
name=
"Header.name"
>
Content-Type
</stringProp>
<stringProp
name=
"Header.value"
>
application/json;charset=UTF-8
</stringProp>
</elementProp>
</collectionProp>
</HeaderManager>
<hashTree/>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"新建投放-失败"
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"
>
{
"
startTime
"
:
"
2021-08-03 00:00:00
"
,
"
endTime
"
:
"
2021-09-27 00:00:00
"
,
"
showLimit
"
:50,
"
launchName
"
:
"
测试
"
,
"
recommendPage
"
:
"
personalCenter
"
,
"
recommendLocation
"
:
"
cardLocation
"
,
"
rule
"
:
"
tag
"
,
"
tag
"
:[
"
高利润
"
,
"
新品
"
],
"
sortType
"
:
"
random
"
,
"
userScope
"
:
"
all
"
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/create?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"TestPlan.comments"
>
个人中心不允许卡片位
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-215338500"
>
"
content
"
:
"
个人中心页面不允许配置坑位: 卡片位
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"新建投放-个人中心瀑布流"
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"
>
{
"
startTime
"
:
"
2021-08-03 00:00:00
"
,
"
endTime
"
:
"
2021-09-27 00:00:00
"
,
"
showLimit
"
:50,
"
launchName
"
:
"
测试
"
,
"
recommendPage
"
:
"
personalCenter
"
,
"
recommendLocation
"
:
"
waterfallLocation
"
,
"
rule
"
:
"
tag
"
,
"
tag
"
:[
"
高利润
"
,
"
新品
"
],
"
sortType
"
:
"
random
"
,
"
userScope
"
:
"
all
"
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
>
utf-8
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/create?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"再次重复创建"
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"
>
{
"
startTime
"
:
"
2021-08-03 00:00:00
"
,
"
endTime
"
:
"
2021-09-27 00:00:00
"
,
"
showLimit
"
:50,
"
launchName
"
:
"
测试
"
,
"
recommendPage
"
:
"
personalCenter
"
,
"
recommendLocation
"
:
"
waterfallLocation
"
,
"
rule
"
:
"
tag
"
,
"
tag
"
:[
"
高利润
"
,
"
新品
"
],
"
sortType
"
:
"
random
"
,
"
userScope
"
:
"
all
"
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
>
utf-8
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/create?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
<stringProp
name=
"TestPlan.comments"
>
提示投送已存在
</stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"1804843422"
>
"
content
"
:
"
该投送已存在
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"搜索并获取id"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
""
,
"
endTime
"
:
""
,
"
launchName
"
:
"
测试
"
,
"
recommendPage
"
:
""
,
"
recommendLocation
"
:
""
,
"
status
"
:
""
,
"
userScope
"
:
""
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
>
utf-8
</stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<RegexExtractor
guiclass=
"RegexExtractorGui"
testclass=
"RegexExtractor"
testname=
"正则表达式提取器"
enabled=
"true"
>
<stringProp
name=
"RegexExtractor.useHeaders"
>
false
</stringProp>
<stringProp
name=
"RegexExtractor.refname"
>
launchid
</stringProp>
<stringProp
name=
"RegexExtractor.regex"
>
"
id
"
:(.+?),
"
launchName
"
:
"
测试
"
</stringProp>
<stringProp
name=
"RegexExtractor.template"
>
$1$
</stringProp>
<stringProp
name=
"RegexExtractor.default"
>
null
</stringProp>
<stringProp
name=
"RegexExtractor.match_number"
>
1
</stringProp>
</RegexExtractor>
<hashTree/>
</hashTree>
<HTTPSamplerProxy
guiclass=
"HttpTestSampleGui"
testclass=
"HTTPSamplerProxy"
testname=
"查看投放数据"
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"
>
{
"
id
"
:${launchid},
"
page
"
:1,
"
size
"
:10}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getTrackData?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"从投放详情页回退"
enabled=
"true"
>
<elementProp
name=
"HTTPsampler.Arguments"
elementType=
"Arguments"
guiclass=
"HTTPArgumentsPanel"
testclass=
"Arguments"
testname=
"用户定义的变量"
enabled=
"true"
>
<collectionProp
name=
"Arguments.arguments"
/>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getLaunchChoose?userType=oldBackend
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"按推荐坑位搜索"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
""
,
"
endTime
"
:
""
,
"
recommendLocation
"
:
"
cardLocation
"
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"按推荐页面搜索"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
""
,
"
endTime
"
:
""
,
"
launchName
"
:
""
,
"
recommendPage
"
:
"
homePage
"
,
"
recommendLocation
"
:
""
,
"
status
"
:
""
,
"
userScope
"
:
""
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"按投放状态搜索"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
""
,
"
endTime
"
:
""
,
"
launchName
"
:
""
,
"
recommendPage
"
:
""
,
"
recommendLocation
"
:
""
,
"
status
"
:1,
"
userScope
"
:
""
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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=
"按投放时间搜索"
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"
>
{
"
page
"
:1,
"
size
"
:10,
"
startTime
"
:
"
2021-07-10 14:50:19
"
,
"
endTime
"
:
"
2021-08-09 14:50:19
"
,
"
launchName
"
:
""
,
"
recommendPage
"
:
""
,
"
recommendLocation
"
:
""
,
"
status
"
:
""
,
"
userScope
"
:
""
}
</stringProp>
<stringProp
name=
"Argument.metadata"
>
=
</stringProp>
</elementProp>
</collectionProp>
</elementProp>
<stringProp
name=
"HTTPSampler.domain"
></stringProp>
<stringProp
name=
"HTTPSampler.port"
></stringProp>
<stringProp
name=
"HTTPSampler.protocol"
></stringProp>
<stringProp
name=
"HTTPSampler.contentEncoding"
></stringProp>
<stringProp
name=
"HTTPSampler.path"
>
/JARVIS-SERVITIZATION-REST/servitization/admin/recommend/launch/getList?userType=oldBackend
</stringProp>
<stringProp
name=
"HTTPSampler.method"
>
POST
</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>
<stringProp
name=
"HTTPSampler.embedded_url_re"
></stringProp>
<stringProp
name=
"HTTPSampler.connect_timeout"
></stringProp>
<stringProp
name=
"HTTPSampler.response_timeout"
></stringProp>
</HTTPSamplerProxy>
<hashTree>
<ResponseAssertion
guiclass=
"AssertionGui"
testclass=
"ResponseAssertion"
testname=
"响应断言"
enabled=
"true"
>
<collectionProp
name=
"Asserion.test_strings"
>
<stringProp
name=
"-1283611220"
>
"
code
"
:
"
10000
"
</stringProp>
</collectionProp>
<stringProp
name=
"Assertion.custom_message"
></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>
<JDBCSampler
guiclass=
"TestBeanGUI"
testclass=
"JDBCSampler"
testname=
"从数据库中删除"
enabled=
"true"
>
<stringProp
name=
"dataSource"
>
jarvis_prod_test
</stringProp>
<stringProp
name=
"queryType"
>
Update Statement
</stringProp>
<stringProp
name=
"query"
>
delete from recommend_goods_launch where id=
'
${launchid}
'
</stringProp>
<stringProp
name=
"queryArguments"
></stringProp>
<stringProp
name=
"queryArgumentsTypes"
></stringProp>
<stringProp
name=
"variableNames"
></stringProp>
<stringProp
name=
"resultVariable"
></stringProp>
<stringProp
name=
"queryTimeout"
></stringProp>
<stringProp
name=
"resultSetHandler"
>
Store as String
</stringProp>
</JDBCSampler>
<hashTree/>
<DebugSampler
guiclass=
"TestBeanGUI"
testclass=
"DebugSampler"
testname=
"调试取样器"
enabled=
"false"
>
<boolProp
name=
"displayJMeterProperties"
>
false
</boolProp>
<boolProp
name=
"displayJMeterVariables"
>
true
</boolProp>
<boolProp
name=
"displaySystemProperties"
>
false
</boolProp>
</DebugSampler>
<hashTree/>
</hashTree>
<ResultCollector
guiclass=
"ViewResultsFullVisualizer"
testclass=
"ResultCollector"
testname=
"察看结果树"
enabled=
"true"
>
<boolProp
name=
"ResultCollector.error_logging"
>
false
</boolProp>
<objProp>
<name>
saveConfig
</name>
<value
class=
"SampleSaveConfiguration"
>
<time>
true
</time>
<latency>
true
</latency>
<timestamp>
true
</timestamp>
<success>
true
</success>
<label>
true
</label>
<code>
true
</code>
<message>
true
</message>
<threadName>
true
</threadName>
<dataType>
true
</dataType>
<encoding>
false
</encoding>
<assertions>
true
</assertions>
<subresults>
true
</subresults>
<responseData>
false
</responseData>
<samplerData>
true
</samplerData>
<xml>
true
</xml>
<fieldNames>
true
</fieldNames>
<responseHeaders>
true
</responseHeaders>
<requestHeaders>
true
</requestHeaders>
<responseDataOnError>
false
</responseDataOnError>
<saveAssertionResultsFailureMessage>
true
</saveAssertionResultsFailureMessage>
<assertionsResultsToSave>
0
</assertionsResultsToSave>
<bytes>
true
</bytes>
<sentBytes>
true
</sentBytes>
<url>
true
</url>
<fileName>
true
</fileName>
<hostname>
true
</hostname>
<threadCounts>
true
</threadCounts>
<sampleCount>
true
</sampleCount>
<idleTime>
true
</idleTime>
<connectTime>
true
</connectTime>
</value>
</objProp>
<stringProp
name=
"filename"
></stringProp>
</ResultCollector>
<hashTree/>
</hashTree>
</hashTree>
</jmeterTestPlan>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment