Contributions
Re: SoapUI Deletes All Projects
Here is All logs I can locate: error.log SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. soapui.log 2013-06-12 13:50:25,209 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\"MachineName"\soapui-settings.xml] 2013-06-12 13:50:25,853 INFO [SoapUI] Used java version: 1.7.0_15 soapui-error.log 2013-06-11 16:34:26,272 WARN [errorlog] Failed to delete temporary project file; C:\Users\"MachineName"\Desktop\New Event Service Tests\project-temp-2409839239882913334.xml 2013-06-11 16:37:25,604 WARN [errorlog] Failed to delete temporary project file; C:\Users\"MachineName"\Desktop\New Event Service Tests\project-temp-1961626440759112644.xml 2013-06-11 16:37:29,189 WARN [errorlog] Failed to delete temporary project file; C:\Users\"MachineName"\Desktop\New Event Service Tests\project-temp-4306211670438851617.xml 2013-06-11 16:38:11,955 WARN [errorlog] Failed to delete temporary project file; C:\Users\"MachineName"\Documents\New Event Service Tests\project-temp-1572353389663906483.xml 2013-06-11 17:07:31,187 WARN [errorlog] Failed to delete temporary project file; C:\Users\"MachineName"\Documents\New Event Service Tests\project-temp-8417041423881709047.xml 2013-06-11 17:20:39,305 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out 2013-06-11 17:20:39,306 ERROR [errorlog] java.net.SocketTimeoutException: Read timed out java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149) at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110) at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264) at org.apache.http.impl.conn.LoggingSessionInputBuffer.readLine(LoggingSessionInputBuffer.java:115) at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252) at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281) at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247) at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:151) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125) at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:246) at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:356) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:234) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123) 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.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Any help?11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews0likes0CommentsRe: Remove xml Node using Groovy Script
Just a follow up on this matter: I was able to use the following groovy code to remove the nodes I want: // get XmlHolder for request def reqHolder = groovyUtils.getXmlHolder( "TestStepName#Request" ) // Remove all <<ns:color>> nodes from the TestStep request reqHolder.removeDomNodes("//<ns:color>") I think the issue I ran into was trying to remove nodes from the xmlSlurper object which does not allow for removing nodes. Hope this will help.10KViews0likes0CommentsSoapUI Deletes All Projects
Hello All, This is a really annoying bug that probably has something to do with the heap size. I had a few projects in my soapUI workspace, I restart soapUI, non of my projects is there A friend of mine suggested increasing the heap inside soapUI/bin/vmoptions file. I increased it to 2000, I launched soapUI, I get a message saying the heap size I chose is too large, the max is 1500. So I go back to change the vmoptions file, but the file disappeared. So I had to uninstall soap, then install it again. Long story short, the projects disappearing is the main bug. update: I am using 4.5.2 I just installed a fresh copy of soapUI and it did the same exact thing. I imported a project, saved it, closed soapUI, launch it again, no projects. In addition, I can't even find that vmoptions file anymore with this fresh install? Any Ideas?11 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.7KViews0likes5CommentsRe: Remove xml Node using Groovy Script
Hello, Thank you for your reply! Here is where I am with this issue: I was able to create the Groovy script to extract all the <ns:color> tags from the Add Cars Response. I was also able to append them into the request for the verification step, All using a single groovy step script. So my test runs fine as far as the test it self. When I run my test, I can add a list of cars, get their creation Ids, append them into the request for verification (using my awesome script) Then finally send verification request. So I am in good shape here. All I really need for that script (to be more awesome) is to remove ALL existing <ns:color> nodes in the request before adding new ones, No matter where they are. At this point, I do that manually every time I am about to run my test. If I use a property transfer step, I believe it will only take one value; where in my case I don't know how many car Ids I get back. It will be different every time the test is run. I have tried doing that using xmlSlurper, which works great for everything I need! Except that xmlSlurper will not let me call the Remove() on the nodes I need removed. Something like this flow would do the job: def root = (the request xml we want to add to) root.each{ // If it.name() == "<ns:color>"; root.remove(it) } I hope this simplifies things a little.10KViews0likes0CommentsRe: Remove xml Node using Groovy Script
Thank you for the reply nmrao, I can't provide exact xml because it's for work. What I can do is describe the flow: I have a soap UI test that consist of the following steps: 1- "Add Cars" step will send an add cars request, then come back with a response with IDs for the cars added 2- Groovy step that extract those IDs from the first step response, then append them to the next step request 3- This step will call with Car IDs to verify that cars were added Now, I would like to run those steps over and over for load testing purposes. The problem is: That request for the third step (verification) where I am appending the IDs, still contain the IDs from the last time it ran. I need to add to the groovy script in step 2, so it checks and deletes all existing car IDs in the third step request, so they won't be sent again for verification. So every time that third step will run, it only contains IDs for cars that were just added during this run. The xml provided is just an example, but it does describe my end goal here. So, I would like to be able to remove those nodes iteratively throughout the whole request before appending the new ones. <ns:color></ns:color> I hope this helps a little answer my question. Thanks You!10KViews0likes0CommentsRemove xml Node using Groovy Script
Let's say we have the following example XML : <cars> <my:car> <ns:make>Honda</ns:make> <ns:model>Civic</ns:model> <ns:year>2012</ns:year> <ns:paint> <ns:color>red</ns:color> <ns:color>blue</ns:color> <ns:paint> </my:car> </cars> I would like to be able to delete all <ns:color> nodes from a test step request using a groovy script step in soapUI. Any help?12KViews0likes6Comments[LoadUIWeb] Chrome does not record requests
Hello, When I try to record a scenario using chrome browser, non of my requests get recorded. When I finish recording, I get a message saying that non of my requests were recorded. It does work fine with IE and Firefox. Wondering if you could help. Thanks.1.2KViews0likes3Comments