刘洪青 | 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="User Data Service Tests" enabled="true"> |
| 5 | <stringProp name="TestPlan.comments"></stringProp> |
| 6 | <boolProp name="TestPlan.functional_mode">false</boolProp> |
| 7 | <boolProp name="TestPlan.serialize_threadgroups">false</boolProp> |
| 8 | <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 9 | <collectionProp name="Arguments.arguments"/> |
| 10 | </elementProp> |
| 11 | <stringProp name="TestPlan.user_define_classpath"></stringProp> |
| 12 | </TestPlan> |
| 13 | <hashTree> |
| 14 | <Arguments guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 15 | <collectionProp name="Arguments.arguments"> |
| 16 | <elementProp name="ThreadCount" elementType="Argument"> |
| 17 | <stringProp name="Argument.name">ThreadCount</stringProp> |
| 18 | <stringProp name="Argument.value">100</stringProp> |
| 19 | <stringProp name="Argument.metadata">=</stringProp> |
| 20 | <stringProp name="Argument.desc">Number of Threads</stringProp> |
| 21 | </elementProp> |
| 22 | <elementProp name="Duration" elementType="Argument"> |
| 23 | <stringProp name="Argument.name">Duration</stringProp> |
| 24 | <stringProp name="Argument.value">120</stringProp> |
| 25 | <stringProp name="Argument.metadata">=</stringProp> |
| 26 | <stringProp name="Argument.desc">in seconds</stringProp> |
| 27 | </elementProp> |
| 28 | <elementProp name="startupDelay" elementType="Argument"> |
| 29 | <stringProp name="Argument.name">startupDelay</stringProp> |
| 30 | <stringProp name="Argument.value">3</stringProp> |
| 31 | <stringProp name="Argument.metadata">=</stringProp> |
| 32 | <stringProp name="Argument.desc">in seconds</stringProp> |
| 33 | </elementProp> |
| 34 | <elementProp name="RampUpPeriod" elementType="Argument"> |
| 35 | <stringProp name="Argument.name">RampUpPeriod</stringProp> |
| 36 | <stringProp name="Argument.value">3</stringProp> |
| 37 | <stringProp name="Argument.metadata">=</stringProp> |
| 38 | <stringProp name="Argument.desc">in seconds</stringProp> |
| 39 | </elementProp> |
| 40 | <elementProp name="UserSaHost" elementType="Argument"> |
| 41 | <stringProp name="Argument.name">UserSaHost</stringProp> |
| 42 | <stringProp name="Argument.value">http://172.50.10.24:8022</stringProp> |
| 43 | <stringProp name="Argument.metadata">=</stringProp> |
| 44 | </elementProp> |
| 45 | </collectionProp> |
| 46 | </Arguments> |
| 47 | <hashTree/> |
| 48 | <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Get Users/Passwords" enabled="false"> |
| 49 | <stringProp name="filename">/Users/loie/c/work/git/institute/deploy-admin-portal/testing/jmeter/accounts.csv</stringProp> |
| 50 | <stringProp name="fileEncoding"></stringProp> |
| 51 | <stringProp name="variableNames">accountName,password</stringProp> |
| 52 | <stringProp name="delimiter">,</stringProp> |
| 53 | <boolProp name="quotedData">false</boolProp> |
| 54 | <boolProp name="recycle">true</boolProp> |
| 55 | <boolProp name="stopThread">false</boolProp> |
| 56 | <stringProp name="shareMode">shareMode.all</stringProp> |
| 57 | <boolProp name="ignoreFirstLine">false</boolProp> |
| 58 | </CSVDataSet> |
| 59 | <hashTree/> |
| 60 | <CookieManager guiclass="CookiePanel" testclass="CookieManager" testname="HTTP Cookie Manager" enabled="true"> |
| 61 | <collectionProp name="CookieManager.cookies"/> |
| 62 | <boolProp name="CookieManager.clearEachIteration">true</boolProp> |
| 63 | <boolProp name="CookieManager.controlledByThreadGroup">false</boolProp> |
| 64 | </CookieManager> |
| 65 | <hashTree/> |
| 66 | <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true"> |
| 67 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 68 | <collectionProp name="Arguments.arguments"/> |
| 69 | </elementProp> |
| 70 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 71 | <stringProp name="HTTPSampler.port"></stringProp> |
| 72 | <stringProp name="HTTPSampler.protocol">https</stringProp> |
| 73 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 74 | <stringProp name="HTTPSampler.path"></stringProp> |
| 75 | <stringProp name="HTTPSampler.concurrentPool">4</stringProp> |
| 76 | <stringProp name="HTTPSampler.implementation">HttpClient4</stringProp> |
| 77 | <stringProp name="HTTPSampler.connect_timeout">120000</stringProp> |
| 78 | <stringProp name="HTTPSampler.response_timeout">120000</stringProp> |
| 79 | </ConfigTestElement> |
| 80 | <hashTree/> |
| 81 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true"> |
| 82 | <boolProp name="ResultCollector.error_logging">true</boolProp> |
| 83 | <objProp> |
| 84 | <name>saveConfig</name> |
| 85 | <value class="SampleSaveConfiguration"> |
| 86 | <time>true</time> |
| 87 | <latency>true</latency> |
| 88 | <timestamp>true</timestamp> |
| 89 | <success>true</success> |
| 90 | <label>true</label> |
| 91 | <code>true</code> |
| 92 | <message>true</message> |
| 93 | <threadName>true</threadName> |
| 94 | <dataType>true</dataType> |
| 95 | <encoding>false</encoding> |
| 96 | <assertions>true</assertions> |
| 97 | <subresults>true</subresults> |
| 98 | <responseData>true</responseData> |
| 99 | <samplerData>false</samplerData> |
| 100 | <xml>true</xml> |
| 101 | <fieldNames>false</fieldNames> |
| 102 | <responseHeaders>true</responseHeaders> |
| 103 | <requestHeaders>true</requestHeaders> |
| 104 | <responseDataOnError>false</responseDataOnError> |
| 105 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 106 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 107 | <bytes>true</bytes> |
| 108 | <sentBytes>true</sentBytes> |
| 109 | <url>true</url> |
| 110 | <fileName>true</fileName> |
| 111 | <hostname>true</hostname> |
| 112 | <threadCounts>true</threadCounts> |
| 113 | <connectTime>true</connectTime> |
| 114 | </value> |
| 115 | </objProp> |
| 116 | <stringProp name="filename">/home/ubuntu/user-sa/tree.xml</stringProp> |
| 117 | </ResultCollector> |
| 118 | <hashTree/> |
| 119 | <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true"> |
| 120 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 121 | <objProp> |
| 122 | <name>saveConfig</name> |
| 123 | <value class="SampleSaveConfiguration"> |
| 124 | <time>true</time> |
| 125 | <latency>true</latency> |
| 126 | <timestamp>true</timestamp> |
| 127 | <success>true</success> |
| 128 | <label>true</label> |
| 129 | <code>true</code> |
| 130 | <message>true</message> |
| 131 | <threadName>true</threadName> |
| 132 | <dataType>true</dataType> |
| 133 | <encoding>true</encoding> |
| 134 | <assertions>true</assertions> |
| 135 | <subresults>true</subresults> |
| 136 | <responseData>true</responseData> |
| 137 | <samplerData>false</samplerData> |
| 138 | <xml>true</xml> |
| 139 | <fieldNames>false</fieldNames> |
| 140 | <responseHeaders>true</responseHeaders> |
| 141 | <requestHeaders>true</requestHeaders> |
| 142 | <responseDataOnError>false</responseDataOnError> |
| 143 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 144 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 145 | <bytes>true</bytes> |
| 146 | <sentBytes>true</sentBytes> |
| 147 | <url>true</url> |
| 148 | <fileName>true</fileName> |
| 149 | <hostname>true</hostname> |
| 150 | <threadCounts>true</threadCounts> |
| 151 | <idleTime>true</idleTime> |
| 152 | <connectTime>true</connectTime> |
| 153 | </value> |
| 154 | </objProp> |
| 155 | <stringProp name="filename">/home/ubuntu/user-sa/report.xml</stringProp> |
| 156 | <boolProp name="useGroupName">true</boolProp> |
| 157 | </ResultCollector> |
| 158 | <hashTree/> |
| 159 | <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="User Data Service - Security Account" enabled="true"> |
| 160 | <stringProp name="ThreadGroup.on_sample_error">startnextloop</stringProp> |
| 161 | <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true"> |
| 162 | <boolProp name="LoopController.continue_forever">false</boolProp> |
| 163 | <intProp name="LoopController.loops">-1</intProp> |
| 164 | </elementProp> |
| 165 | <stringProp name="ThreadGroup.num_threads">${ThreadCount}</stringProp> |
| 166 | <stringProp name="ThreadGroup.ramp_time">${RampUpPeriod}</stringProp> |
| 167 | <longProp name="ThreadGroup.start_time">1500501626000</longProp> |
| 168 | <longProp name="ThreadGroup.end_time">1500501626000</longProp> |
| 169 | <boolProp name="ThreadGroup.scheduler">true</boolProp> |
| 170 | <stringProp name="ThreadGroup.duration">${Duration}</stringProp> |
| 171 | <stringProp name="ThreadGroup.delay">${StartupDelay}</stringProp> |
| 172 | <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
| 173 | </ThreadGroup> |
| 174 | <hashTree> |
| 175 | <ModuleController guiclass="ModuleControllerGui" testclass="ModuleController" testname="GET - User Data Service - Security Account" enabled="true"> |
| 176 | <collectionProp name="ModuleController.node_path"> |
| 177 | <stringProp name="764597751">Test Plan</stringProp> |
| 178 | <stringProp name="-2063844043">User Data Service Tests</stringProp> |
| 179 | <stringProp name="1724869225">GET - User Data Service - Security Account</stringProp> |
| 180 | </collectionProp> |
| 181 | </ModuleController> |
| 182 | <hashTree/> |
| 183 | <ModuleController guiclass="ModuleControllerGui" testclass="ModuleController" testname="GET - User Data Service - Account" enabled="true"> |
| 184 | <collectionProp name="ModuleController.node_path"> |
| 185 | <stringProp name="764597751">Test Plan</stringProp> |
| 186 | <stringProp name="-2063844043">User Data Service Tests</stringProp> |
| 187 | <stringProp name="-407568015">GET - User Data Service - Account</stringProp> |
| 188 | </collectionProp> |
| 189 | </ModuleController> |
| 190 | <hashTree/> |
| 191 | <ModuleController guiclass="ModuleControllerGui" testclass="ModuleController" testname="GET - http://echo.paas.nwpu.edu.cn/" enabled="false"> |
| 192 | <collectionProp name="ModuleController.node_path"> |
| 193 | <stringProp name="764597751">Test Plan</stringProp> |
| 194 | <stringProp name="-2063844043">User Data Service Tests</stringProp> |
| 195 | <stringProp name="-1501903837">GET - http://echo.paas.nwpu.edu.cn/</stringProp> |
| 196 | </collectionProp> |
| 197 | </ModuleController> |
| 198 | <hashTree/> |
| 199 | </hashTree> |
| 200 | <TestFragmentController guiclass="TestFragmentControllerGui" testclass="TestFragmentController" testname="GET - User Data Service - Security Account" enabled="true"/> |
| 201 | <hashTree> |
| 202 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET - loadUserInfoByAccountName" enabled="true"> |
| 203 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 204 | <collectionProp name="Arguments.arguments"/> |
| 205 | </elementProp> |
| 206 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 207 | <stringProp name="HTTPSampler.port"></stringProp> |
| 208 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 209 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 210 | <stringProp name="HTTPSampler.path">${UserSaHost}/api/v1/security/accounts/accountName/smartadmin</stringProp> |
| 211 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 212 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 213 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 214 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 215 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 216 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 217 | <stringProp name="HTTPSampler.connect_timeout">120000</stringProp> |
| 218 | <stringProp name="HTTPSampler.response_timeout">120000</stringProp> |
| 219 | </HTTPSamplerProxy> |
| 220 | <hashTree> |
| 221 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 222 | <collectionProp name="Asserion.test_strings"> |
| 223 | <stringProp name="49586">200</stringProp> |
| 224 | </collectionProp> |
| 225 | <stringProp name="Assertion.custom_message"></stringProp> |
| 226 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 227 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 228 | <intProp name="Assertion.test_type">8</intProp> |
| 229 | </ResponseAssertion> |
| 230 | <hashTree/> |
| 231 | </hashTree> |
| 232 | </hashTree> |
| 233 | <TestFragmentController guiclass="TestFragmentControllerGui" testclass="TestFragmentController" testname="GET - User Data Service - Account" enabled="true"/> |
| 234 | <hashTree> |
| 235 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET - findByAccountName" enabled="true"> |
| 236 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 237 | <collectionProp name="Arguments.arguments"/> |
| 238 | </elementProp> |
| 239 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 240 | <stringProp name="HTTPSampler.port"></stringProp> |
| 241 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 242 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 243 | <stringProp name="HTTPSampler.path">${UserSaHost}/api/v1/base/account/find/smartadmin</stringProp> |
| 244 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 245 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 246 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 247 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 248 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 249 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 250 | <stringProp name="HTTPSampler.connect_timeout">120000</stringProp> |
| 251 | <stringProp name="HTTPSampler.response_timeout">120000</stringProp> |
| 252 | </HTTPSamplerProxy> |
| 253 | <hashTree> |
| 254 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 255 | <collectionProp name="Asserion.test_strings"> |
| 256 | <stringProp name="49586">200</stringProp> |
| 257 | </collectionProp> |
| 258 | <stringProp name="Assertion.custom_message"></stringProp> |
| 259 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 260 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 261 | <intProp name="Assertion.test_type">8</intProp> |
| 262 | </ResponseAssertion> |
| 263 | <hashTree/> |
| 264 | </hashTree> |
| 265 | </hashTree> |
| 266 | <TestFragmentController guiclass="TestFragmentControllerGui" testclass="TestFragmentController" testname="GET - http://echo.paas.nwpu.edu.cn/" enabled="false"/> |
| 267 | <hashTree> |
| 268 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET - http://echo.paas.nwpu.edu.cn/" enabled="true"> |
| 269 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 270 | <collectionProp name="Arguments.arguments"/> |
| 271 | </elementProp> |
| 272 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 273 | <stringProp name="HTTPSampler.port"></stringProp> |
| 274 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 275 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 276 | <stringProp name="HTTPSampler.path">http://echo.paas.nwpu.edu.cn/</stringProp> |
| 277 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 278 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 279 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 280 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 281 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 282 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 283 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 284 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 285 | </HTTPSamplerProxy> |
| 286 | <hashTree> |
| 287 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true"> |
| 288 | <collectionProp name="Asserion.test_strings"> |
| 289 | <stringProp name="49586">200</stringProp> |
| 290 | </collectionProp> |
| 291 | <stringProp name="Assertion.custom_message"></stringProp> |
| 292 | <stringProp name="Assertion.test_field">Assertion.response_code</stringProp> |
| 293 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 294 | <intProp name="Assertion.test_type">8</intProp> |
| 295 | </ResponseAssertion> |
| 296 | <hashTree/> |
| 297 | </hashTree> |
| 298 | </hashTree> |
| 299 | </hashTree> |
| 300 | </hashTree> |
| 301 | </jmeterTestPlan> |