ContributionsMost RecentMost LikesSolutionsRe: Help in adding new jar fileFound that MultiValueMap class exists in commons-collections-3.2.1.jar this jar is in C:\Program Files\eviware\soapUI-Pro-3.5.1\lib Now how to use that particular class?Help in adding new jar fileHi, I want to use MultiValueMap which is in following link http://commons.apache.org/collections/a ... ueMap.html When I use import org.apache.commons.collections.MultiHashMap, I get following error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script2.groovy: 62: unable to resolve class MultiValueMap @ line 62, column 20. MultiMap mhm = new MultiValueMap(); ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class MultiValueMap @ line 62, column 20. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:148) at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:226) at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:236) at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1053) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:728) at org.codehaus.groovy.control.ResolveVisitor.transformDeclarationExpression(ResolveVisitor.java:1090) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:720) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:139) at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40) at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:165) at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1301) at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:51) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitIfElse(ClassCodeExpressionTransformer.java:79) at org.codehaus.groovy.ast.stmt.IfStatement.visit(IfStatement.java:41) at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:165) at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1301) at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:51) at org.codehaus.groovy.ast.CodeVisitorSupport.visitForLoop(CodeVisitorSupport.java:41) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitForLoop(ClassCodeVisitorSupport.java:200) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitForLoop(ClassCodeExpressionTransformer.java:121) at org.codehaus.groovy.control.ResolveVisitor.visitForLoop(ResolveVisitor.java:1295) at org.codehaus.groovy.ast.stmt.ForStatement.visit(ForStatement.java:47) at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:165) at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1301) at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:51) at org.codehaus.groovy.control.ResolveVisitor.transformClosureExpression(ResolveVisitor.java:1046) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:726) at org.codehaus.groovy.ast.expr.Expression.transformExpressions(Expression.java:49) at org.codehaus.groovy.ast.expr.ArgumentListExpression.transformExpression(ArgumentListExpression.java:67) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:733) at org.codehaus.groovy.control.ResolveVisitor.transformMethodCallExpression(ResolveVisitor.java:1068) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:724) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:139) at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40) at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:35) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:165) at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1301) at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:51) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:101) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:112) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:50) at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:171) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:123) at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1039) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:50) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1244) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:148) at org.codehaus.groovy.control.CompilationUnit$6.call(CompilationUnit.java:585) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:832) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:519) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:495) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:472) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:292) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:727) at groovy.lang.GroovyShell.parse(GroovyShell.java:739) at groovy.lang.GroovyShell.parse(GroovyShell.java:766) at groovy.lang.GroovyShell.parse(GroovyShell.java:757) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:141) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:90) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:148) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:274) 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) 1 errorcomparison of two responsesHi, I have following scenario: Run tests and save the response, test name and test status to DB or to a folder in a XML format. While doing regression testing, with the same input parameters execute the request and verify what changes have occured to current response. In the sense compare two responses. If there is no change dont do anything. If there are changes in Data/element save them to a file. How can I achieve this using groovy? This is urgent! So please helpRe: Script assertion - need helpMcDonald, Can you give an example how to achieve what you explained? I have numerous assertions in my script. When one assertion fails rest of the exceptions never get executed which is not I want. I want to have all the assertions to run through and then give me the status of each exception and print error messages. How to achieve this?Re: Groovy Tutorial for SOAP UI ProCheckout the forums for examples. Links that I found useful http://groovy.codehaus.org/Getting+Started+Guide http://pleac.sourceforge.net/pleac_groovy/index.html Hope this helps!Re: Error while running tests from the TestRunner LauncherDo you want the project file and console messages of the Launcher?Error while running tests from the TestRunner LauncherHi Ole, I am getting some weird error while running tests from TestRunner Launcher. I dont get that error while executing from the UI. The error says: 10:00:43,735 INFO [SoapUIProTestCaseRunner] running step [GetGameMetaData - Request 1] java.net.MalformedURLException: For input string: "18080active-bpel" at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at com.eviware.soapui.impl.wsdl.endpoint.DefaultEndpointStrategy.filterRequest(DefaultEndpointStrategy.java:163) at com.eviware.soapui.impl.wsdl.submit.filters.EndpointStrategyRequestFilter.filterRequest(EndpointStrategyRequestFilter.java:35) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:133) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122) at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:75) at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:235) at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:324) 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(AbstractTestRunner.java:139) 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) The WSDL has the URL parameterized. Dont know what that error means. But the Request is executed and I see the information logs as well. In the TestRunner Launcher, I gave the path for Reports but dont see the reports in the folder.how to access testRunner from the TearDown of TestSuite?Hi, I want to have the test step results printed for each test case by writing groovy script in the TearDown script of TestSuite. Can you let me know how to access testRunner.results from the teardown script of TestSuite? I tried following script but it complaints saying testRunner not found import com.eviware.soapui.impl.support.http.HttpRequestTestStep def testsuitename = testSuite.name log.info(testsuitename) for(testCase in testSuite.testCaseList) { if(!testCase.isDisabled()) { log.info(testCase.name) def logfilepath = "C:/Automation/Soapui/Shows/Log/" def d1 = new File("${logfilepath}/${testsuitename}") d1.mkdir() logFile = new File("${d1}/${testCase.name}.log") if(logFile.exists()) { logFile.delete(); } def today= new Date() bufferedWriter = new BufferedWriter(new FileWriter("${d1}/${testCase.name}.log")); bufferedWriter.writeLine "Run time:" bufferedWriter.writeLine today.toString() bufferedWriter.writeLine "Test case: $testCase.name" bufferedWriter.writeLine("Test result count: ${testSuite.getTestCaseAt(4).getTestStepAt(1).testRunner.results.size()}") def int i = 1 testRunner.results.each { testResult -> String testStepName = testResult.testStep.name bufferedWriter.writeLine "Test step $i '$testStepName'" bufferedWriter.writeLine "Test step $i result: status $testResult.status, size $testResult.messages, messages: $testResult.messages" ++i } bufferedWriter.flush(); bufferedWriter.close(); } }counting number of assertions and printing the statusHi, I have numerous assertions in a groovy test step. I want to print the status of each assertion. How to achieve this? example I have following assertions in groovy test step call Query-VideoMetaData //assert videoDescr assert sqlDisplayTitle == videoDescrList //assert videoID assert sqlmusicViedoID == artistvideoIDList //assert RecordLabel assert sqldisplayLabel == recordLabelList //assert Album Names assert sqldisplayTrack == albumList //assert ArtistNames assert sqlDisplayArtist == artistNameList Now I want to know count of assertions and status and if there is any error want to print the assertion which failed. Ex: No of Assertions: 5 assert sqlDisplayArtist == artistNameList - Failed. assert sqldisplayTrack == albumList - OKRe: JDBC Connections - groovy scriptHi Ole, I got the clustered database connection working successfully now Hope this string helps others who has Oracle DB which has Load Balance set on. In the JDBC Connections tab at the project level, Name: QA Driver: oracle.jdbc.driver.OracleDriver Connection String: jdbc:oracle:thin:username/password@(DESCRIPTION=(ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=HOST1)(port=1521)) (ADDRESS=(PROTOCOL=TCP)(HOST=HOST2)(port=1521))) (CONNECT_DATA=(server=dedicated) (SERVICE_NAME= SERVER_NAME)))