Contributions
Re: java.lang.ClassNotFoundException on Win 7
testKrzysztofBober wrote: tom_13 wrote: I have created JAVA_HOME variable with C:\Program Files\Java\jre6, but it does not help. try jdk , not jre I have tried it too, it doesn't help. And I have not jdk folder, there is only jre6.1.6KViews0likes0Commentsjava.lang.ClassNotFoundException on Win 7
Hi, I cannot run script on soapUI 3.5.1 on Win 7 I got an error on running: import groovy.sql.Sql from groovy step. There is an error: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at groovy.sql.Sql.loadDriver(Sql.java:467) at groovy.sql.Sql.newInstance(Sql.java:293) at groovy.sql.Sql$newInstance.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:137) at Script1.run(Script1.groovy:15) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runSetupScript(WsdlTestCase.java:850) at com.eviware.soapui.impl.wsdl.panels.testcase.WsdlTestCaseDesktopPanel$SetupScriptGroovyEditorModel$1.actionPerformed(WsdlTestCaseDesktopPanel.java:571) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) This script successful executed on soapUI 3.5.1 on Win XP SP3 Thanks.2.7KViews0likes7Comments[SOLVED]Problem with HashMap in groovy
I need get HashMap from one script to another. I save it to the context in the first script : def map = new HashMap() map [...] = ... context.mapTestData = map Then get it in second script def curMap = new HashMap() curMap = context.mapTestData My map has three levels and it is a problem, becouse if I show all map ( log.info curMap ) I receive Fri Oct 02 16:56:25 EEST 2009:INFO:{1={extra_parameter=null, ..., expexted=[{line_name=Line_Main, exp_charging=14}, {line_name=Common_Main, exp_charging=34}], ..., loc_area_ident=null}} But if I write log.info curMap[1] or log.info curMap['1'] I get NULL, I don't understend why it working so Can anybody help me, I need to get map from second level P.S I'm using soapUI 2.5.12.4KViews0likes3CommentsRe: [SOLVED]Compare Response
Try do this from groovy after run step1 and step2: def responseStep1 = context.expand( '${Step1 name#Response}' ) def responseStep2 = context.expand( '${Step2 name#Response}' ) if (!responseStep1.equals(responseStep2) ) testRunner.fail("Responses is not equal")925Views0likes0Comments