Showing
1 changed file
with
222 additions
and
1 deletions
@@ -117,7 +117,228 @@ | @@ -117,7 +117,228 @@ | ||
117 | <stringProp name="TestPlan.comments"></stringProp> | 117 | <stringProp name="TestPlan.comments"></stringProp> |
118 | </ThreadGroup> | 118 | </ThreadGroup> |
119 | <hashTree> | 119 | <hashTree> |
120 | - | 120 | +<OnceOnlyController guiclass="OnceOnlyControllerGui" testclass="OnceOnlyController" testname="登录一次" enabled="true"/> |
121 | + <hashTree> | ||
122 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_first" enabled="true"> | ||
123 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> | ||
124 | + <collectionProp name="Arguments.arguments"/> | ||
125 | + </elementProp> | ||
126 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
127 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
128 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
129 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
130 | + <stringProp name="HTTPSampler.path">http://${SHOP_HOST}/signin.html</stringProp> | ||
131 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
132 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
133 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
134 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
135 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
136 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
137 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
138 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
139 | + </HTTPSamplerProxy> | ||
140 | + <hashTree> | ||
141 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
142 | + <collectionProp name="Asserion.test_strings"/> | ||
143 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
144 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
145 | + <intProp name="Assertion.test_type">16</intProp> | ||
146 | + </ResponseAssertion> | ||
147 | + <hashTree/> | ||
148 | + </hashTree> | ||
149 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="pc_login" enabled="true"> | ||
150 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
151 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
152 | + <collectionProp name="Arguments.arguments"> | ||
153 | + <elementProp name="" elementType="HTTPArgument"> | ||
154 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
155 | + <stringProp name="Argument.value">areaCode=86&account=99900000010&password=abc123&verifyCode=0%2C2%2C0%2C0&isRemember=true&loginType=password</stringProp> | ||
156 | + <stringProp name="Argument.metadata">=</stringProp> | ||
157 | + </elementProp> | ||
158 | + </collectionProp> | ||
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">http://${SHOP_HOST}/passport/login/auth</stringProp> | ||
165 | + <stringProp name="HTTPSampler.method">POST</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="723337899">"code":200</stringProp> | ||
178 | + </collectionProp> | ||
179 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
180 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
181 | + <intProp name="Assertion.test_type">16</intProp> | ||
182 | + </ResponseAssertion> | ||
183 | + <hashTree/> | ||
184 | + </hashTree> | ||
185 | + </hashTree> <TransactionController guiclass="TransactionControllerGui" testclass="TransactionController" testname="事务控制器" enabled="true"> | ||
186 | + <boolProp name="TransactionController.includeTimers">false</boolProp> | ||
187 | + <boolProp name="TransactionController.parent">false</boolProp> | ||
188 | + </TransactionController> | ||
189 | + <hashTree> | ||
190 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="tc_店铺" enabled="true"> | ||
191 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
192 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
193 | + <collectionProp name="Arguments.arguments"> | ||
194 | + <elementProp name="" elementType="HTTPArgument"> | ||
195 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
196 | + <stringProp name="Argument.value"></stringProp> | ||
197 | + <stringProp name="Argument.metadata">=</stringProp> | ||
198 | + </elementProp> | ||
199 | + </collectionProp> | ||
200 | + </elementProp> | ||
201 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
202 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
203 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
204 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
205 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
206 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
207 | + <stringProp name="HTTPSampler.path">http://${SHOP_HOST}/?shopId=2322</stringProp> | ||
208 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
209 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
210 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
211 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
212 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
213 | + <boolProp name="HTTPSampler.monitor">false</boolProp> | ||
214 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
215 | + <stringProp name="TestPlan.comments"></stringProp> | ||
216 | + </HTTPSamplerProxy> | ||
217 | + <hashTree> | ||
218 | + </hashTree> | ||
219 | + <RandomController guiclass="RandomControlGui" testclass="RandomController" testname="随机控制器" enabled="true"> | ||
220 | + <intProp name="InterleaveControl.style">1</intProp> | ||
221 | + </RandomController> | ||
222 | + <hashTree> | ||
223 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="ajax_1" enabled="true"> | ||
224 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
225 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
226 | + <collectionProp name="Arguments.arguments"> | ||
227 | + <elementProp name="" elementType="HTTPArgument"> | ||
228 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
229 | + <stringProp name="Argument.value"></stringProp> | ||
230 | + <stringProp name="Argument.metadata">=</stringProp> | ||
231 | + </elementProp> | ||
232 | + </collectionProp> | ||
233 | + </elementProp> | ||
234 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
235 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
236 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
237 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
238 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
239 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
240 | + <stringProp name="HTTPSampler.path">http://${SHOP_HOST}/product/index/isFavoriteShop</stringProp> | ||
241 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
242 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
243 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
244 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
245 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
246 | + <boolProp name="HTTPSampler.monitor">false</boolProp> | ||
247 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
248 | + <stringProp name="TestPlan.comments">务必以tc_开头,否则无法获取统计结果</stringProp> | ||
249 | + </HTTPSamplerProxy> | ||
250 | + <hashTree> | ||
251 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
252 | + <collectionProp name="Asserion.test_strings"> | ||
253 | + <stringProp name="1450572480"></stringProp> | ||
254 | + </collectionProp> | ||
255 | + <stringProp name="TestPlan.comments"></stringProp> | ||
256 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
257 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
258 | + <intProp name="Assertion.test_type">16</intProp> | ||
259 | + </ResponseAssertion> | ||
260 | + <hashTree/> | ||
261 | + </hashTree> | ||
262 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="ajax_2" enabled="true"> | ||
263 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
264 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
265 | + <collectionProp name="Arguments.arguments"> | ||
266 | + <elementProp name="" elementType="HTTPArgument"> | ||
267 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
268 | + <stringProp name="Argument.value"></stringProp> | ||
269 | + <stringProp name="Argument.metadata">=</stringProp> | ||
270 | + </elementProp> | ||
271 | + </collectionProp> | ||
272 | + </elementProp> | ||
273 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
274 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
275 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
276 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
277 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
278 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
279 | + <stringProp name="HTTPSampler.path">http://${SHOP_HOST}/product/index/getAdnav</stringProp> | ||
280 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
281 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
282 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
283 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
284 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
285 | + <boolProp name="HTTPSampler.monitor">false</boolProp> | ||
286 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
287 | + <stringProp name="TestPlan.comments">务必以tc_开头,否则无法获取统计结果</stringProp> | ||
288 | + </HTTPSamplerProxy> | ||
289 | + <hashTree> | ||
290 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
291 | + <collectionProp name="Asserion.test_strings"> | ||
292 | + <stringProp name="1450572480"></stringProp> | ||
293 | + </collectionProp> | ||
294 | + <stringProp name="TestPlan.comments"></stringProp> | ||
295 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
296 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
297 | + <intProp name="Assertion.test_type">16</intProp> | ||
298 | + </ResponseAssertion> | ||
299 | + <hashTree/> | ||
300 | + </hashTree> | ||
301 | + <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="ajax_3" enabled="true"> | ||
302 | + <boolProp name="HTTPSampler.postBodyRaw">true</boolProp> | ||
303 | + <elementProp name="HTTPsampler.Arguments" elementType="Arguments"> | ||
304 | + <collectionProp name="Arguments.arguments"> | ||
305 | + <elementProp name="" elementType="HTTPArgument"> | ||
306 | + <boolProp name="HTTPArgument.always_encode">false</boolProp> | ||
307 | + <stringProp name="Argument.value"></stringProp> | ||
308 | + <stringProp name="Argument.metadata">=</stringProp> | ||
309 | + </elementProp> | ||
310 | + </collectionProp> | ||
311 | + </elementProp> | ||
312 | + <stringProp name="HTTPSampler.domain"></stringProp> | ||
313 | + <stringProp name="HTTPSampler.port"></stringProp> | ||
314 | + <stringProp name="HTTPSampler.connect_timeout"></stringProp> | ||
315 | + <stringProp name="HTTPSampler.response_timeout"></stringProp> | ||
316 | + <stringProp name="HTTPSampler.protocol"></stringProp> | ||
317 | + <stringProp name="HTTPSampler.contentEncoding"></stringProp> | ||
318 | + <stringProp name="HTTPSampler.path">http://${SHOP_HOST}/product/shop/article?brands=364%2C102%2C1025%2C479</stringProp> | ||
319 | + <stringProp name="HTTPSampler.method">GET</stringProp> | ||
320 | + <boolProp name="HTTPSampler.follow_redirects">true</boolProp> | ||
321 | + <boolProp name="HTTPSampler.auto_redirects">false</boolProp> | ||
322 | + <boolProp name="HTTPSampler.use_keepalive">true</boolProp> | ||
323 | + <boolProp name="HTTPSampler.DO_MULTIPART_POST">false</boolProp> | ||
324 | + <boolProp name="HTTPSampler.monitor">false</boolProp> | ||
325 | + <stringProp name="HTTPSampler.embedded_url_re"></stringProp> | ||
326 | + <stringProp name="TestPlan.comments">务必以tc_开头,否则无法获取统计结果</stringProp> | ||
327 | + </HTTPSamplerProxy> | ||
328 | + <hashTree> | ||
329 | + <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="响应断言" enabled="true"> | ||
330 | + <collectionProp name="Asserion.test_strings"> | ||
331 | + <stringProp name="1450572480"></stringProp> | ||
332 | + </collectionProp> | ||
333 | + <stringProp name="TestPlan.comments"></stringProp> | ||
334 | + <stringProp name="Assertion.test_field">Assertion.response_data</stringProp> | ||
335 | + <boolProp name="Assertion.assume_success">false</boolProp> | ||
336 | + <intProp name="Assertion.test_type">16</intProp> | ||
337 | + </ResponseAssertion> | ||
338 | + <hashTree/> | ||
339 | + </hashTree> | ||
340 | + </hashTree> | ||
341 | + </hashTree> | ||
121 | <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="固定TPM" enabled="true"> | 342 | <ConstantThroughputTimer guiclass="TestBeanGUI" testclass="ConstantThroughputTimer" testname="固定TPM" enabled="true"> |
122 | <stringProp name="TestPlan.comments"></stringProp> | 343 | <stringProp name="TestPlan.comments"></stringProp> |
123 | <doubleProp> | 344 | <doubleProp> |
-
Please register or login to post a comment