ContributionsMost RecentMost LikesSolutionsRe: How to i clear the property values of a TestCase or TestSuite using groovy script? to remove propety value from teststep properties. testRunner.testCase.getTestStepByName("Properties").properties.each { testRunner.testCase.getTestStepByName("Properties").properties[it.key].value = "" } how to dynamically add jsonpath to a test step using groovy script Hi, I have written a groovy scripts to dynamically add Xpath assertion to a soap response teststep by writing a code like below def testst = project.getTestSuiteAt(0).getTestCaseAt(0).getTestStepAt(0) def assertionxpath = testst.addAssertion("XPath Match") assertionxpath.name = xpathname xpathdec = testRunner.testCase.getPropertyValue(xpath) assertionxpath.setPath(getXapthcontains) xpathValdec = testRunner.testCase.getPropertyValue(xpathValue) assertionxpath.setExpectedContent(getXpathValuecontains) assertionxpath.setAllowWildcards(true) assertionxpath.setIgnoreNamespaceDifferences(true) Similarly for Json response, i have added , my json resposne is {"ip": "122.15.156.74"} def assertionJsonpath= testst.addAssertion("JsonPath Match") assertionJsonpath.setPath("$['ip']") assertionJsonpath.setExpectedContent(""122.15.156.74"") assertionJsonpath.setAllowWildcards(true) i am getting error as below because of $ symbol in setPath. org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script29.groovy: 11: illegal string body character after dollar sign; solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 11, column 23. assertionxpath.setPath("$['ip']") ^ org.codehaus.groovy.syntax.SyntaxException: illegal string body character after dollar sign; solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" @ line 11, column 23. at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:138) at org.codehaus.groovy.antlr.AntlrParserPlugin.parseCST(AntlrParserPlugin.java:111) at org.codehaus.groovy.control.SourceUnit.parse(SourceUnit.java:237) at org.codehaus.groovy.control.CompilationUnit$1.call(CompilationUnit.java:167) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:931) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:593) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) at groovy.lang.GroovyShell.parseClass(GroovyShell.java:694) at groovy.lang.GroovyShell.parse(GroovyShell.java:706) at groovy.lang.GroovyShell.parse(GroovyShell.java:742) at groovy.lang.GroovyShell.parse(GroovyShell.java:733) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.recompileWithNewName(SoapUIGroovyScriptEngine.java:155) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.compile(SoapUIGroovyScriptEngine.java:146) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:95) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:82) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:156) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: Script29.groovy:11:23: illegal string body character after dollar sign; solution: either escape a literal dollar sign "\$5" or bracket the value expression "${5}" at org.codehaus.groovy.antlr.parser.GroovyRecognizer.requireFailed(GroovyRecognizer.java:332) at org.codehaus.groovy.antlr.parser.GroovyLexer.require(GroovyLexer.java:313) at org.codehaus.groovy.antlr.parser.GroovyLexer.mSTRING_CTOR_END(GroovyLexer.java:2333) at org.codehaus.groovy.antlr.parser.GroovyLexer.mSTRING_LITERAL(GroovyLexer.java:1997) at org.codehaus.groovy.antlr.parser.GroovyLexer.nextToken(GroovyLexer.java:478) at org.codehaus.groovy.antlr.parser.GroovyLexer$1.nextToken(GroovyLexer.java:262) at groovyjarjarantlr.TokenBuffer.fill(TokenBuffer.java:69) at groovyjarjarantlr.TokenBuffer.LA(TokenBuffer.java:80) at groovyjarjarantlr.LLkParser.LA(LLkParser.java:52) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.pathExpression(GroovyRecognizer.java:11680) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.postfixExpression(GroovyRecognizer.java:13410) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.unaryExpressionNotPlusMinus(GroovyRecognizer.java:13379) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.powerExpressionNotPlusMinus(GroovyRecognizer.java:13083) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.multiplicativeExpression(GroovyRecognizer.java:13015) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.additiveExpression(GroovyRecognizer.java:12685) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.shiftExpression(GroovyRecognizer.java:9921) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.relationalExpression(GroovyRecognizer.java:12590) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.equalityExpression(GroovyRecognizer.java:12514) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.regexExpression(GroovyRecognizer.java:12462) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.andExpression(GroovyRecognizer.java:12430) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.exclusiveOrExpression(GroovyRecognizer.java:12398) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.inclusiveOrExpression(GroovyRecognizer.java:12366) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalAndExpression(GroovyRecognizer.java:12334) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.logicalOrExpression(GroovyRecognizer.java:12302) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.conditionalExpression(GroovyRecognizer.java:4956) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.assignmentExpression(GroovyRecognizer.java:8122) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expression(GroovyRecognizer.java:10061) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expressionStatementNoCheck(GroovyRecognizer.java:8449) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.expressionStatement(GroovyRecognizer.java:8995) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.statement(GroovyRecognizer.java:1278) at org.codehaus.groovy.antlr.parser.GroovyRecognizer.compilationUnit(GroovyRecognizer.java:760) at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:134) ... 22 more 1 error Solved by Self: I have added escape character \ before $. it works. Re: Project View does not open in SOAPUI Eclipse Plugin 4.0.1 Hi Support team, Any fix on this issue please ?. Regards, Raj How to add External jars in SOAPAUI Plugin for eclipseHI All, I am using SOAPUI plugin 3.5 for eclipse, can any one help me with how to set ext jar files in eclipse. In sopaui we place external jars here SoapUI-5.0.0\bin\ext, please help how do i add those in eclipse. when i open eclipse, i get error as Wed Oct 01 13:44:23 IST 2014:WARN:Missing folder [C:\Users\RAJ_n01\ext] for external libraries but when i create ext folder and place all the external jars over there and reopen eclipse, i get error as below. Wed Oct 01 13:47:20 IST 2014:ERROR:An error occured [java.lang.Object.addURL(java.net.URL)], see error log for details Wed Oct 01 13:47:21 IST 2014:ERROR:java.io.IOException: Error, could not add URL to system classloader Regards, RAjRe: Executing stored procedure from JDBC Requestany help on this pleasE?Re: Groovy Script for XPATH MATCH ASSERTION And TESTREQUEST PROPHI, Any help on this please? Regards, RajGroovy Script for XPATH MATCH ASSERTION And TESTREQUEST PROPhi, can any one help me with groovy script, please ? 1. I need XPATH MATch assertion in script. I need to assert Xpath match if XAPTH ASSERTION true DO this else Do this 2. I need to access Test Request properties Remove Empty Content in Groovy script <once you click on Test Request, left bottom corner you see Test Request properties, where in we can select some options as true false, like strip whitspace, Remove Empty Contect etc, please help with groovy script.Executing stored procedure from JDBC RequestHi People, I am using JDBC Test Step to execute a Db2 Stored procedure. The Stro proc contain output parameters one Int, Varchar and datetime. My DB Connection is successful. However I am unable to execute the SP, can someone help me with the declaration? Example Call Statement which is used in SQL Query box of JDBC Test Request: CALL "SCHEMA NAME "."SP NAME"('INPUTPARAMETER1','INPUTPARAMETER2','INPUTPARAMETER3',?,?,?); ? are output parameters. Any help is appreciated.Re: [Resolved]How to set content in Script Assertion with groovyhi, can any one help me with groovy scirpt, please ? 1. I need XPATH MATch assertion in script. I need to assert Xpath match if XAPTH ASSERTION true DO this else Do this 2. I need to access Test Request properties Remove Empty Content in script <once you click on Test Request, left bottom corner you see Test Request properties, where in we can select some options as true false, like strip whitspace, Remove Empty Contect etc, please help with groovy script.Re: Executing stored procedure from JDBC RequestHi SOAPUI SUpport team, any help on it ?