blob: ab681e6ea8784166c98bba71f4ba994b42ce2565 [file] [log] [blame]
刘洪青47205852020-08-14 13:39:30 +08001<?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 Authz 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="UserAuthzSaHost" elementType="Argument">
41 <stringProp name="Argument.name">UserAuthzSaHost</stringProp>
42 <stringProp name="Argument.value">http://172.50.10.36:8032</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-authz-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-authz-sa/result.xml</stringProp>
156 <boolProp name="useGroupName">true</boolProp>
157 </ResultCollector>
158 <hashTree/>
159 <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="User Authz Service" 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 Authz Service - Security Account" enabled="true">
176 <collectionProp name="ModuleController.node_path">
177 <stringProp name="764597751">Test Plan</stringProp>
178 <stringProp name="1292079379">User Authz Service Tests</stringProp>
179 <stringProp name="-1389743438">GET - User Authz Service - Security Role</stringProp>
180 </collectionProp>
181 </ModuleController>
182 <hashTree/>
183 </hashTree>
184 <TestFragmentController guiclass="TestFragmentControllerGui" testclass="TestFragmentController" testname="GET - User Authz Service - Security Role" enabled="true"/>
185 <hashTree>
186 <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="GET - loadUserInfoByAccountName" enabled="true">
187 <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" 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">${UserAuthzSaHost}/v1/security/roles/applicationId/1/accountId/1</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">120000</stringProp>
202 <stringProp name="HTTPSampler.response_timeout">120000</stringProp>
203 </HTTPSamplerProxy>
204 <hashTree>
205 <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
206 <collectionProp name="Asserion.test_strings">
207 <stringProp name="49586">200</stringProp>
208 </collectionProp>
209 <stringProp name="Assertion.custom_message"></stringProp>
210 <stringProp name="Assertion.test_field">Assertion.response_code</stringProp>
211 <boolProp name="Assertion.assume_success">false</boolProp>
212 <intProp name="Assertion.test_type">8</intProp>
213 </ResponseAssertion>
214 <hashTree/>
215 </hashTree>
216 </hashTree>
217 </hashTree>
218 </hashTree>
219</jmeterTestPlan>