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/10/23 21:18:58 UTC
svn commit: r1813103 - /jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
Author: pmouawad
Date: Mon Oct 23 21:18:57 2017
New Revision: 1813103
URL: http://svn.apache.org/viewvc?rev=1813103&view=rev
Log:
Bug 61641 - Improve JMS Test coverage
Bugzilla Id: 61641
Modified:
jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
Modified: jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/testfiles/JMS_TESTS.jmx?rev=1813103&r1=1813102&r2=1813103&view=diff
==============================================================================
--- jmeter/trunk/bin/testfiles/JMS_TESTS.jmx (original)
+++ jmeter/trunk/bin/testfiles/JMS_TESTS.jmx Mon Oct 23 21:18:57 2017
@@ -31,13 +31,15 @@ import org.apache.activemq.broker.Broker
import org.apache.jmeter.util.JMeterUtils;
import org.apache.commons.io.FileUtils;
import java.io.File;
+import java.net.URLEncoder;
File file = new File(JMeterUtils.getJMeterHome(), "bin/activemq-data");
log.info("Deleting {}", file);
FileUtils.deleteDirectory(file);
log.info("Creating activemq config from {}", JMeterUtils.getJMeterHome()+ "/bin/testfiles/activemq.xml");
try {
- BrokerService broker = BrokerFactory.createBroker("xbean:file:"+JMeterUtils.getJMeterHome()+ "/bin/testfiles/activemq.xml", true);
+ String path = URLEncoder.encode(JMeterUtils.getJMeterHome()+ "/bin/testfiles/activemq.xml", "UTF-8");
+ BrokerService broker = BrokerFactory.createBroker("xbean:file:"+path, true);
bsh.shared.myMap = new HashMap();
bsh.shared.myMap.put("ACTIVEMQ_BROKER", broker);
} catch(Exception ex) {