inthegarage
9 years agoOccasional Contributor
Cannot get soapui-settings to be recognised
hi,
I'm using the maven plugin to run soap ui - which it does seem to do, however it always seems to come up with an error regarding analytics. Reading other posts it would seem that it is possible to turn analytics off with the following command:
<soapui:setting id="UISettings@disable_analytics">true</soapui:setting>
However when I put this is a config file like so:
<?xml version="1.0" encoding="UTF-8"?>
<!-- This file is fine, but SOAP UI moans a lot about it. TBI -->
<soapui:soapui-workspace xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapui="http://eviware.com/soapui/config"
xsi:schemaLocation="http://eviware.com/soapui/config https://raw.githubusercontent.com/SmartBear/soapui/next/soapui/src/main/xsd/soapui/soapui.xsd">
<soapui:settings>
<soapui:setting id="UISettings@disable_analytics">true</soapui:setting>
</soapui:settings>
</soapui:soapui-workspace>
I get the following error from the runner:
SoapUI 5.2.1 MockService Runner 10:02:15,180 WARN [DefaultSoapUICore] Failed to load settings from [Element soapui-workspace@http://eviware.com/soapui/config is not a valid soapui-settings@http://eviware.com/soapui/config document or a valid substitution.], creating new
It doesn't matter how I format the XML, or if I slightly twist the XML around the XML is always failed. When I put the XML in a validator with the XSD then it is OK.
What is the problem with the config file, as I'm struggling to see any. As you can imagine the error still remains as no config file has been recognised:
10:02:16,959 WARN [AnalyticsManager] Error generating Analytics session ID - returning empty String java.lang.NullPointerException at java.security.MessageDigest.update(Unknown Source) at java.security.MessageDigest.digest(Unknown Source) at com.eviware.soapui.analytics.AnalyticsManager.makeUserId(AnalyticsManager.java:142) at com.eviware.soapui.analytics.AnalyticsManager.<init>(AnalyticsManager.java:30) at com.eviware.soapui.analytics.AnalyticsManager.getInstance(AnalyticsManager.java:35) at com.eviware.soapui.analytics.Analytics.getAnalyticsManager(Analytics.java:16) at com.eviware.soapui.analytics.Analytics.trackAction(Analytics.java:24) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.start(WsdlMockRunner.java:210) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.<init>(WsdlMockRunner.java:71) at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:249) at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:222) at com.eviware.soapui.impl.support.AbstractMockService.start(AbstractMockService.java:58) at com.eviware.soapui.tools.SoapUIMockServiceRunner.runMockService(SoapUIMockServiceRunner.java:197) at com.eviware.soapui.tools.SoapUIMockServiceRunner.runRunner(SoapUIMockServiceRunner.java:124) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:204) at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:139) at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:114) at com.eviware.soapui.tools.SoapUIMockServiceRunner.main(SoapUIMockServiceRunner.java:66) 10:02:16,962 INFO [SoapUIMockServiceRunner] Started 1 runner
Any advice welcome.
ITG.