刘洪青 | 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 | <intProp name="LoopController.loops">-1</intProp> |
| 20 | </elementProp> |
| 21 | <stringProp name="ThreadGroup.num_threads">100</stringProp> |
| 22 | <stringProp name="ThreadGroup.ramp_time">1</stringProp> |
| 23 | <boolProp name="ThreadGroup.scheduler">true</boolProp> |
| 24 | <stringProp name="ThreadGroup.duration">120</stringProp> |
| 25 | <stringProp name="ThreadGroup.delay"></stringProp> |
| 26 | <boolProp name="ThreadGroup.same_user_on_next_iteration">true</boolProp> |
| 27 | </SetupThreadGroup> |
| 28 | <hashTree> |
| 29 | <ConfigTestElement guiclass="HttpDefaultsGui" testclass="ConfigTestElement" testname="HTTP Request Defaults" enabled="true"> |
| 30 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true"> |
| 31 | <collectionProp name="Arguments.arguments"/> |
| 32 | </elementProp> |
| 33 | <stringProp name="HTTPSampler.domain">192.168.101.25</stringProp> |
| 34 | <stringProp name="HTTPSampler.port">8031</stringProp> |
| 35 | <stringProp name="HTTPSampler.protocol">http</stringProp> |
| 36 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 37 | <stringProp name="HTTPSampler.path"></stringProp> |
| 38 | <stringProp name="HTTPSampler.concurrentPool">6</stringProp> |
| 39 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 40 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 41 | </ConfigTestElement> |
| 42 | <hashTree/> |
| 43 | <ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="聚合报告" enabled="true"> |
| 44 | <boolProp name="ResultCollector.error_logging">false</boolProp> |
| 45 | <objProp> |
| 46 | <name>saveConfig</name> |
| 47 | <value class="SampleSaveConfiguration"> |
| 48 | <time>true</time> |
| 49 | <latency>true</latency> |
| 50 | <timestamp>true</timestamp> |
| 51 | <success>true</success> |
| 52 | <label>true</label> |
| 53 | <code>true</code> |
| 54 | <message>true</message> |
| 55 | <threadName>true</threadName> |
| 56 | <dataType>true</dataType> |
| 57 | <encoding>false</encoding> |
| 58 | <assertions>true</assertions> |
| 59 | <subresults>true</subresults> |
| 60 | <responseData>false</responseData> |
| 61 | <samplerData>false</samplerData> |
| 62 | <xml>true</xml> |
| 63 | <fieldNames>true</fieldNames> |
| 64 | <responseHeaders>false</responseHeaders> |
| 65 | <requestHeaders>false</requestHeaders> |
| 66 | <responseDataOnError>false</responseDataOnError> |
| 67 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 68 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 69 | <bytes>true</bytes> |
| 70 | <sentBytes>true</sentBytes> |
| 71 | <url>true</url> |
| 72 | <threadCounts>true</threadCounts> |
| 73 | <idleTime>true</idleTime> |
| 74 | <connectTime>true</connectTime> |
| 75 | </value> |
| 76 | </objProp> |
| 77 | <stringProp name="filename">/home/ubuntu/user-authz-poa/report.xml</stringProp> |
| 78 | </ResultCollector> |
| 79 | <hashTree/> |
| 80 | <ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true"> |
| 81 | <boolProp name="ResultCollector.error_logging">true</boolProp> |
| 82 | <objProp> |
| 83 | <name>saveConfig</name> |
| 84 | <value class="SampleSaveConfiguration"> |
| 85 | <time>true</time> |
| 86 | <latency>true</latency> |
| 87 | <timestamp>true</timestamp> |
| 88 | <success>true</success> |
| 89 | <label>true</label> |
| 90 | <code>true</code> |
| 91 | <message>true</message> |
| 92 | <threadName>true</threadName> |
| 93 | <dataType>true</dataType> |
| 94 | <encoding>false</encoding> |
| 95 | <assertions>true</assertions> |
| 96 | <subresults>true</subresults> |
| 97 | <responseData>false</responseData> |
| 98 | <samplerData>false</samplerData> |
| 99 | <xml>true</xml> |
| 100 | <fieldNames>true</fieldNames> |
| 101 | <responseHeaders>false</responseHeaders> |
| 102 | <requestHeaders>false</requestHeaders> |
| 103 | <responseDataOnError>false</responseDataOnError> |
| 104 | <saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage> |
| 105 | <assertionsResultsToSave>0</assertionsResultsToSave> |
| 106 | <bytes>true</bytes> |
| 107 | <sentBytes>true</sentBytes> |
| 108 | <url>true</url> |
| 109 | <threadCounts>true</threadCounts> |
| 110 | <idleTime>true</idleTime> |
| 111 | <connectTime>true</connectTime> |
| 112 | </value> |
| 113 | </objProp> |
| 114 | <stringProp name="filename">/home/ubuntu/user-authz-poa/tree.xml</stringProp> |
| 115 | </ResultCollector> |
| 116 | <hashTree/> |
| 117 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="1 获取应用下的角色列表" enabled="true"> |
| 118 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 119 | <collectionProp name="Arguments.arguments"/> |
| 120 | </elementProp> |
| 121 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 122 | <stringProp name="HTTPSampler.port"></stringProp> |
| 123 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 124 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 125 | <stringProp name="HTTPSampler.path">/v1/application/1/roles</stringProp> |
| 126 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 127 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 128 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 129 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 130 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 131 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 132 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 133 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 134 | </HTTPSamplerProxy> |
| 135 | <hashTree> |
| 136 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 137 | <collectionProp name="Asserion.test_strings"> |
| 138 | <stringProp name="67791721">"code":0</stringProp> |
| 139 | </collectionProp> |
| 140 | <stringProp name="Assertion.custom_message"></stringProp> |
| 141 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 142 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 143 | <intProp name="Assertion.test_type">2</intProp> |
| 144 | </ResponseAssertion> |
| 145 | <hashTree/> |
| 146 | <RegexExtractor guiclass="RegexExtractorGui" testclass="RegexExtractor" testname="get_id" enabled="true"> |
| 147 | <stringProp name="RegexExtractor.useHeaders">false</stringProp> |
| 148 | <stringProp name="RegexExtractor.refname">id</stringProp> |
| 149 | <stringProp name="RegexExtractor.regex">{"code":0,"message":null,"data":{"pageIndex":1,"pageSize":20,"pageCount":9,"totalCount":170,"currentCount":20,"items":[{"id":"(.+)",</stringProp> |
| 150 | <stringProp name="RegexExtractor.template">$1$</stringProp> |
| 151 | <stringProp name="RegexExtractor.default"></stringProp> |
| 152 | <stringProp name="RegexExtractor.match_number">1</stringProp> |
| 153 | </RegexExtractor> |
| 154 | <hashTree/> |
| 155 | </hashTree> |
| 156 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="2 获取应用下的一个角色的用户帐号" enabled="true"> |
| 157 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 158 | <collectionProp name="Arguments.arguments"/> |
| 159 | </elementProp> |
| 160 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 161 | <stringProp name="HTTPSampler.port"></stringProp> |
| 162 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 163 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 164 | <stringProp name="HTTPSampler.path">/v1/application/1/role/cas-admin/accounts</stringProp> |
| 165 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 166 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 167 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 168 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 169 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 170 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 171 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 172 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 173 | </HTTPSamplerProxy> |
| 174 | <hashTree> |
| 175 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 176 | <collectionProp name="Asserion.test_strings"> |
| 177 | <stringProp name="67791721">"code":0</stringProp> |
| 178 | </collectionProp> |
| 179 | <stringProp name="Assertion.custom_message"></stringProp> |
| 180 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 181 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 182 | <intProp name="Assertion.test_type">2</intProp> |
| 183 | </ResponseAssertion> |
| 184 | <hashTree/> |
| 185 | </hashTree> |
| 186 | <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="3 获取用户帐号在某一应用下所拥有的角色" enabled="true"> |
| 187 | <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> |
| 188 | <collectionProp name="Arguments.arguments"/> |
| 189 | </elementProp> |
| 190 | <stringProp name="HTTPSampler.domain"></stringProp> |
| 191 | <stringProp name="HTTPSampler.port"></stringProp> |
| 192 | <stringProp name="HTTPSampler.protocol"></stringProp> |
| 193 | <stringProp name="HTTPSampler.contentEncoding"></stringProp> |
| 194 | <stringProp name="HTTPSampler.path">/v1/application/1/account/smartadmin/roles</stringProp> |
| 195 | <stringProp name="HTTPSampler.method">GET</stringProp> |
| 196 | <boolProp name="HTTPSampler.follow_redirects">true</boolProp> |
| 197 | <boolProp name="HTTPSampler.auto_redirects">false</boolProp> |
| 198 | <boolProp name="HTTPSampler.use_keepalive">true</boolProp> |
| 199 | <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> |
| 200 | <stringProp name="HTTPSampler.embedded_url_re"></stringProp> |
| 201 | <stringProp name="HTTPSampler.connect_timeout"></stringProp> |
| 202 | <stringProp name="HTTPSampler.response_timeout"></stringProp> |
| 203 | </HTTPSamplerProxy> |
| 204 | <hashTree> |
| 205 | <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> |
| 206 | <collectionProp name="Asserion.test_strings"> |
| 207 | <stringProp name="67791721">"code":0</stringProp> |
| 208 | </collectionProp> |
| 209 | <stringProp name="Assertion.custom_message"></stringProp> |
| 210 | <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> |
| 211 | <boolProp name="Assertion.assume_success">false</boolProp> |
| 212 | <intProp name="Assertion.test_type">2</intProp> |
| 213 | </ResponseAssertion> |
| 214 | <hashTree/> |
| 215 | </hashTree> |
| 216 | </hashTree> |
| 217 | </hashTree> |
| 218 | </hashTree> |
| 219 | </jmeterTestPlan> |