Contributions
Re: Possible to run ReadyAPI 2.5 with guava version > 23
Thanks Sonya. I solved the issue by upgrading to 2.8.2. There one can find a newer gauva version (28.0). Regarding your question while I hestitate to upgrade - I run a lot of groovy scripts with ReadyAPI. My experience with ReadyAPI 3.3.1 is that it take quite a while (2- 3 min) to get a script running. Hence, I'll rather stay with 2.x. Best regards, Ronald4 years agoPlace ReadyAPI QuestionsReadyAPI Questions745Views0likes0CommentsPossible to run ReadyAPI 2.5 with guava version > 23
Hi. I can see that there is a guava.jar library in the lib directory for ReadyAPI 2.5 (guava-20.0.jar). I would like to start ReadyAPI 2.5 with a newer version of this lib. Unfortunatelly, when I try to change the jar file to a newer version - ReadyAPI won't start. My question: is it possible to run ReadyAPI 2.5 with a newer version of guava.jar? If so, how could this be achieved? Thanks in advance. /RonaldSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions769Views0likes2CommentsRe: java.util.zip.ZipException: zip file is empty
Hey Rich. Thanks for your answer. You are right - my description of the problem is confusing. The error manifests directly during startup of ReadyAPI 3.3.1. My later execution of some groovy scripts does not have to seem anything to do with the problem. When I start the application I receive the error - and therefore I do not know which zip file the application is trying to unpack. Sorry for the confusion. Ronald Add to Phrasebook No word lists for English -> Swedish... Create a new word list... Copy2.7KViews0likes0Commentsjava.util.zip.ZipException: zip file is empty
Hi. I have a fresh installation of ReadyAPI 3.3.1. Once I'm starting a groovy script I'm receiveing following error: java.util.zip.ZipException: zip file is empty java.util.zip.ZipException: zip file is empty at java.util.zip.ZipFile$Source.zerror(ZipFile.java:1470) ~[?:?] at java.util.zip.ZipFile$Source.findEND(ZipFile.java:1284) ~[?:?] at java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1378) ~[?:?] at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1209) ~[?:?] at java.util.zip.ZipFile$Source.get(ZipFile.java:1172) ~[?:?] ... My question: what zip-file is the application looking for or/and how do I get rid of this error? Thanks in advance. /Ronald2.8KViews0likes3CommentsRe: liquibase lock error while starting ReadyAPI
Found the solution from an old post from Tanya ... 10-08-2015 04:11 PM Hi Srhs, If you delete (backup) the content from db folder in .readyapi folder from your user folder, this should increase the load time. Does this help? ----- Tanya Gorbunova SmartBear Community Manager8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews1like1Commentliquibase lock error while starting ReadyAPI
Hi, while starting ReadyAPI workbench I'm getting following error message: ERROR [LiquibaseDbInitializer] Failed to initialize database liquibase.exception.LockException: Could not acquire change log lock. Currently locked by ... (ip-address) since 2016-05-19 07:58 at liquibase.lockservice.StandardLockService.waitForLock(StandardLockService.java:174) at liquibase.Liquibase.update(Liquibase.java:186) at liquibase.Liquibase.update(Liquibase.java:181) at com.smartbear.ready.db.init.liquibase.LiquibaseDbInitializer.initdb(LiquibaseDbInitializer.java:38) at com.smartbear.ready.db.init.liquibase.LiquibaseDbInitializer$$FastClassByGuice$$2a5f2037.invoke(<generated>) ... How can I get rid off this failure or existing lock? Thanks in advance, /RonaldSolved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes2CommentsRe: How to associate the response with the expected result (in data source) please?
Hi Jerry, you could do this in SoapUI via groovy script. You need 4 steps in your TestCase: 1. DataSource 2. Soap-call 3. Groovy-script for checking the result from the saop-call with your expected result (see below) 4. DSL to get to the start of the loop again Your groovy script could look like this: import com.eviware.soapui.support.XmlHolder; def assertionList = []; def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); def holder = groovyUtils.getXmlHolder(testRunner.testCase.testSteps["<name of the saop-teststep to be executed>"].testRequest.response.getContentAsXml()); // get the result from the soap call def soap_result = holder.getNodeValue("<xpath to the tag which holds the result>"); // get the expected result from the datasource def ds = testRunner.testCase.testSteps['DataSource']; // name of the datasource def dsExpectedResult = ds.getPropertyValue("<name of the column in the datasource which contains the expected result>"); // compare expected with actual result if ( dsExpectedResult != soap_result ) log.info(" Actual and expected result do not match.");9 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews1like1CommentRe: How to get soap mock response from external file!
Your mock-response should be a groovy script. There you can read in your file (filename based on the submitted ordernumber) and then you have to set an internal variable like this: def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ); def holder = groovyUtils.getXmlHolder(mockRequest.requestContent); String sInputOrderNumber = holder.getNodeValue("//<... here you need the tag from incomming request>"); lUtil.log(LogUtil.LogLevel.INFO, " Incomming ordernumber: " + sInputOrderNumber); ... // read correct file based on ordernumber String sResult = ... getOrderNumberResult( sInputOrderNumber ); // set context variable context.setProperty("result", sResult); Then, in your mock-response, you only put something like this: ${result} That means, whatever you read in from your file will be returned to the caller. That also means tha you should have your complete returnmessage in your mock-file. ( P.S.: Of course, you can have your retunr message in the response and only put the return variable there it belonged in the message.)12KViews0likes0Comments