billing_perf_test_v3.jmx 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.6.3">
  3. <hashTree>
  4. <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="账单性能测试v3" enabled="true">
  5. <boolProp name="TestPlan.functional_mode">false</boolProp>
  6. <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
  7. <elementProp name="TestPlan.user_defined_variables" elementType="Arguments">
  8. <collectionProp name="Arguments.arguments">
  9. <elementProp name="base_url" elementType="Argument">
  10. <stringProp name="Argument.name">base_url</stringProp>
  11. <stringProp name="Argument.value">${__P(base_url,127.0.0.1)}</stringProp>
  12. <stringProp name="Argument.metadata">=</stringProp>
  13. </elementProp>
  14. <elementProp name="port" elementType="Argument">
  15. <stringProp name="Argument.name">port</stringProp>
  16. <stringProp name="Argument.value">${__P(port,8010)}</stringProp>
  17. <stringProp name="Argument.metadata">=</stringProp>
  18. </elementProp>
  19. <elementProp name="protocol" elementType="Argument">
  20. <stringProp name="Argument.name">protocol</stringProp>
  21. <stringProp name="Argument.value">${__P(protocol,http)}</stringProp>
  22. <stringProp name="Argument.metadata">=</stringProp>
  23. </elementProp>
  24. <elementProp name="thread_count" elementType="Argument">
  25. <stringProp name="Argument.name">thread_count</stringProp>
  26. <stringProp name="Argument.value">${__P(thread_count,10)}</stringProp>
  27. <stringProp name="Argument.metadata">=</stringProp>
  28. </elementProp>
  29. <elementProp name="ramp_up" elementType="Argument">
  30. <stringProp name="Argument.name">ramp_up</stringProp>
  31. <stringProp name="Argument.value">${__P(ramp_up,10)}</stringProp>
  32. <stringProp name="Argument.metadata">=</stringProp>
  33. </elementProp>
  34. <elementProp name="duration" elementType="Argument">
  35. <stringProp name="Argument.name">duration</stringProp>
  36. <stringProp name="Argument.value">${__P(duration,120)}</stringProp>
  37. <stringProp name="Argument.metadata">=</stringProp>
  38. </elementProp>
  39. </collectionProp>
  40. </elementProp>
  41. </TestPlan>
  42. <hashTree>
  43. <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP默认配置" enabled="true">
  44. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  45. <collectionProp name="Arguments.arguments"/>
  46. </elementProp>
  47. <stringProp name="HTTPSampler.domain">${base_url}</stringProp>
  48. <stringProp name="HTTPSampler.port">${port}</stringProp>
  49. <stringProp name="HTTPSampler.protocol">${protocol}</stringProp>
  50. <stringProp name="HTTPSampler.contentEncoding">UTF-8</stringProp>
  51. <stringProp name="HTTPSampler.connect_timeout">10000</stringProp>
  52. <stringProp name="HTTPSampler.response_timeout">30000</stringProp>
  53. </ConfigTestElement>
  54. <hashTree/>
  55. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="全局Header" enabled="true">
  56. <collectionProp name="HeaderManager.headers">
  57. <elementProp name="" elementType="Header">
  58. <stringProp name="Header.name">Content-Type</stringProp>
  59. <stringProp name="Header.value">application/json</stringProp>
  60. </elementProp>
  61. </collectionProp>
  62. </HeaderManager>
  63. <hashTree/>
  64. <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="用户数据" enabled="true">
  65. <stringProp name="filename">../../backend/test_users.csv</stringProp>
  66. <stringProp name="fileEncoding">UTF-8</stringProp>
  67. <stringProp name="variableNames">username,password,email,apikey,user_id</stringProp>
  68. <boolProp name="ignoreFirstLine">true</boolProp>
  69. <stringProp name="delimiter">,</stringProp>
  70. <boolProp name="recycle">true</boolProp>
  71. <boolProp name="stopThread">false</boolProp>
  72. <stringProp name="shareMode">shareMode.all</stringProp>
  73. </CSVDataSet>
  74. <hashTree/>
  75. <!-- ============================================================ -->
  76. <!-- 场景1:账单列表 -->
  77. <!-- Once Only Controller 保证每个线程只登录一次,token 线程内复用 -->
  78. <!-- ============================================================ -->
  79. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="场景1-账单列表" enabled="true">
  80. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  81. <elementProp name="ThreadGroup.main_controller" elementType="LoopController">
  82. <boolProp name="LoopController.continue_forever">false</boolProp>
  83. <intProp name="LoopController.loops">-1</intProp>
  84. </elementProp>
  85. <stringProp name="ThreadGroup.num_threads">${thread_count}</stringProp>
  86. <stringProp name="ThreadGroup.ramp_time">${ramp_up}</stringProp>
  87. <boolProp name="ThreadGroup.scheduler">true</boolProp>
  88. <stringProp name="ThreadGroup.duration">${duration}</stringProp>
  89. <stringProp name="ThreadGroup.delay">0</stringProp>
  90. </ThreadGroup>
  91. <hashTree>
  92. <!-- 每个线程只登录一次 -->
  93. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="只登录一次" enabled="true"/>
  94. <hashTree>
  95. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登录-账单列表" enabled="true">
  96. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  97. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  98. <collectionProp name="Arguments.arguments">
  99. <elementProp name="" elementType="HTTPArgument">
  100. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  101. <stringProp name="Argument.value">{"username":"${username}","password":"${password}","encrypted":false}</stringProp>
  102. <stringProp name="Argument.metadata">=</stringProp>
  103. </elementProp>
  104. </collectionProp>
  105. </elementProp>
  106. <stringProp name="HTTPSampler.path">/api/auth/login</stringProp>
  107. <stringProp name="HTTPSampler.method">POST</stringProp>
  108. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  109. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  110. </HTTPSamplerProxy>
  111. <hashTree>
  112. <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="提取token" enabled="true">
  113. <stringProp name="RegexExtractor.useHeaders">false</stringProp>
  114. <stringProp name="RegexExtractor.refname">token1</stringProp>
  115. <stringProp name="RegexExtractor.regex">"access_token":"([^"]+)"</stringProp>
  116. <stringProp name="RegexExtractor.template">$1$</stringProp>
  117. <stringProp name="RegexExtractor.default">TOKEN_NOT_FOUND</stringProp>
  118. <stringProp name="RegexExtractor.match_no">1</stringProp>
  119. </RegexExtractor>
  120. <hashTree/>
  121. </hashTree>
  122. </hashTree>
  123. <!-- 业务请求 -->
  124. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET-账单列表" enabled="true">
  125. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  126. <collectionProp name="Arguments.arguments"/>
  127. </elementProp>
  128. <stringProp name="HTTPSampler.path">/api/billing/records?page=1&amp;page_size=10</stringProp>
  129. <stringProp name="HTTPSampler.method">GET</stringProp>
  130. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  131. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  132. </HTTPSamplerProxy>
  133. <hashTree>
  134. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Auth" enabled="true">
  135. <collectionProp name="HeaderManager.headers">
  136. <elementProp name="" elementType="Header">
  137. <stringProp name="Header.name">Authorization</stringProp>
  138. <stringProp name="Header.value">Bearer ${token1}</stringProp>
  139. </elementProp>
  140. </collectionProp>
  141. </HeaderManager>
  142. <hashTree/>
  143. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="断言200" enabled="true">
  144. <collectionProp name="Asserion.test_strings"><stringProp name="49586">200</stringProp></collectionProp>
  145. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  146. <boolProp name="Assertion.assume_success">false</boolProp>
  147. <intProp name="Assertion.test_type">8</intProp>
  148. </ResponseAssertion>
  149. <hashTree/>
  150. </hashTree>
  151. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="思考时间" enabled="true">
  152. <stringProp name="ConstantTimer.delay">200</stringProp>
  153. </ConstantTimer>
  154. <hashTree/>
  155. </hashTree>
  156. <!-- 场景2:账单汇总 -->
  157. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="场景2-账单汇总" enabled="true">
  158. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  159. <elementProp name="ThreadGroup.main_controller" elementType="LoopController">
  160. <boolProp name="LoopController.continue_forever">false</boolProp>
  161. <intProp name="LoopController.loops">-1</intProp>
  162. </elementProp>
  163. <stringProp name="ThreadGroup.num_threads">${thread_count}</stringProp>
  164. <stringProp name="ThreadGroup.ramp_time">${ramp_up}</stringProp>
  165. <boolProp name="ThreadGroup.scheduler">true</boolProp>
  166. <stringProp name="ThreadGroup.duration">${duration}</stringProp>
  167. <stringProp name="ThreadGroup.delay">0</stringProp>
  168. </ThreadGroup>
  169. <hashTree>
  170. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="只登录一次" enabled="true"/>
  171. <hashTree>
  172. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登录-账单汇总" enabled="true">
  173. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  174. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  175. <collectionProp name="Arguments.arguments">
  176. <elementProp name="" elementType="HTTPArgument">
  177. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  178. <stringProp name="Argument.value">{"username":"${username}","password":"${password}","encrypted":false}</stringProp>
  179. <stringProp name="Argument.metadata">=</stringProp>
  180. </elementProp>
  181. </collectionProp>
  182. </elementProp>
  183. <stringProp name="HTTPSampler.path">/api/auth/login</stringProp>
  184. <stringProp name="HTTPSampler.method">POST</stringProp>
  185. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  186. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  187. </HTTPSamplerProxy>
  188. <hashTree>
  189. <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="提取token" enabled="true">
  190. <stringProp name="RegexExtractor.useHeaders">false</stringProp>
  191. <stringProp name="RegexExtractor.refname">token2</stringProp>
  192. <stringProp name="RegexExtractor.regex">"access_token":"([^"]+)"</stringProp>
  193. <stringProp name="RegexExtractor.template">$1$</stringProp>
  194. <stringProp name="RegexExtractor.default">TOKEN_NOT_FOUND</stringProp>
  195. <stringProp name="RegexExtractor.match_no">1</stringProp>
  196. </RegexExtractor>
  197. <hashTree/>
  198. </hashTree>
  199. </hashTree>
  200. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET-账单汇总" enabled="true">
  201. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  202. <collectionProp name="Arguments.arguments"/>
  203. </elementProp>
  204. <stringProp name="HTTPSampler.path">/api/billing/summary</stringProp>
  205. <stringProp name="HTTPSampler.method">GET</stringProp>
  206. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  207. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  208. </HTTPSamplerProxy>
  209. <hashTree>
  210. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Auth" enabled="true">
  211. <collectionProp name="HeaderManager.headers">
  212. <elementProp name="" elementType="Header">
  213. <stringProp name="Header.name">Authorization</stringProp>
  214. <stringProp name="Header.value">Bearer ${token2}</stringProp>
  215. </elementProp>
  216. </collectionProp>
  217. </HeaderManager>
  218. <hashTree/>
  219. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="断言200" enabled="true">
  220. <collectionProp name="Asserion.test_strings"><stringProp name="49586">200</stringProp></collectionProp>
  221. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  222. <boolProp name="Assertion.assume_success">false</boolProp>
  223. <intProp name="Assertion.test_type">8</intProp>
  224. </ResponseAssertion>
  225. <hashTree/>
  226. </hashTree>
  227. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="思考时间" enabled="true">
  228. <stringProp name="ConstantTimer.delay">200</stringProp>
  229. </ConstantTimer>
  230. <hashTree/>
  231. </hashTree>
  232. <!-- 场景3:余额查询 -->
  233. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="场景3-余额查询" enabled="true">
  234. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  235. <elementProp name="ThreadGroup.main_controller" elementType="LoopController">
  236. <boolProp name="LoopController.continue_forever">false</boolProp>
  237. <intProp name="LoopController.loops">-1</intProp>
  238. </elementProp>
  239. <stringProp name="ThreadGroup.num_threads">${thread_count}</stringProp>
  240. <stringProp name="ThreadGroup.ramp_time">${ramp_up}</stringProp>
  241. <boolProp name="ThreadGroup.scheduler">true</boolProp>
  242. <stringProp name="ThreadGroup.duration">${duration}</stringProp>
  243. <stringProp name="ThreadGroup.delay">0</stringProp>
  244. </ThreadGroup>
  245. <hashTree>
  246. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="只登录一次" enabled="true"/>
  247. <hashTree>
  248. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登录-余额查询" enabled="true">
  249. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  250. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  251. <collectionProp name="Arguments.arguments">
  252. <elementProp name="" elementType="HTTPArgument">
  253. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  254. <stringProp name="Argument.value">{"username":"${username}","password":"${password}","encrypted":false}</stringProp>
  255. <stringProp name="Argument.metadata">=</stringProp>
  256. </elementProp>
  257. </collectionProp>
  258. </elementProp>
  259. <stringProp name="HTTPSampler.path">/api/auth/login</stringProp>
  260. <stringProp name="HTTPSampler.method">POST</stringProp>
  261. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  262. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  263. </HTTPSamplerProxy>
  264. <hashTree>
  265. <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="提取token" enabled="true">
  266. <stringProp name="RegexExtractor.useHeaders">false</stringProp>
  267. <stringProp name="RegexExtractor.refname">token3</stringProp>
  268. <stringProp name="RegexExtractor.regex">"access_token":"([^"]+)"</stringProp>
  269. <stringProp name="RegexExtractor.template">$1$</stringProp>
  270. <stringProp name="RegexExtractor.default">TOKEN_NOT_FOUND</stringProp>
  271. <stringProp name="RegexExtractor.match_no">1</stringProp>
  272. </RegexExtractor>
  273. <hashTree/>
  274. </hashTree>
  275. </hashTree>
  276. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET-余额查询" enabled="true">
  277. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  278. <collectionProp name="Arguments.arguments"/>
  279. </elementProp>
  280. <stringProp name="HTTPSampler.path">/api/billing/balance</stringProp>
  281. <stringProp name="HTTPSampler.method">GET</stringProp>
  282. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  283. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  284. </HTTPSamplerProxy>
  285. <hashTree>
  286. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Auth" enabled="true">
  287. <collectionProp name="HeaderManager.headers">
  288. <elementProp name="" elementType="Header">
  289. <stringProp name="Header.name">Authorization</stringProp>
  290. <stringProp name="Header.value">Bearer ${token3}</stringProp>
  291. </elementProp>
  292. </collectionProp>
  293. </HeaderManager>
  294. <hashTree/>
  295. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="断言200" enabled="true">
  296. <collectionProp name="Asserion.test_strings"><stringProp name="49586">200</stringProp></collectionProp>
  297. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  298. <boolProp name="Assertion.assume_success">false</boolProp>
  299. <intProp name="Assertion.test_type">8</intProp>
  300. </ResponseAssertion>
  301. <hashTree/>
  302. </hashTree>
  303. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="思考时间" enabled="true">
  304. <stringProp name="ConstantTimer.delay">200</stringProp>
  305. </ConstantTimer>
  306. <hashTree/>
  307. </hashTree>
  308. <!-- 场景4:消费流水 -->
  309. <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="场景4-消费流水" enabled="true">
  310. <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
  311. <elementProp name="ThreadGroup.main_controller" elementType="LoopController">
  312. <boolProp name="LoopController.continue_forever">false</boolProp>
  313. <intProp name="LoopController.loops">-1</intProp>
  314. </elementProp>
  315. <stringProp name="ThreadGroup.num_threads">${thread_count}</stringProp>
  316. <stringProp name="ThreadGroup.ramp_time">${ramp_up}</stringProp>
  317. <boolProp name="ThreadGroup.scheduler">true</boolProp>
  318. <stringProp name="ThreadGroup.duration">${duration}</stringProp>
  319. <stringProp name="ThreadGroup.delay">0</stringProp>
  320. </ThreadGroup>
  321. <hashTree>
  322. <OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="只登录一次" enabled="true"/>
  323. <hashTree>
  324. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="登录-消费流水" enabled="true">
  325. <boolProp name="HTTPSampler.postBodyRaw">true</boolProp>
  326. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  327. <collectionProp name="Arguments.arguments">
  328. <elementProp name="" elementType="HTTPArgument">
  329. <boolProp name="HTTPArgument.always_encode">false</boolProp>
  330. <stringProp name="Argument.value">{"username":"${username}","password":"${password}","encrypted":false}</stringProp>
  331. <stringProp name="Argument.metadata">=</stringProp>
  332. </elementProp>
  333. </collectionProp>
  334. </elementProp>
  335. <stringProp name="HTTPSampler.path">/api/auth/login</stringProp>
  336. <stringProp name="HTTPSampler.method">POST</stringProp>
  337. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  338. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  339. </HTTPSamplerProxy>
  340. <hashTree>
  341. <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="提取token" enabled="true">
  342. <stringProp name="RegexExtractor.useHeaders">false</stringProp>
  343. <stringProp name="RegexExtractor.refname">token4</stringProp>
  344. <stringProp name="RegexExtractor.regex">"access_token":"([^"]+)"</stringProp>
  345. <stringProp name="RegexExtractor.template">$1$</stringProp>
  346. <stringProp name="RegexExtractor.default">TOKEN_NOT_FOUND</stringProp>
  347. <stringProp name="RegexExtractor.match_no">1</stringProp>
  348. </RegexExtractor>
  349. <hashTree/>
  350. </hashTree>
  351. </hashTree>
  352. <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET-消费流水" enabled="true">
  353. <elementProp name="HTTPsampler.Arguments" elementType="Arguments">
  354. <collectionProp name="Arguments.arguments"/>
  355. </elementProp>
  356. <stringProp name="HTTPSampler.path">/api/billing/consumption-logs?page=1&amp;page_size=10</stringProp>
  357. <stringProp name="HTTPSampler.method">GET</stringProp>
  358. <boolProp name="HTTPSampler.follow_redirects">true</boolProp>
  359. <boolProp name="HTTPSampler.use_keepalive">true</boolProp>
  360. </HTTPSamplerProxy>
  361. <hashTree>
  362. <HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="Auth" enabled="true">
  363. <collectionProp name="HeaderManager.headers">
  364. <elementProp name="" elementType="Header">
  365. <stringProp name="Header.name">Authorization</stringProp>
  366. <stringProp name="Header.value">Bearer ${token4}</stringProp>
  367. </elementProp>
  368. </collectionProp>
  369. </HeaderManager>
  370. <hashTree/>
  371. <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="断言200" enabled="true">
  372. <collectionProp name="Asserion.test_strings"><stringProp name="49586">200</stringProp></collectionProp>
  373. <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
  374. <boolProp name="Assertion.assume_success">false</boolProp>
  375. <intProp name="Assertion.test_type">8</intProp>
  376. </ResponseAssertion>
  377. <hashTree/>
  378. </hashTree>
  379. <ConstantTimer guiclass="ConstantTimerGui" testclass="ConstantTimer" testname="思考时间" enabled="true">
  380. <stringProp name="ConstantTimer.delay">200</stringProp>
  381. </ConstantTimer>
  382. <hashTree/>
  383. </hashTree>
  384. <!-- 结果收集 -->
  385. <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="聚合报告" enabled="true">
  386. <boolProp name="ResultCollector.error_logging">false</boolProp>
  387. <objProp>
  388. <name>saveConfig</name>
  389. <value class="SampleSaveConfiguration">
  390. <time>true</time><latency>true</latency><timestamp>true</timestamp>
  391. <success>true</success><label>true</label><code>true</code>
  392. <message>true</message><threadName>true</threadName>
  393. <dataType>true</dataType><encoding>false</encoding>
  394. <assertions>true</assertions><subresults>true</subresults>
  395. <responseData>false</responseData><samplerData>false</samplerData>
  396. <xml>false</xml><fieldNames>true</fieldNames>
  397. <responseHeaders>false</responseHeaders><requestHeaders>false</requestHeaders>
  398. <responseDataOnError>false</responseDataOnError>
  399. <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
  400. <bytes>true</bytes><sentBytes>true</sentBytes><url>true</url>
  401. <threadCounts>true</threadCounts><idleTime>true</idleTime><connectTime>true</connectTime>
  402. </value>
  403. </objProp>
  404. <stringProp name="filename">results/billing_v3.jtl</stringProp>
  405. </ResultCollector>
  406. <hashTree/>
  407. </hashTree>
  408. </hashTree>
  409. </jmeterTestPlan>