刘洪青 | 4720585 | 2020-08-14 13:39:30 +0800 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <jmeterTestPlan version="1.2" properties="5.0" jmeter="5.2.1"> |
| 3 | <hashTree> |
| 4 | <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true"> |
| 5 | <stringProp name="TestPlan.comments"></stringProp> |
| 6 | <boolProp name="TestPlan.functional_mode">false</boolProp> |
| 7 | <boolProp name="TestPlan.tearDown_on_shutdown">true</boolProp> |
| 8 | <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> |
| 9 | <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 10 | <collectionProp name="Arguments.arguments"/> |
| 11 | </elementProp> |
| 12 | <stringProp name="TestPlan.user_define_classpath"></stringProp> |
| 13 | </TestPlan> |
| 14 | <hashTree> |
| 15 | <SetupThreadGroup guiclass="SetupThreadGroupGui" testclass="SetupThreadGroup" testname="setUp线程组" enabled="true"> |
| 16 | <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> |
| 17 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> |
| 18 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 19 | <stringProp name="LoopController.loops">1</stringProp> |
| 20 | </elementProp> |
| 21 | <stringProp name="ThreadGroup.num_threads">500</stringProp> |
| 22 | <stringProp name="ThreadGroup.ramp_time">1</stringProp> |
| 23 | <boolProp name="ThreadGroup.scheduler">false</boolProp> |
| 24 | <stringProp name="ThreadGroup.duration"></stringProp> |
| 25 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 26 | <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
| 27 | </SetupThreadGroup> |
| 28 | <hashTree> |
| 29 | <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 30 | <collectionProp name="Arguments.arguments"> |
| 31 | <elementProp name="userApiHost" elementType="Argument"> |
| 32 | <stringProp name="Argument.name">userApiHost</stringProp> |
| 33 | <stringProp name="Argument.value">http://192.168.101.11:8080</stringProp> |
| 34 | <stringProp name="Argument.metadata">=</stringProp> |
| 35 | </elementProp> |
| 36 | </collectionProp> |
| 37 | </Arguments> |
| 38 | <hashTree/> |
| 39 | <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="聚合报告" enabled="true"> |
| 40 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 41 | <objProp> |
| 42 | <name>saveConfig</name> |
| 43 | <value class="SampleSaveConfiguration"> |
| 44 | <time>true</time> |
| 45 | <latency>true</latency> |
| 46 | <timestamp>true</timestamp> |
| 47 | <success>true</success> |
| 48 | <label>true</label> |
| 49 | <code>true</code> |
| 50 | <message>true</message> |
| 51 | <threadName>true</threadName> |
| 52 | <dataType>true</dataType> |
| 53 | <encoding>false</encoding> |
| 54 | <assertions>true</assertions> |
| 55 | <subresults>true</subresults> |
| 56 | <responseData>false</responseData> |
| 57 | <samplerData>false</samplerData> |
| 58 | <xml>false</xml> |
| 59 | <fieldNames>true</fieldNames> |
| 60 | <responseHeaders>false</responseHeaders> |
| 61 | <requestHeaders>false</requestHeaders> |
| 62 | <responseDataOnError>false</responseDataOnError> |
| 63 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 64 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 65 | <bytes>true</bytes> |
| 66 | <sentBytes>true</sentBytes> |
| 67 | <url>true</url> |
| 68 | <threadCounts>true</threadCounts> |
| 69 | <idleTime>true</idleTime> |
| 70 | <connectTime>true</connectTime> |
| 71 | </value> |
| 72 | </objProp> |
| 73 | <stringProp name="filename"></stringProp> |
| 74 | </ResultCollector> |
| 75 | <hashTree/> |
| 76 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true"> |
| 77 | <boolProp name="ResultCollector.error_logging">true</boolProp> |
| 78 | <objProp> |
| 79 | <name>saveConfig</name> |
| 80 | <value class="SampleSaveConfiguration"> |
| 81 | <time>true</time> |
| 82 | <latency>true</latency> |
| 83 | <timestamp>true</timestamp> |
| 84 | <success>true</success> |
| 85 | <label>true</label> |
| 86 | <code>true</code> |
| 87 | <message>true</message> |
| 88 | <threadName>true</threadName> |
| 89 | <dataType>true</dataType> |
| 90 | <encoding>false</encoding> |
| 91 | <assertions>true</assertions> |
| 92 | <subresults>true</subresults> |
| 93 | <responseData>false</responseData> |
| 94 | <samplerData>false</samplerData> |
| 95 | <xml>false</xml> |
| 96 | <fieldNames>true</fieldNames> |
| 97 | <responseHeaders>false</responseHeaders> |
| 98 | <requestHeaders>false</requestHeaders> |
| 99 | <responseDataOnError>false</responseDataOnError> |
| 100 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 101 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 102 | <bytes>true</bytes> |
| 103 | <sentBytes>true</sentBytes> |
| 104 | <url>true</url> |
| 105 | <threadCounts>true</threadCounts> |
| 106 | <idleTime>true</idleTime> |
| 107 | <connectTime>true</connectTime> |
| 108 | </value> |
| 109 | </objProp> |
| 110 | <stringProp name="filename"></stringProp> |
| 111 | </ResultCollector> |
| 112 | <hashTree/> |
| 113 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="1获取用户组列表" enabled="true"> |
| 114 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 115 | <collectionProp name="Arguments.arguments"/> |
| 116 | </elementProp> |
| 117 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 118 | <stringProp name="HTTPSampler.port"></stringProp> |
| 119 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 120 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 121 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/groups?pageIndex=1&pageSize=20</stringProp> |
| 122 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 123 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 124 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 125 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 126 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 127 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 128 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 129 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 130 | </HTTPSamplerProxy> |
| 131 | <hashTree> |
| 132 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 133 | <collectionProp name="Asserion.test_strings"> |
| 134 | <stringProp name="67791721">"code":0</stringProp> |
| 135 | </collectionProp> |
| 136 | <stringProp name="Assertion.custom_message"></stringProp> |
| 137 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 138 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 139 | <intProp name="Assertion.test_type">2</intProp> |
| 140 | </ResponseAssertion> |
| 141 | <hashTree/> |
| 142 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 143 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 144 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 145 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 146 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 147 | <stringProp name="RegexExtractor.default"></stringProp> |
| 148 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 149 | </RegexExtractor> |
| 150 | <hashTree/> |
| 151 | </hashTree> |
| 152 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="2获取用户组" enabled="true"> |
| 153 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 154 | <collectionProp name="Arguments.arguments"/> |
| 155 | </elementProp> |
| 156 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 157 | <stringProp name="HTTPSampler.port"></stringProp> |
| 158 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 159 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 160 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/groups/REMS</stringProp> |
| 161 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 162 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 163 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 164 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 165 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 166 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 167 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 168 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 169 | </HTTPSamplerProxy> |
| 170 | <hashTree> |
| 171 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 172 | <collectionProp name="Asserion.test_strings"> |
| 173 | <stringProp name="67791721">"code":0</stringProp> |
| 174 | </collectionProp> |
| 175 | <stringProp name="Assertion.custom_message"></stringProp> |
| 176 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 177 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 178 | <intProp name="Assertion.test_type">2</intProp> |
| 179 | </ResponseAssertion> |
| 180 | <hashTree/> |
| 181 | </hashTree> |
| 182 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="3获取用户组(岗位)下的帐号 - 组织机构列表" enabled="true"> |
| 183 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 184 | <collectionProp name="Arguments.arguments"/> |
| 185 | </elementProp> |
| 186 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 187 | <stringProp name="HTTPSampler.port"></stringProp> |
| 188 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 189 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 190 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/groups/REMS/accountOrganizations</stringProp> |
| 191 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 192 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 193 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 194 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 195 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 196 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 197 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 198 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 199 | </HTTPSamplerProxy> |
| 200 | <hashTree> |
| 201 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 202 | <collectionProp name="Asserion.test_strings"> |
| 203 | <stringProp name="67791721">"code":0</stringProp> |
| 204 | </collectionProp> |
| 205 | <stringProp name="Assertion.custom_message"></stringProp> |
| 206 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 207 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 208 | <intProp name="Assertion.test_type">2</intProp> |
| 209 | </ResponseAssertion> |
| 210 | <hashTree/> |
| 211 | </hashTree> |
| 212 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="4获取用户组下的用户列表" enabled="true"> |
| 213 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 214 | <collectionProp name="Arguments.arguments"/> |
| 215 | </elementProp> |
| 216 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 217 | <stringProp name="HTTPSampler.port"></stringProp> |
| 218 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 219 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 220 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/groups/REMS/users</stringProp> |
| 221 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 222 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 223 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 224 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 225 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 226 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 227 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 228 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 229 | </HTTPSamplerProxy> |
| 230 | <hashTree> |
| 231 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 232 | <collectionProp name="Asserion.test_strings"> |
| 233 | <stringProp name="67791721">"code":0</stringProp> |
| 234 | </collectionProp> |
| 235 | <stringProp name="Assertion.custom_message"></stringProp> |
| 236 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 237 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 238 | <intProp name="Assertion.test_type">2</intProp> |
| 239 | </ResponseAssertion> |
| 240 | <hashTree/> |
| 241 | </hashTree> |
| 242 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="5获取账号下的用户组" enabled="true"> |
| 243 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 244 | <collectionProp name="Arguments.arguments"/> |
| 245 | </elementProp> |
| 246 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 247 | <stringProp name="HTTPSampler.port"></stringProp> |
| 248 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 249 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 250 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/groups/accountId/01010/groups</stringProp> |
| 251 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 252 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 253 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 254 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 255 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 256 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 257 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 258 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 259 | </HTTPSamplerProxy> |
| 260 | <hashTree> |
| 261 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 262 | <collectionProp name="Asserion.test_strings"> |
| 263 | <stringProp name="67791721">"code":0</stringProp> |
| 264 | </collectionProp> |
| 265 | <stringProp name="Assertion.custom_message"></stringProp> |
| 266 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 267 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 268 | <intProp name="Assertion.test_type">2</intProp> |
| 269 | </ResponseAssertion> |
| 270 | <hashTree/> |
| 271 | </hashTree> |
| 272 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="6获取用户列表" enabled="true"> |
| 273 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 274 | <collectionProp name="Arguments.arguments"/> |
| 275 | </elementProp> |
| 276 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 277 | <stringProp name="HTTPSampler.port"></stringProp> |
| 278 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 279 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 280 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/users?pageIndex=1&pageSize=20</stringProp> |
| 281 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 282 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 283 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 284 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 285 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 286 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 287 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 288 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 289 | </HTTPSamplerProxy> |
| 290 | <hashTree> |
| 291 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 292 | <collectionProp name="Asserion.test_strings"> |
| 293 | <stringProp name="67791721">"code":0</stringProp> |
| 294 | </collectionProp> |
| 295 | <stringProp name="Assertion.custom_message"></stringProp> |
| 296 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 297 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 298 | <intProp name="Assertion.test_type">2</intProp> |
| 299 | </ResponseAssertion> |
| 300 | <hashTree/> |
| 301 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 302 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 303 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 304 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 305 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 306 | <stringProp name="RegexExtractor.default"></stringProp> |
| 307 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 308 | </RegexExtractor> |
| 309 | <hashTree/> |
| 310 | </hashTree> |
| 311 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="7根据帐号ID获取用户信息" enabled="true"> |
| 312 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 313 | <collectionProp name="Arguments.arguments"/> |
| 314 | </elementProp> |
| 315 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 316 | <stringProp name="HTTPSampler.port"></stringProp> |
| 317 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 318 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 319 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/users/01010</stringProp> |
| 320 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 321 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 322 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 323 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 324 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 325 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 326 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 327 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 328 | </HTTPSamplerProxy> |
| 329 | <hashTree> |
| 330 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 331 | <collectionProp name="Asserion.test_strings"> |
| 332 | <stringProp name="67791721">"code":0</stringProp> |
| 333 | </collectionProp> |
| 334 | <stringProp name="Assertion.custom_message"></stringProp> |
| 335 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 336 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 337 | <intProp name="Assertion.test_type">2</intProp> |
| 338 | </ResponseAssertion> |
| 339 | <hashTree/> |
| 340 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 341 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 342 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 343 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 344 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 345 | <stringProp name="RegexExtractor.default"></stringProp> |
| 346 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 347 | </RegexExtractor> |
| 348 | <hashTree/> |
| 349 | </hashTree> |
| 350 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="8根据帐号ID获取用户头像" enabled="false"> |
| 351 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 352 | <collectionProp name="Arguments.arguments"/> |
| 353 | </elementProp> |
| 354 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 355 | <stringProp name="HTTPSampler.port"></stringProp> |
| 356 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 357 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 358 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/users/01010/portrait</stringProp> |
| 359 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 360 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 361 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 362 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 363 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 364 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 365 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 366 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 367 | </HTTPSamplerProxy> |
| 368 | <hashTree> |
| 369 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 370 | <collectionProp name="Asserion.test_strings"> |
| 371 | <stringProp name="67791721">"code":0</stringProp> |
| 372 | </collectionProp> |
| 373 | <stringProp name="Assertion.custom_message"></stringProp> |
| 374 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 375 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 376 | <intProp name="Assertion.test_type">2</intProp> |
| 377 | </ResponseAssertion> |
| 378 | <hashTree/> |
| 379 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 380 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 381 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 382 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 383 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 384 | <stringProp name="RegexExtractor.default"></stringProp> |
| 385 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 386 | </RegexExtractor> |
| 387 | <hashTree/> |
| 388 | </hashTree> |
| 389 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="9根据帐号获取用户信息" enabled="true"> |
| 390 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 391 | <collectionProp name="Arguments.arguments"/> |
| 392 | </elementProp> |
| 393 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 394 | <stringProp name="HTTPSampler.port"></stringProp> |
| 395 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 396 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 397 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/users/accountName/01014</stringProp> |
| 398 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 399 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 400 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 401 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 402 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 403 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 404 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 405 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 406 | </HTTPSamplerProxy> |
| 407 | <hashTree> |
| 408 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 409 | <collectionProp name="Asserion.test_strings"> |
| 410 | <stringProp name="67791721">"code":0</stringProp> |
| 411 | </collectionProp> |
| 412 | <stringProp name="Assertion.custom_message"></stringProp> |
| 413 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 414 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 415 | <intProp name="Assertion.test_type">2</intProp> |
| 416 | </ResponseAssertion> |
| 417 | <hashTree/> |
| 418 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 419 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 420 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 421 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 422 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 423 | <stringProp name="RegexExtractor.default"></stringProp> |
| 424 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 425 | </RegexExtractor> |
| 426 | <hashTree/> |
| 427 | </hashTree> |
| 428 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="10根据帐号获取用户头像" enabled="false"> |
| 429 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 430 | <collectionProp name="Arguments.arguments"/> |
| 431 | </elementProp> |
| 432 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 433 | <stringProp name="HTTPSampler.port"></stringProp> |
| 434 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 435 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 436 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/users/accountName/01014/portrait</stringProp> |
| 437 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 438 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 439 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 440 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 441 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 442 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 443 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 444 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 445 | </HTTPSamplerProxy> |
| 446 | <hashTree> |
| 447 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 448 | <collectionProp name="Asserion.test_strings"> |
| 449 | <stringProp name="67791721">"code":0</stringProp> |
| 450 | </collectionProp> |
| 451 | <stringProp name="Assertion.custom_message"></stringProp> |
| 452 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 453 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 454 | <intProp name="Assertion.test_type">2</intProp> |
| 455 | </ResponseAssertion> |
| 456 | <hashTree/> |
| 457 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 458 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 459 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 460 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 461 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 462 | <stringProp name="RegexExtractor.default"></stringProp> |
| 463 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 464 | </RegexExtractor> |
| 465 | <hashTree/> |
| 466 | </hashTree> |
| 467 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="11获取组织机构" enabled="true"> |
| 468 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 469 | <collectionProp name="Arguments.arguments"/> |
| 470 | </elementProp> |
| 471 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 472 | <stringProp name="HTTPSampler.port"></stringProp> |
| 473 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 474 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 475 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/organizations/01050</stringProp> |
| 476 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 477 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 478 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 479 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 480 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 481 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 482 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 483 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 484 | </HTTPSamplerProxy> |
| 485 | <hashTree> |
| 486 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 487 | <collectionProp name="Asserion.test_strings"> |
| 488 | <stringProp name="67791721">"code":0</stringProp> |
| 489 | </collectionProp> |
| 490 | <stringProp name="Assertion.custom_message"></stringProp> |
| 491 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 492 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 493 | <intProp name="Assertion.test_type">2</intProp> |
| 494 | </ResponseAssertion> |
| 495 | <hashTree/> |
| 496 | </hashTree> |
| 497 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="12获取组织机构下用户列表" enabled="true"> |
| 498 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 499 | <collectionProp name="Arguments.arguments"/> |
| 500 | </elementProp> |
| 501 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 502 | <stringProp name="HTTPSampler.port"></stringProp> |
| 503 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 504 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 505 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/organizations/01050/users?pageIndex=1&pageSize=20</stringProp> |
| 506 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 507 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 508 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 509 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 510 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 511 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 512 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 513 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 514 | </HTTPSamplerProxy> |
| 515 | <hashTree> |
| 516 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 517 | <collectionProp name="Asserion.test_strings"> |
| 518 | <stringProp name="67791721">"code":0</stringProp> |
| 519 | </collectionProp> |
| 520 | <stringProp name="Assertion.custom_message"></stringProp> |
| 521 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 522 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 523 | <intProp name="Assertion.test_type">2</intProp> |
| 524 | </ResponseAssertion> |
| 525 | <hashTree/> |
| 526 | </hashTree> |
| 527 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="13获取组织机构树" enabled="true"> |
| 528 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 529 | <collectionProp name="Arguments.arguments"/> |
| 530 | </elementProp> |
| 531 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 532 | <stringProp name="HTTPSampler.port"></stringProp> |
| 533 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 534 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 535 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/organizations/organizationTree</stringProp> |
| 536 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 537 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 538 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 539 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 540 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 541 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 542 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 543 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 544 | </HTTPSamplerProxy> |
| 545 | <hashTree> |
| 546 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 547 | <collectionProp name="Asserion.test_strings"> |
| 548 | <stringProp name="67791721">"code":0</stringProp> |
| 549 | </collectionProp> |
| 550 | <stringProp name="Assertion.custom_message"></stringProp> |
| 551 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 552 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 553 | <intProp name="Assertion.test_type">2</intProp> |
| 554 | </ResponseAssertion> |
| 555 | <hashTree/> |
| 556 | </hashTree> |
| 557 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="14获取根组织机构列表" enabled="true"> |
| 558 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 559 | <collectionProp name="Arguments.arguments"/> |
| 560 | </elementProp> |
| 561 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 562 | <stringProp name="HTTPSampler.port"></stringProp> |
| 563 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 564 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 565 | <stringProp name="HTTPSampler.path">${userApiHost}/v1/organizations/rootOrganization</stringProp> |
| 566 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 567 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 568 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 569 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 570 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 571 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 572 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 573 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 574 | </HTTPSamplerProxy> |
| 575 | <hashTree> |
| 576 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 577 | <collectionProp name="Asserion.test_strings"> |
| 578 | <stringProp name="67791721">"code":0</stringProp> |
| 579 | </collectionProp> |
| 580 | <stringProp name="Assertion.custom_message"></stringProp> |
| 581 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 582 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 583 | <intProp name="Assertion.test_type">2</intProp> |
| 584 | </ResponseAssertion> |
| 585 | <hashTree/> |
| 586 | </hashTree> |
| 587 | </hashTree> |
| 588 | </hashTree> |
| 589 | </hashTree> |
| 590 | </jmeterTestPlan> |