jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1812854 - in /jmeter/trunk/bin/testfiles: JMS_TESTS.csv JMS_TESTS.jmx JMS_TESTS.xml
Date Sat, 21 Oct 2017 21:50:51 GMT
Author: pmouawad
Date: Sat Oct 21 21:50:51 2017
New Revision: 1812854

URL: http://svn.apache.org/viewvc?rev=1812854&view=rev
Log:
svn:eol
Add Tests on Publish/Subscribe

Modified:
    jmeter/trunk/bin/testfiles/JMS_TESTS.csv   (contents, props changed)
    jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
    jmeter/trunk/bin/testfiles/JMS_TESTS.xml   (contents, props changed)

Modified: jmeter/trunk/bin/testfiles/JMS_TESTS.csv
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/JMS_TESTS.csv?rev=1812854&r1=1812853&r2=1812854&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/JMS_TESTS.csv (original)
+++ jmeter/trunk/bin/testfiles/JMS_TESTS.csv Sat Oct 21 21:50:51 2017
@@ -1,9 +1,11 @@
 label,responseCode,responseMessage,threadName,dataType,success,grpThreads,allThreads,SampleCount,ErrorCount
 BSS_startActiveMQ,200,OK,setUp Thread Group 1-1,text,true,1,1,1,0
-JMS-P2P-DefaultCorrelationId,200,OK,Thread Group 1-1,text,true,1,1,1,0
-JMS-P2P-CustomCorrelationId,200,OK,Thread Group 1-1,text,true,1,1,1,0
-JMS-P2P-DifferentSelector,,No reply message received,Thread Group 1-1,text,true,1,1,1,0
-JMS-P2P-SameSelector,200,OK,Thread Group 1-1,text,true,1,1,1,0
-JMS-P2P-RequestOnly,200,OK,Thread Group 1-1,text,true,1,1,1,0
-JSS-ConsumePreviousMessage,200,OK,Thread Group 1-1,text,true,1,1,1,0
+JMS-P2P-DefaultCorrelationId,200,OK,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JMS-P2P-CustomCorrelationId,200,OK,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JMS-P2P-DifferentSelector,,No reply message received,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JMS-P2P-SameSelector,200,OK,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JMS-P2P-RequestOnly,200,OK,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JSS-ConsumePreviousMessage,200,OK,TG-JMS-P2P 1-1,text,true,1,1,1,0
+JMS Publisher,200,1 messages published,TG-JMS-PS 2-1,,true,1,1,1,0
+JMS Subscriber,200,1 message(s) received successfully of 1 expected,TG-JMS-PS 2-1,text,true,1,1,1,0
 BSS_stopActiveMQ,200,OK,tearDown Thread Group 1-1,text,true,1,1,1,0

