You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2017/01/19 21:02:25 UTC

svn commit: r1779526 - in /jmeter/trunk/bin/testfiles: Bug60607.csv Bug60607.jmx Bug60607.xml

Author: pmouawad
Date: Thu Jan 19 21:02:25 2017
New Revision: 1779526

URL: http://svn.apache.org/viewvc?rev=1779526&view=rev
Log:
Bug 60607 - DNS Cache Manager configuration is ignored
Add test case for SystemDnsResolver
Bugzilla Id: 60607

Modified:
    jmeter/trunk/bin/testfiles/Bug60607.csv
    jmeter/trunk/bin/testfiles/Bug60607.jmx
    jmeter/trunk/bin/testfiles/Bug60607.xml

Modified: jmeter/trunk/bin/testfiles/Bug60607.csv
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/Bug60607.csv?rev=1779526&r1=1779525&r2=1779526&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/Bug60607.csv (original)
+++ jmeter/trunk/bin/testfiles/Bug60607.csv Thu Jan 19 21:02:25 2017
@@ -1,2 +1,3 @@
 label,responseCode,responseMessage,threadName,dataType,success
-HTTP Request,Non HTTP response code: java.net.UnknownHostException,Non HTTP response message: Failed to resolve host name: jmeter.apache.org,Thread Group 1-1,text,true
+HTTP Request,200,OK,Thread Group 1-1,text,true
+HTTP Request,Non HTTP response code: java.net.UnknownHostException,Non HTTP response message: Failed to resolve host name: jmeter.apache.org,Thread Group 2-1,text,true

Modified: jmeter/trunk/bin/testfiles/Bug60607.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/Bug60607.jmx?rev=1779526&r1=1779525&r2=1779526&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/Bug60607.jmx (original)
+++ jmeter/trunk/bin/testfiles/Bug60607.jmx Thu Jan 19 21:02:25 2017
@@ -11,14 +11,6 @@
       <stringProp name="TestPlan.user_define_classpath"></stringProp>
     </TestPlan>
     <hashTree>
-      <DNSCacheManager guiclass="DNSCachePanel" testclass="DNSCacheManager" testname="DNS Cache Manager" enabled="true">
-        <collectionProp name="DNSCacheManager.servers">
-          <stringProp name="-658686236">20.0.118.11</stringProp>
-        </collectionProp>
-        <boolProp name="DNSCacheManager.clearEachIteration">true</boolProp>
-        <boolProp name="DNSCacheManager.isCustomResolver">true</boolProp>
-      </DNSCacheManager>
-      <hashTree/>
       <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
         <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
         <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
@@ -34,6 +26,66 @@
         <stringProp name="ThreadGroup.delay"></stringProp>
       </ThreadGroup>
       <hashTree>
+        <DNSCacheManager guiclass="DNSCachePanel" testclass="DNSCacheManager" testname="DNS Cache Manager" enabled="true">
+          <collectionProp name="DNSCacheManager.servers"/>
+          <boolProp name="DNSCacheManager.clearEachIteration">true</boolProp>
+          <boolProp name="DNSCacheManager.isCustomResolver">false</boolProp>
+        </DNSCacheManager>
+        <hashTree/>
+        <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request" enabled="true">
+          <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
+            <collectionProp name="Arguments.arguments"/>
+          </elementProp>
+          <stringProp name="HTTPSampler.domain">jmeter.apache.org</stringProp>
+          <stringProp name="HTTPSampler.port"></stringProp>
+          <stringProp name="HTTPSampler.protocol">http</stringProp>
+          <stringProp name="HTTPSampler.contentEncoding"></stringProp>
+          <stringProp name="HTTPSampler.path">/</stringProp>
+          <stringProp name="HTTPSampler.method">GET</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>
+          <stringProp name="HTTPSampler.embedded_url_re"></stringProp>
+          <stringProp name="HTTPSampler.connect_timeout">5000</stringProp>
+          <stringProp name="HTTPSampler.response_timeout">30000</stringProp>
+        </HTTPSamplerProxy>
+        <hashTree>
+          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response Assertion" enabled="true">
+            <collectionProp name="Asserion.test_strings">
+              <stringProp name="-2112255206">Apache Software Foundation</stringProp>
+              <stringProp name="1352987498">Apache, Apache JMeter, JMeter,</stringProp>
+            </collectionProp>
+            <stringProp name="Assertion.test_field">Assertion.response_data</stringProp>
+            <boolProp name="Assertion.assume_success">false</boolProp>
+            <intProp name="Assertion.test_type">16</intProp>
+          </ResponseAssertion>
+          <hashTree/>
+        </hashTree>
+      </hashTree>
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
+        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
+        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" 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">1484844562000</longProp>
+        <longProp name="ThreadGroup.end_time">1484844562000</longProp>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <DNSCacheManager guiclass="DNSCachePanel" testclass="DNSCacheManager" testname="DNS Cache Manager" enabled="true">
+          <collectionProp name="DNSCacheManager.servers">
+            <stringProp name="-658686236">20.0.118.11</stringProp>
+          </collectionProp>
+          <boolProp name="DNSCacheManager.clearEachIteration">true</boolProp>
+          <boolProp name="DNSCacheManager.isCustomResolver">true</boolProp>
+        </DNSCacheManager>
+        <hashTree/>
         <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="HTTP Request" enabled="true">
           <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
             <collectionProp name="Arguments.arguments"/>

Modified: jmeter/trunk/bin/testfiles/Bug60607.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/Bug60607.xml?rev=1779526&r1=1779525&r2=1779526&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/Bug60607.xml (original)
+++ jmeter/trunk/bin/testfiles/Bug60607.xml Thu Jan 19 21:02:25 2017
@@ -1,6 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <testResults version="1.2">
-<httpSample s="true" lb="HTTP Request" rc="Non HTTP response code: java.net.UnknownHostException" rm="Non HTTP response message: Failed to resolve host name: jmeter.apache.org" tn="Thread Group 1-1" dt="text" by="1947">
+<httpSample s="true" lb="HTTP Request" rc="200" rm="OK" tn="Thread Group 1-1" dt="text" by="12014">
+  <assertionResult>
+    <name>Response Assertion</name>
+    <failure>false</failure>
+    <error>false</error>
+  </assertionResult>
+</httpSample>
+<httpSample s="true" lb="HTTP Request" rc="Non HTTP response code: java.net.UnknownHostException" rm="Non HTTP response message: Failed to resolve host name: jmeter.apache.org" tn="Thread Group 2-1" dt="text" by="1947">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>