<? xml version="1.0" encoding="UTF-8"?>
< jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067">
< hashTree >
< TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="接口自动化测试用例 - 非登录态" enabled="true">
< stringProp name="TestPlan.comments"></ stringProp >
< boolProp name="TestPlan.functional_mode">false</ boolProp >
< boolProp name="TestPlan.serialize_threadgroups">false</ boolProp >
< elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
< collectionProp name="Arguments.arguments"/>
</ elementProp >
< stringProp name="TestPlan.user_define_classpath"></ stringProp >
</ TestPlan >
< hashTree >
< ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="001-类目搜索验证" enabled="true">
< stringProp name="ThreadGroup.on_sample_error">continue</ stringProp >
< elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="循环控制器" enabled="true">
< boolProp name="LoopController.continue_forever">false</ boolProp >
< stringProp name="LoopController.loops">1</ stringProp >
</ elementProp >
< stringProp name="ThreadGroup.num_threads">1</ stringProp >
< stringProp name="ThreadGroup.ramp_time">1</ stringProp >
< longProp name="ThreadGroup.start_time">1419564228000</ longProp >
< longProp name="ThreadGroup.end_time">1419564228000</ longProp >
< boolProp name="ThreadGroup.scheduler">false</ boolProp >
< stringProp name="ThreadGroup.duration"></ stringProp >
< stringProp name="ThreadGroup.delay"></ stringProp >
</ ThreadGroup >
< hashTree >
< HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="手机数码-手机通讯-苹果" enabled="true">
< elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" enabled="true">
< collectionProp name="Arguments.arguments">
< elementProp name="districtId" elementType="HTTPArgument">
< boolProp name="HTTPArgument.always_encode">false</ boolProp >
< stringProp name="Argument.name">districtId</ stringProp >
< stringProp name="Argument.value">29357</ stringProp >
< stringProp name="Argument.metadata">=</ stringProp >
< boolProp name="HTTPArgument.use_equals">true</ boolProp >
</ elementProp >
< elementProp name="exAppTag" elementType="HTTPArgument">
< boolProp name="HTTPArgument.always_encode">false</ boolProp >
< stringProp name="Argument.name">exAppTag</ stringProp >
< stringProp name="Argument.value">2045191607</ stringProp >
< stringProp name="Argument.metadata">=</ stringProp >
< boolProp name="HTTPArgument.use_equals">true</ boolProp >
</ elementProp >
</ collectionProp >
</ elementProp >
< stringProp name="HTTPSampler.domain">mb.51buy.com</ stringProp >
< stringProp name="HTTPSampler.port"></ stringProp >
< stringProp name="HTTPSampler.connect_timeout"></ stringProp >
< stringProp name="HTTPSampler.response_timeout"></ stringProp >
< stringProp name="HTTPSampler.protocol">http</ stringProp >
< stringProp name="HTTPSampler.contentEncoding">GB2312</ stringProp >
< stringProp name="HTTPSampler.path">/json.php?mod=Search&act=page&p=1&path=706188t706189&districtId=29357&areacode=1&dtype=list%7Cpage%7Cclasses&appSource=android&appVersion=45</ stringProp >
< stringProp name="HTTPSampler.method">POST</ stringProp >
< boolProp name="HTTPSampler.follow_redirects">true</ boolProp >
< boolProp name="HTTPSampler.auto_redirects">false</ boolProp >
< boolProp name="HTTPSampler.use_keepalive">true</ boolProp >
< boolProp name="HTTPSampler.DO_MULTIPART_POST">false</ boolProp >
< boolProp name="HTTPSampler.monitor">false</ boolProp >
< stringProp name="HTTPSampler.embedded_url_re"></ stringProp >
</ HTTPSamplerProxy >
< hashTree >
< HeaderManager guiclass="HeaderPanel" testclass="HeaderManager" testname="HTTP信息头管理器" enabled="true">
< collectionProp name="HeaderManager.headers">
< elementProp name="Charset" elementType="Header">
< stringProp name="Header.name">Charset</ stringProp >
< stringProp name="Header.value">UTF-8</ stringProp >
</ elementProp >
< elementProp name="Content-Type" elementType="Header">
< stringProp name="Header.name">Content-Type</ stringProp >
< stringProp name="Header.value">application/x-www-form-urlencoded</ stringProp >
</ elementProp >
< elementProp name="Accept-Encoding" elementType="Header">
< stringProp name="Header.name">Accept-Encoding</ stringProp >
< stringProp name="Header.value">gzip</ stringProp >
</ elementProp >
< elementProp name="User-Agent" elementType="Header">
< stringProp name="Header.name">User-Agent</ stringProp >
< stringProp name="Header.value">Dalvik/1.6.0 (Linux; U; Android 4.4.2; GT-I9502 Build/KOT49H)</ stringProp >
</ elementProp >
</ collectionProp >
</ HeaderManager >
< hashTree />
< ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="01 - 判断类目搜索结果状态码" enabled="true">
< collectionProp name="Asserion.test_strings">
< stringProp name="71131476">"errno":0</ stringProp >
</ collectionProp >
< stringProp name="Assertion.test_field">Assertion.response_data</ stringProp >
< boolProp name="Assertion.assume_success">false</ boolProp >
< intProp name="Assertion.test_type">2</ intProp >
</ ResponseAssertion >
< hashTree />
< ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="02 - 判断类目搜索结果响应数据包含苹果" enabled="true">
< collectionProp name="Asserion.test_strings">
< stringProp name="1065923">苹果</ stringProp >
</ collectionProp >
< stringProp name="Assertion.test_field">Assertion.response_data</ stringProp >
< boolProp name="Assertion.assume_success">false</ boolProp >
< intProp name="Assertion.test_type">2</ intProp >
</ ResponseAssertion >
< hashTree />
< ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="03 - 判断类目搜索结果中不包含信息" enabled="true">
< collectionProp name="Asserion.test_strings">
< stringProp name="1425729940">我的博客地址: http://www.cnblogs.com/fengpingfan/</ stringProp >
</ collectionProp >
< stringProp name="Assertion.test_field">Assertion.response_headers</ stringProp >
< boolProp name="Assertion.assume_success">false</ boolProp >
< intProp name="Assertion.test_type">6</ intProp >
</ ResponseAssertion >
< hashTree />
< ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="04 - 判断类目搜索结果响应头信息中包含 Server: nginx" enabled="true">
< collectionProp name="Asserion.test_strings">
< stringProp name="1066132337">Server: nginx</ stringProp >
</ collectionProp >
< stringProp name="Assertion.test_field">Assertion.response_headers</ stringProp >
< boolProp name="Assertion.assume_success">false</ boolProp >
< intProp name="Assertion.test_type">2</ intProp >
</ ResponseAssertion >
< hashTree />
< SizeAssertion guiclass="SizeAssertionGui" testclass="SizeAssertion" testname="05 - 判断响应结果大小(body)" enabled="true">
< stringProp name="Assertion.test_field">SizeAssertion.response_data</ stringProp >
< stringProp name="SizeAssertion.size">4000</ stringProp >
< intProp name="SizeAssertion.operator">3</ intProp >
</ SizeAssertion >
< hashTree />
</ hashTree >
</ hashTree >
< ResultCollector guiclass="AssertionVisualizer" testclass="ResultCollector" testname="断言结果" enabled="true">
< boolProp name="ResultCollector.error_logging">false</ boolProp >
< objProp >
< name >saveConfig</ name >
< value class="SampleSaveConfiguration">
< time >true</ time >
< latency >true</ latency >
< timestamp >true</ timestamp >
< success >true</ success >
< label >true</ label >
< code >true</ code >
< message >true</ message >
< threadName >true</ threadName >
< dataType >true</ dataType >
< encoding >false</ encoding >
< assertions >true</ assertions >
< subresults >true</ subresults >
< responseData >false</ responseData >
< samplerData >false</ samplerData >
< xml >false</ xml >
< fieldNames >false</ fieldNames >
< responseHeaders >false</ responseHeaders >
< requestHeaders >false</ requestHeaders >
< responseDataOnError >false</ responseDataOnError >
< saveAssertionResultsFailureMessage >false</ saveAssertionResultsFailureMessage >
< assertionsResultsToSave >0</ assertionsResultsToSave >
< bytes >true</ bytes >
< threadCounts >true</ threadCounts >
</ value >
</ objProp >
< stringProp name="filename"></ stringProp >
</ ResultCollector >
< hashTree />
< ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="察看结果树" enabled="true">
< boolProp name="ResultCollector.error_logging">false</ boolProp >
< objProp >
< name >saveConfig</ name >
< value class="SampleSaveConfiguration">
< time >true</ time >
< latency >true</ latency >
< timestamp >true</ timestamp >
< success >true</ success >
< label >true</ label >
< code >true</ code >
< message >true</ message >
< threadName >true</ threadName >
< dataType >true</ dataType >
< encoding >false</ encoding >
< assertions >true</ assertions >
< subresults >true</ subresults >
< responseData >false</ responseData >
< samplerData >false</ samplerData >
< xml >false</ xml >
< fieldNames >false</ fieldNames >
< responseHeaders >false</ responseHeaders >
< requestHeaders >false</ requestHeaders >
< responseDataOnError >false</ responseDataOnError >
< saveAssertionResultsFailureMessage >false</ saveAssertionResultsFailureMessage >
< assertionsResultsToSave >0</ assertionsResultsToSave >
< bytes >true</ bytes >
< threadCounts >true</ threadCounts >
</ value >
</ objProp >
< stringProp name="filename"></ stringProp >
</ ResultCollector >
< hashTree />
</ hashTree >
</ hashTree >
</ jmeterTestPlan >
|