brigadir
13 years agoOccasional Contributor
configuring Hermes JMS on Linux depends on project file
Hi, part of our SoapUI project is using Hermes JMS to check responses from ActiveMQ tests. We are developing our tests on windows environment but contious integration is run on LINUX machine.
I have updated in "soapui-settings.xml" "ToolsSettings@hermesjms" parameter but we still get error on CI machine
after couple of hours scratching my head and googling I figured it out - this "C:\.hermes" comes from project file
As you see - project file contains path to hermes config but it is different on linux and without changing it test wont run.
to
at the moment we are just using SED to fix thing so we could run our tests
Is there a way to configure SoapUI so that we do not need to replace every time hermes configuration parameter in soapui project file to run tests on linux machine?
I have updated in "soapui-settings.xml" "ToolsSettings@hermesjms" parameter but we still get error on CI machine
2012-01-10 16:23:53,508 ERROR [errorlog] javax.naming.NamingException: Session name 'ActiveMQ' does not exist in Hermes configuration or path to Hermes config ( C:\.hermes )is not valid !!!!
javax.naming.NamingException: Session name 'ActiveMQ' does not exist in Hermes configuration or path to Hermes config ( C:\.hermes )is not valid !!!!
at com.eviware.soapui.impl.wsdl.submit.transports.jms.util.HermesUtils.getHermes(HermesUtils.java:209)
at com.eviware.soapui.impl.wsdl.submit.transports.jms.HermesJmsRequestTransport.getHermes(HermesJmsRequestTransport.java:210)
after couple of hours scratching my head and googling I figured it out - this "C:\.hermes" comes from project file
As you see - project file contains path to hermes config but it is different on linux and without changing it test wont run.
<con:setting id="ProjectSettings@hermesConfig">C:\.hermes</con:setting>
to
<con:setting id="ProjectSettings@hermesConfig">/home/jenkins/.hermes</con:setting>
at the moment we are just using SED to fix thing so we could run our tests
sed "s/hermesConfig\">\(.*\)<\/con/hermesConfig\">\/home\/jenkins\/.hermes\/<\/con/g" soapui/jms-integration-project.xml > tmpfile && mv tmpfile soapui/jms-integration-project.xml
Is there a way to configure SoapUI so that we do not need to replace every time hermes configuration parameter in soapui project file to run tests on linux machine?