Contributions
Re: Soapui can't handle large json responses
Tried to run the project from cmd with testrunner. This also hangs, so maybe not a gui problem. From output from this run you can see that second call gets the answer, but never enter assertion phase. ---- output ---------------- 2:41:18,186 INFO [SoapUITestCaseRunner] running step [List interactions - xml] 12:41:18,592 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request 12:41:18,592 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /api/interactions HTTP/1.1 12:41:19,515 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK 12:41:19,518 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely 12:41:25,711 INFO [SoapUITestCaseRunner] Assertion [HTTP 200] has status VALID 12:41:25,711 INFO [SoapUITestCaseRunner] Assertion [Contains xml schema] has status VALID //------ second call asking for same data but in json format 12:41:25,711 INFO [SoapUITestCaseRunner] running step [List interactions - json] 12:41:25,714 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check 12:41:25,715 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request 12:41:25,715 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /api/interactions HTTP/1.1 12:41:26,908 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK 12:41:26,908 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely 12:42:02,175 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed // -------After this it just hangs the testrunner never completes1.8KViews0likes0CommentsSoapui can't handle large json responses
Making a httprequest to a restservice from soapui. Answer from this service gives back about 20Mb of data. With header Accept:application/xml in request, everything works fine - I get my large xml. With header Accept:application/jsonin request,it fails. I can se in the 'http log' that I get the json-result, but i never gets displayed in the response-json view. If I cancel the request an then close all soapui-projects, Soapui will still run with 15-20 percent cpu-load. If I look in 'memory log' I can se that soapui allokates/deallocates (large) portions of memory continously. To me this seems to be some kind of gui-problem (since I got the respone). Tested with both soapui 5.1.3 and 5.2.0 This test is critical for upcoming release, so I will have to change to working a tool, probably JMeter. Hope it will be fixed since soapui is easier to work with. Regards /Anders :)1.8KViews0likes1CommentRe: How do I set multiple cookies in http request?
Done some more reading up on Cookies + logging my requests via Chrome plugin. Somehow soapui cant manage to catch all cookies, dont know why. I suspect that some cookies is sent in redirects. I have follow redirect = true in my testcase though. When running my test in jmeter (2.3.2) with the httpcookiemanager everithing works, with follow redirects = true. If redirects is off in jmeter the test fails there also. So since I need to get my tests in place we will go with jmeter. No more soapui pro licenses. Pitty, soapui seems to be a nice testing tool otherwise, but with no cookie support it's pretty useless in http-testing. Regards /Anders13 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0CommentsRe: How do I set multiple cookies in http request?
As far as got it now, a httpRequest header can only contain one 'Cookie' That should mean that I have to concatenate my 2 cookies. But not sure how to do that since it seems like a cookie contains more than a key-value pair. Looking at my cookies they are returned as: Header Value Set-Cookie THESESSIONID=61DR5GG123; Path=/;Secure Set-Cookie xid=c345bng84664856f; Domain=myhome.com; Expires=Fri, 29-Mar-2013 12:18:09 GMT; Path=/ If it was just the key-value of the cookies that were merge togther, the Cookie header would be easy to do. Or is it just the key-values that should be sent to server in next request? (THESESSIONID=61DR5GG123 + xid=c345bng84664856f) Any cookie expert who knows? Regards /Anders13 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0CommentsHow do I set multiple cookies in http request?
Hi Have to get a token for testing my web site. The token is received after a succesfull login. So I do 1) goto startpage - here a sessionid is returned, in Set-Cookie 2) perform login (http post) - here a private id is returned in Set-Cookie both above I got working in soapui, also got the values in from both Set-Cookie. 3) Visit a support page that based on 2 cookies in my httprequest head returns a token for later tests This I cant figure out, how do I get 2 "Cookie" fields into the request header? Anyone that knows? Regards /Anders13 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.8KViews0likes2CommentsRe: Detect where tests are run from
As usual, 5 mins after I posted this I found the answer: if( com.eviware.soapui.SoapUI.isCommandLine() ) { log.info "This code is executed by Command Line soapUI" } Sorry to bother you. Regards /Anders13 years agoPlace ReadyAPI QuestionsReadyAPI Questions515Views0likes0CommentsDetect where tests are run from
Hi In my tests I use startup scripts, both at test suite level and test case level. We are now trying to automate regression tests via Maven. When running tests from soapUI I show a java window, letting the tester choose test environment. When running from maven i dont want this window to show (nigthly regression tests). How can I in my setup script detect if the test(suite) is started from outside soapUI?13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1CommentRe: How to get (current) project name?
Thanks But the "testRunner.testCase.testSuite.project.name" is just what I try to find a workaround for. Wont work when I start tests from 'outside' soapui (in batch script). Use it to start/stop mock's. But I need to dig deeper into my problem, I'm not sure I need to do it this way anymore. If I still have problems once the test strategy is in place, I will return with a new question Regards /Anders14 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes0CommentsHow to get (current) project name?
Hi In a groovy test step I need to get the project name. Cant seem to get it though, tried with the below. def test = context.expand( '${#Project#Name)' ) log.info(test) ---> Tue Mar 22 15:54:28 CET 2011:INFO:${#Project#Name) Suspect that this is simple but I can't figure it out (tried a lot of variants on expansions). Anyone who can point me in the rigth direction? Regards /A14 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.9KViews0likes2Comments