Contributions
Re: SoapuiPro 4.0 version is throwing an exception for Stream
I am positive.The same test case works very well on Soapui 3.6.1 version. I have pasted the shell script too which I am invoking from groovy script Here is test case: import java.io.ByteArrayOutputStream def endpoint = "abc.eng.yousendit.com" def ncCommand= "sudo sh memcachetest.sh " + endpoint def process = ncCommand.execute() ByteArrayOutputStream outStream = new ByteArrayOutputStream() process.waitForProcessOutput(outStream, new ByteArrayOutputStream()) def output = outStream.toString().eachLine{line -> log.info line } assert output != null, "Unable to connect to Memcache server -> [" + endpoint + " ]" Shell script: #!/bin/sh sudo touch 'result.txt' echo 'stats' | nc $1 11211 > result.txt head -1 result.txt sudo rm -rf result.txt13 years agoPlace ReadyAPI QuestionsReadyAPI Questions857Views0likes0CommentsSoapuiPro 4.0 version is throwing an exception for Stream
On SoapUIPRO 4.0 version I am getting an exception for Stream reader. This works on 3.6.1 version Groovy script: import java.io.ByteArrayOutputStream def endpoint = context.expand( '${memcacheDataSource#endpoint}' ) def ncCommand= "sudo sh memcachetest.sh " + endpoint def process = ncCommand.execute() ByteArrayOutputStream outStream = new ByteArrayOutputStream() process.waitForProcessOutput(outStream, new ByteArrayOutputStream()) def output = outStream.toString().eachLine{line -> log.info line } assert output != null, "Unable to connect to Memcache server -> [" + endpoint + " ]" Exception: Exception in thread "Thread-4" groovy.lang.GroovyRuntimeException: exception while dumping process stream at org.codehaus.groovy.runtime.ProcessGroovyMethods$ByteDumper.run(ProcessGroovyMethods.java:484) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: Stream closed at java.io.BufferedInputStream.getBufIfOpen(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.BufferedInputStream.read1(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at org.codehaus.groovy.runtime.ProcessGroovyMethods$ByteDumper.run(ProcessGroovyMethods.java:480) ... 1 more13 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes3CommentsSoapUIPro:HTTP request throws "Maximum redirects (100)"err
I wanted to post this under SoapUI Pro bug list but for some reason I was unable to do so. I am having a trouble making a simple http request to "https://www.yousendit.com/" to our production website. An error is thrown when I execute the call: 2011-03-28 13:15:56 - Error getting response; org.apache.commons.httpclient.RedirectException: Maximum redirects (100) exceeded Soapui version details: SoapUI Pro: 3.6.1 build.14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0CommentsRe: [RESOLVED]how to run testsuites in multiple projects in one click from the UI?
Did anyone try the above scripts. I tried when I executed the above script throuh UI no results /error was return and on command line below error was thrown. Though workspace and projects xmls are located in the same directory C:\Users\noopur.bathija>testrunner.bat C:\Users\noopur.bathija\Desktop\Test-soap ui-project.xml soapUI Pro 3.6.1 TestCase Runner 13:58:32,854 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\User s\noopur.bathija\soapui-settings.xml] 13:58:33,477 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\e viware\soapUI-Pro-3.6.1\bin\listeners\demo-listeners.xml] 13:58:33,731 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library t o [C:\PROGRA~1\eviware\SOAPUI~1.1\bin\scripts] 13:58:33,872 INFO [WsdlProject] Loaded project from [file:C:/Users/noopur.bathi ja/Desktop/Test-soapui-project.xml] 13:58:33,912 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library t o [C:\PROGRA~1\eviware\SOAPUI~1.1\bin\scripts] 13:58:34,224 INFO [SoapUIProTestCaseRunner] Running soapUI tests in project [Te st] 13:58:34,227 INFO [SoapUIProTestCaseRunner] Running Project [Test], runType = S EQUENTIAL 13:58:34,240 INFO [SoapUIProTestCaseRunner] Running soapUI testcase [TestCase 1 ] 13:58:34,241 INFO [SoapUIProTestCaseRunner] running step [Groovy Script] 13:58:34,704 ERROR [SoapUI] An error occured [Cannot get property 'projectList' on null object], see error log for details java.lang.NullPointerException: Cannot get property 'projectList' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:56 ) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.j ava:156) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCal lSite.java:44) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty (AbstractCallSite.java:235) at Script1.run(Script1.groovy:1) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine. run(SoapUIGroovyScriptEngine.java:96) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngi neFactory$SoapUIProGroovyScriptEngine.run(SourceFile:88) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(W sdlGroovyScriptTestStep.java:148) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runTestStep( WsdlTestCaseRunner.java:207) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun( WsdlTestCaseRunner.java:138) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.internalRun( WsdlTestCaseRunner.java:39) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractT estRunner.java:135) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 13:58:34,721 ERROR [SoapUIProTestCaseRunner] Groovy Script failed, exporting to [C:\Users\noopur.bathija\TestSuite_1-TestCase_1-Groovy_Script-0-FAILED.txt] 13:58:34,727 INFO [SoapUIProTestCaseRunner] Finished running soapUI testcase [T estCase 1], time taken: 471ms, status: FAILED 13:58:34,728 INFO [SoapUIProTestCaseRunner] Project [Test] finished with status [FAILED] in 496ms3.1KViews0likes0Comments