Propchange: jmeter/trunk/bin/testfiles/JMS_TESTS.csv
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/JMS_TESTS.jmx?rev=1812854&r1=1812853&r2=1812854&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/JMS_TESTS.jmx (original)
+++ jmeter/trunk/bin/testfiles/JMS_TESTS.jmx Sat Oct 21 21:50:51 2017
@@ -56,7 +56,7 @@ bsh.shared.myMap.put("ACTIVEMQ_BROK
           <hashTree/>
         </hashTree>
       </hashTree>
-      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread
Group" enabled="true">
+      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="TG-JMS-P2P"
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>
@@ -312,6 +312,88 @@ finally {
             </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="TG-JMS-PS"
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>
+        <boolProp name="ThreadGroup.scheduler">false</boolProp>
+        <stringProp name="ThreadGroup.duration"></stringProp>
+        <stringProp name="ThreadGroup.delay"></stringProp>
+      </ThreadGroup>
+      <hashTree>
+        <PublisherSampler guiclass="JMSPublisherGui" testclass="PublisherSampler" testname="JMS
Publisher" enabled="true">
+          <stringProp name="jms.jndi_properties">false</stringProp>
+          <stringProp name="jms.initial_context_factory">org.apache.activemq.jndi.ActiveMQInitialContextFactory</stringProp>
+          <stringProp name="jms.provider_url">tcp://127.0.0.1:61616</stringProp>
+          <stringProp name="jms.connection_factory">ConnectionFactory</stringProp>
+          <stringProp name="jms.topic">dynamicTopics/requestTopic1</stringProp>
+          <stringProp name="jms.expiration"></stringProp>
+          <stringProp name="jms_error_reconnect_on_codes"></stringProp>
+          <stringProp name="jms.priority"></stringProp>
+          <stringProp name="jms.security_principle"></stringProp>
+          <stringProp name="jms.security_credentials"></stringProp>
+          <stringProp name="jms.text_message">Test Topic</stringProp>
+          <stringProp name="jms.input_file"></stringProp>
+          <stringProp name="jms.random_path"></stringProp>
+          <stringProp name="jms.config_choice">jms_use_text</stringProp>
+          <stringProp name="jms.config_msg_type">jms_text_message</stringProp>
+          <stringProp name="jms.iterations">1</stringProp>
+          <boolProp name="jms.authenticate">false</boolProp>
+          <elementProp name="jms.jmsProperties" elementType="JMSProperties">
+            <collectionProp name="JMSProperties.properties"/>
+          </elementProp>
+          <boolProp name="jms.destination_static">false</boolProp>
+        </PublisherSampler>
+        <hashTree>
+          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response
Assertion" enabled="true">
+            <collectionProp name="Asserion.test_strings">
+              <stringProp name="-1719216023">1 messages published</stringProp>
+            </collectionProp>
+            <stringProp name="Assertion.test_field">Assertion.response_message</stringProp>
+            <boolProp name="Assertion.assume_success">false</boolProp>
+            <intProp name="Assertion.test_type">16</intProp>
+          </ResponseAssertion>
+          <hashTree/>
+        </hashTree>
+        <SubscriberSampler guiclass="JMSSubscriberGui" testclass="SubscriberSampler" testname="JMS
Subscriber" enabled="true">
+          <stringProp name="jms.jndi_properties">false</stringProp>
+          <stringProp name="jms.initial_context_factory">org.apache.activemq.jndi.ActiveMQInitialContextFactory</stringProp>
+          <stringProp name="jms.provider_url">tcp://127.0.0.1:61616</stringProp>
+          <stringProp name="jms.connection_factory">ConnectionFactory</stringProp>
+          <stringProp name="jms.topic">dynamicTopics/requestTopic1</stringProp>
+          <stringProp name="jms.security_principle"></stringProp>
+          <stringProp name="jms.security_credentials"></stringProp>
+          <boolProp name="jms.authenticate">false</boolProp>
+          <stringProp name="jms.iterations">1</stringProp>
+          <stringProp name="jms.read_response">true</stringProp>
+          <stringProp name="jms.client_choice">jms_subscriber_receive</stringProp>
+          <stringProp name="jms_error_reconnect_on_codes"></stringProp>
+        </SubscriberSampler>
+        <hashTree>
+          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response
Assertion" enabled="true">
+            <collectionProp name="Asserion.test_strings">
+              <stringProp name="1506174364">1 message(s) received successfully of 1
expected</stringProp>
+            </collectionProp>
+            <stringProp name="Assertion.test_field">Assertion.response_message</stringProp>
+            <boolProp name="Assertion.assume_success">false</boolProp>
+            <intProp name="Assertion.test_type">16</intProp>
+          </ResponseAssertion>
+          <hashTree/>
+          <ResponseAssertion guiclass="AssertionGui" testclass="ResponseAssertion" testname="Response
Assertion" enabled="true">
+            <collectionProp name="Asserion.test_strings">
+              <stringProp name="-2063475679">Test Topic</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/>

Modified: jmeter/trunk/bin/testfiles/JMS_TESTS.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/JMS_TESTS.xml?rev=1812854&r1=1812853&r2=1812854&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/JMS_TESTS.xml (original)
+++ jmeter/trunk/bin/testfiles/JMS_TESTS.xml Sat Oct 21 21:50:51 2017
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <testResults version="1.2">
 <sample s="true" lb="BSS_startActiveMQ" rc="200" rm="OK" tn="setUp Thread Group 1-1" dt="text"
sc="1" ec="0" ng="1" na="1"/>
-<sample s="true" lb="JMS-P2P-DefaultCorrelationId" rc="200" rm="OK" tn="Thread Group 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JMS-P2P-DefaultCorrelationId" rc="200" rm="OK" tn="TG-JMS-P2P 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -9,7 +9,7 @@
     <failureMessage>Test succeeded: text expected to contain /Test/</failureMessage>
   </assertionResult>
 </sample>
-<sample s="true" lb="JMS-P2P-CustomCorrelationId" rc="200" rm="OK" tn="Thread Group 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JMS-P2P-CustomCorrelationId" rc="200" rm="OK" tn="TG-JMS-P2P 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -17,7 +17,7 @@
     <failureMessage>Test succeeded: text expected to contain /Test-with-customer-correlationId/</failureMessage>
   </assertionResult>
 </sample>
-<sample s="true" lb="JMS-P2P-DifferentSelector" rc="" rm="No reply message received" tn="Thread
Group 1-1" dt="text" sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JMS-P2P-DifferentSelector" rc="" rm="No reply message received" tn="TG-JMS-P2P
1-1" dt="text" sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -25,7 +25,7 @@
     <failureMessage>Test succeeded: message expected to contain /No reply message received/</failureMessage>
   </assertionResult>
 </sample>
-<sample s="true" lb="JMS-P2P-SameSelector" rc="200" rm="OK" tn="Thread Group 1-1" dt="text"
sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JMS-P2P-SameSelector" rc="200" rm="OK" tn="TG-JMS-P2P 1-1" dt="text"
sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -33,7 +33,7 @@
     <failureMessage>Test succeeded: text expected to contain /Test-with-customer-correlationId-and-jms-properties-matching-selector/</failureMessage>
   </assertionResult>
 </sample>
-<sample s="true" lb="JMS-P2P-RequestOnly" rc="200" rm="OK" tn="Thread Group 1-1" dt="text"
sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JMS-P2P-RequestOnly" rc="200" rm="OK" tn="TG-JMS-P2P 1-1" dt="text"
sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -41,7 +41,7 @@
     <failureMessage>Test succeeded: text expected to contain /Oneway request has no
response data/</failureMessage>
   </assertionResult>
 </sample>
-<sample s="true" lb="JSS-ConsumePreviousMessage" rc="200" rm="OK" tn="Thread Group 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
+<sample s="true" lb="JSS-ConsumePreviousMessage" rc="200" rm="OK" tn="TG-JMS-P2P 1-1"
dt="text" sc="1" ec="0" ng="1" na="1">
   <assertionResult>
     <name>Response Assertion</name>
     <failure>false</failure>
@@ -49,6 +49,28 @@
     <failureMessage>Test succeeded: text expected to contain /Received : Test-send-only/</failureMessage>
   </assertionResult>
 </sample>
+<sample s="true" lb="JMS Publisher" rc="200" rm="1 messages published" tn="TG-JMS-PS 2-1"
dt="" sc="1" ec="0" ng="1" na="1">
+  <assertionResult>
+    <name>Response Assertion</name>
+    <failure>false</failure>
+    <error>false</error>
+    <failureMessage>Test succeeded: message expected to contain /1 messages published/</failureMessage>
+  </assertionResult>
+</sample>
+<sample s="true" lb="JMS Subscriber" rc="200" rm="1 message(s) received successfully of
1 expected" tn="TG-JMS-PS 2-1" dt="text" sc="1" ec="0" ng="1" na="1">
+  <assertionResult>
+    <name>Response Assertion</name>
+    <failure>false</failure>
+    <error>false</error>
+    <failureMessage>Test succeeded: message expected to contain /1 message(s) received
successfully of 1 expected/</failureMessage>
+  </assertionResult>
+  <assertionResult>
+    <name>Response Assertion</name>
+    <failure>false</failure>
+    <error>false</error>
+    <failureMessage>Test succeeded: text expected to contain /Test Topic/</failureMessage>
+  </assertionResult>
+</sample>
 <sample s="true" lb="BSS_stopActiveMQ" rc="200" rm="OK" tn="tearDown Thread Group 1-1"
dt="text" sc="1" ec="0" ng="1" na="1"/>
 
 </testResults>

Propchange: jmeter/trunk/bin/testfiles/JMS_TESTS.xml
------------------------------------------------------------------------------
--- svn:eol-style (original)
+++ svn:eol-style Sat Oct 21 21:50:51 2017
@@ -1 +1 @@
-native
+LF



Mime
View raw message