Contributions
Re: Stop test from groovy
Another way I found was to have an end step, say called "End". In there I just have a log message saying something like : log.info "test complete" In the conditional I can then simply do the following: testRunner.gotoStepByName("End") Any of the interim test steps are skipped over. Just another way of cracking the nut.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.5KViews0likes0CommentsRe: Cannot get soapui-settings to be recognised
Hi Rupert, I have tried the Java snippet, but with no success, it would seem my situation may be slightly different (isn't it always). So my output is as follows: jenkins@ip-192-168-100-188:~$ java Main Machine Name=ip-192-168-100-188/127.0.0.1 Network Interface=name:lo (lo) The line in bold is always there (before my hosts change). So I then try the host change anyway: # Hack for SoapUI 192.168.100.188 ip-192-168-100-188 I believe I have the format right, however still the same output from Main.class. Have I made a silly mistake or is something more awkward going on? cheers Pete3.7KViews0likes1CommentRe: Cannot get soapui-settings to be recognised
Thanks Rupert, I will give it a go, I will see if I can provide any more information about the config file, The only thing I can think of is to take the source and recompile it on the line that is rejecting the file. However if something else springs to mind I'll paste it here. ITG.3.7KViews0likes2CommentsRe: Cannot get soapui-settings to be recognised
It is run from a Jenkins job, so /var/libs/jenkins/..... I can also run it from the command line by going to the same place and this also fails. It is picking up the right document - turning it to invalid XML shows this, it just doesn't understand a valid one.3.7KViews0likes4CommentsRe: Cannot get soapui-settings to be recognised
Yes because, if I break it (broken close tags), then I get the following error instead: 14:49:39,192 WARN [DefaultSoapUICore] Failed to load settings from [/var/lib/jenkins/soapu i-settings.xml:9:2: error: </soapui:soapui-workspace> does not close tag <soapui:soapui-workspacexxxx>.], creating new And when removed the file complains that it is not understood. Something strange going on when reading for sure. ITG.3.7KViews0likes6CommentsRe: Cannot get soapui-settings to be recognised
Hi there, Thanks for the reply. Yep, it's Ubuntu alright: 3.13.0-74-generic #118-Ubuntu SMP Thu Dec 17 22:52:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux The problem seems exactly the same, obviously some thing in the analytics or related stuff needs a MAC address. Oh well, it's already been reported, let's hope it can get fixed at some point. However my settings file is not recognised either so that seems a seperate issue. I took the config advisory from that post, so it remains a mystery why the file is continuously rejected. It is picking up the right file - as if I delete it or turn it to junk it gives a different error message. If you could shed any further light on the config issue that would be nice - is it possible to attach your full config - or at least a working part? cheers ITG.3.7KViews0likes8CommentsCannot 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.4KViews0likes10Comments