Showing
1 changed file
with
132 additions
and
0 deletions
@@ -48,6 +48,11 @@ | @@ -48,6 +48,11 @@ | ||
48 | <stringProp name="Argument.value">414</stringProp> | 48 | <stringProp name="Argument.value">414</stringProp> |
49 | <stringProp name="Argument.metadata">=</stringProp> | 49 | <stringProp name="Argument.metadata">=</stringProp> |
50 | </elementProp> | 50 | </elementProp> |
51 | + <elementProp name="HOST_TMP" elementType="Argument"> | ||
52 | + <stringProp name="Argument.name">HOST_TMP</stringProp> | ||
53 | + <stringProp name="Argument.value">api-test3.dev.yohocorp.com</stringProp> | ||
54 | + <stringProp name="Argument.metadata">=</stringProp> | ||
55 | + </elementProp> | ||
51 | </collectionProp> | 56 | </collectionProp> |
52 | <stringProp name="TestPlan.comments"></stringProp> </Arguments> | 57 | <stringProp name="TestPlan.comments"></stringProp> </Arguments> |
53 | <hashTree/> | 58 | <hashTree/> |
@@ -161,6 +166,133 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | @@ -161,6 +166,133 @@ vars.put("searchValue",req+"&client_secret="+md5);</stri | ||
161 | </ConstantThroughputTimer> | 166 | </ConstantThroughputTimer> |
162 | <hashTree/> | 167 | <hashTree/> |
163 | </hashTree> | 168 | </hashTree> |
169 | + <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="tg_/bigdata/searchbrand/cos" enabled="true"> | ||
170 | + <stringProp name="ThreadGroup.on_sample_error">continue</stringProp> | ||
171 | + <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true"> | ||
172 | + <boolProp name="LoopController.continue_forever">false</boolProp> | ||
173 | + <intProp name="LoopController.loops">-1</intProp> | ||
174 | + </elementProp> | ||
175 | + <stringProp name="ThreadGroup.num_threads">3</stringProp> | ||
176 | + <stringProp name="ThreadGroup.ramp_time">10</stringProp> | ||
177 | + <longProp name="ThreadGroup.start_time">1488865571000</longProp> | ||
178 | + <longProp name="ThreadGroup.end_time">1488865571000</longProp> | ||
179 | + <boolProp name="ThreadGroup.scheduler">false</boolProp> | ||
180 | + <stringProp name="ThreadGroup.duration"></stringProp> | ||
181 | + <stringProp name="ThreadGroup.delay"></stringProp> | ||
182 | + <stringProp name="TestPlan.comments"></stringProp> | ||
183 | + </ThreadGroup> | ||
184 | + <hashTree> | ||
185 | +<OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="登录一次" enabled="true"/> | ||
186 | + <hashTree> | ||
187 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_first" enabled="true"> | ||
188 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> | ||
189 | + <collectionProp name="Arguments.arguments"/> | ||
190 | + </elementProp> | ||
191 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
192 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
193 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
194 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
195 | + <stringProp name="HTTPSampler.path">http://${HOST_TMP}/signin.html</stringProp> | ||
196 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
197 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
198 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
199 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
200 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
201 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
202 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
203 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
204 | + </HTTPSamplerProxy> | ||
205 | + <hashTree> | ||
206 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
207 | + <collectionProp name="Asserion.test_strings"/> | ||
208 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
209 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
210 | + <intProp name="Assertion.test_type">16</intProp> | ||
211 | + </ResponseAssertion> | ||
212 | + <hashTree/> | ||
213 | + </hashTree> | ||
214 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_login" enabled="true"> | ||
215 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
216 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
217 | + <collectionProp name="Arguments.arguments"> | ||
218 | + <elementProp name="" elementType="HTTPArgument"> | ||
219 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
220 | + <stringProp name="Argument.value">areaCode=86&account=${mobile_test}&password=abc123&verifyCode=yoho4946abcdef%23%24%25%26!%40&isRemember=true&loginType=password&yohobuy=yoho4946abcdef%23%24%25%26!%40</stringProp> | ||
221 | + <stringProp name="Argument.metadata">=</stringProp> | ||
222 | + </elementProp> | ||
223 | + </collectionProp> | ||
224 | + </elementProp> | ||
225 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
226 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
227 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
228 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
229 | + <stringProp name="HTTPSampler.path">http://${HOST_TMP}/passport/login/auth</stringProp> | ||
230 | + <stringProp name="HTTPSampler.method">POST</stringProp> | ||
231 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
232 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
233 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
234 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
235 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
236 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
237 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
238 | + </HTTPSamplerProxy> | ||
239 | + <hashTree> | ||
240 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
241 | + <collectionProp name="Asserion.test_strings"> | ||
242 | + <stringProp name="723337899">"code":200</stringProp> | ||
243 | + </collectionProp> | ||
244 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
245 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
246 | + <intProp name="Assertion.test_type">16</intProp> | ||
247 | + </ResponseAssertion> | ||
248 | + <hashTree/> | ||
249 | + </hashTree> | ||
250 | + </hashTree> | ||
251 | + <com.blazemeter.jmeter.controller.ParallelSampler guiclass="com.blazemeter.jmeter.controller.ParallelControllerGui" testclass="com.blazemeter.jmeter.controller.ParallelSampler" testname="bzm - Parallel Controller" enabled="true"> | ||
252 | + <boolProp name="PARENT_SAMPLE">false</boolProp> | ||
253 | + </com.blazemeter.jmeter.controller.ParallelSampler> | ||
254 | + <hashTree> | ||
255 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_/bigdata/searchbrand/cos" enabled="true"> | ||
256 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
257 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
258 | + <collectionProp name="Arguments.arguments"> | ||
259 | + <elementProp name="" elementType="HTTPArgument"> | ||
260 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
261 | + <stringProp name="Argument.value"></stringProp> | ||
262 | + <stringProp name="Argument.metadata">=</stringProp> | ||
263 | + </elementProp> | ||
264 | + </collectionProp> | ||
265 | + </elementProp> | ||
266 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
267 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
268 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
269 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
270 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
271 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
272 | + <stringProp name="HTTPSampler.path">http://${HOST_TMP}/bigdata/searchbrand/cos</stringProp> | ||
273 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
274 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
275 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
276 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
277 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
278 | + <boolProp name="HTTPSampler.monitor">false</boolProp> | ||
279 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
280 | + <stringProp name="TestPlan.comments"></stringProp> | ||
281 | + </HTTPSamplerProxy> | ||
282 | + <hashTree> | ||
283 | + </hashTree> | ||
284 | + </hashTree> | ||
285 | + <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="固定TPM" enabled="true"> | ||
286 | + <stringProp name="TestPlan.comments"></stringProp> | ||
287 | + <doubleProp> | ||
288 | + <name>throughput</name> | ||
289 | + <value>2400</value> | ||
290 | + <savedValue>0.0</savedValue> | ||
291 | + </doubleProp> | ||
292 | + <intProp name="calcMode">2</intProp> | ||
293 | + </ConstantThroughputTimer> | ||
294 | + <hashTree/> | ||
295 | + </hashTree> | ||
164 | <BackendListener guiclass="BackendListenerGui" testclass="BackendListener" testname="influxdb_master" enabled="true"> | 296 | <BackendListener guiclass="BackendListenerGui" testclass="BackendListener" testname="influxdb_master" enabled="true"> |
165 | <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true"> | 297 | <elementProp name="arguments" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" enabled="true"> |
166 | <collectionProp name="Arguments.arguments"> | 298 | <collectionProp name="Arguments.arguments"> |
-
Please register or login to post a comment