ContributionsMost RecentMost LikesSolutionsRe: ERROR:groovy.lang.MissingMethodException: No signature of method Yes, try to new a instance instead of "static" class should be a temp solution, but why some "static" method works well but the others throws exception here, I'm still confused, still waitting for root cause... Re: ERROR:groovy.lang.MissingMethodException: No signature of method Thanks nmrao, it's not worked for me ERROR:groovy.lang.MissingMethodException: No signature of method I have groovy util class as below: package com.hypers.test.apitest.util import groovy.sql.Sql class DataBaseUtil { static def database static def connectDB(def url, def username, def password, def driver){ database = Sql.newInstance(url,username,password,driver) } static def queryData(def sqlcommand){ database.rows(sqlcommand) } static def queryData(def sqlcommand, def offset, def pageSize){ database.rows(sqlcommand, offset, pageSize) } static def getFirstRow(def sqlcommand){ database.firstRow(sqlcommand) } static def updateData(def sqlcommand){ database.executeUpdate(sqlcommand) } static def insertData(def sqlcommand){ database.executeInsert(sqlcommand) } static def deleteData(def sqlcommand){ database.execute(sqlcommand) } static def closeDB(){ database.close() } } I copied it to SoapUI for a reference, like: package com.hypers.test.apitest.util def JDBC_URL = context.expand( '${#Project#JDBC_URL}' ) def DB_UserName = context.expand( '${#Project#DB_UserName}' ) def DB_Password = context.expand( '${#Project#DB_Password}' ) def DB_Driver = context.expand( '${#Project#DB_Driver}' ) def sqlcommand = "SELECT id From configs_account Where name = 'APITEST_NewAccount_ValidData_ACTIVE'" DataBaseUtil.connectDB(JDBC_URL, DB_UserName, DB_Password, DB_Driver) DataBaseUtil.queryData(sqlcommand) DataBaseUtil.getFirstRow(sqlcommand) It works well with queryData method, but it's throws exception with getFirstRow method, I really can't figure out what's going on and get blocked for a very long time, please help to have a look, thanks. Exception as below: Tue Jul 23 15:48:47 CST 2019:ERROR:groovy.lang.MissingMethodException: No signature of method: static com.hypers.test.apitest.util.DataBaseUtil.getFirstRow() is applicable for argument types: (java.lang.String) values: [SELECT id From configs_account Where name = 'APITEST_NewAccount_ValidData_ACTIVE'] groovy.lang.MissingMethodException: No signature of method: static com.hypers.test.apitest.util.DataBaseUtil.getFirstRow() is applicable for argument types: (java.lang.String) values: [SELECT id From configs_account Where name = 'APITEST_NewAccount_ValidData_ACTIVE'] at groovy.lang.MetaClassImpl.invokeStaticMissingMethod(MetaClassImpl.java:1373) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:1359) at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:50) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.hypers.test.apitest.util.DBUtil.getFirstRow(Script10.groovy:38) at com.hypers.test.apitest.util.DBUtil$getFirstRow.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script18.run(Script18.groovy:10) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:79) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:138) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) SolvedRe: How to keep request header during redirect scenario? Access http://www.bing.com as example, when I try to access http://www.bing.com, it will redirect to https://cn.bing.com Here is the screenshots with Fiddler and SoapUI Pro: GET http://www.bing.com/ HTTP/1.1 purpose: preview x-purpose: preview x-moz: preview Host: www.bing.com User-Agent: Apache-HttpClient/4.1.1 (java 1.5) Re: How to keep request header during redirect scenario? Here is the whole request headers: Accept-Encoding: gzip,deflate purpose: preview x-purpose: preview x-moz: preview Host: www.test.com Connection: Keep-Alive User-Agent: Apache-HttpClient/4.1.1 (java 1.5) How to keep request header during redirect scenario? I have below sites, and when access to site1 it will redirect to site2: (Note: below sites are all fake and just showed as a demo) site1: http://www.test.com/test?a=1 site2: http://www.test.com/test?a=1&_z=_ Tried with Fiddler (site1 and site2 has the same request header during redirect action, which is expected result): GET http://www.test.com/test?a=1 User-Agent: Fiddler Purpose: prefetch Host: www.test.com GET http://www.test.com/test?a=1&_z=_ User-Agent: Fiddler Purpose: prefetch Host: www.test.com But when I tried it with Soapui Pro, it shows as below: GET http://www.test.com/test?a=1 User-Agent: Fiddler Purpose: prefetch Host: www.test.com GET http://www.test.com/test?a=1&_z=_ User-Agent: Fiddler Host: www.test.com As you can see, the header "Purpose: prefetch" is gone after the redirect action, which is not expect result. How to handle this and make it works just like Fiddler did? Besides, this issue also happened with Useragent setting, if you setting your custom useragent with "Preferences -> HTTP Setting -> User-Agent Header", it's only works with the first request url, the redirect sites always used the default useragent value ("User-Agent: Apache-HttpClient/4.1.1 (java 1.5)") I already blocked with this issue, please help to have a look, thanks. And there's another related issue here: https://community.smartbear.com/t5/SoapUI-Open-Source/Wrong-redirect-in-HTTP-request-with-several-following-redirects/td-p/109555 Re: How to overrides testCaseProperties like projectProperties or testSuiteProperties in pom.xml file?I finally used projectProperties to do this.Re: POM file for SoapUI 5.4.0 Thanks, I got the same issue and your reply works well for me. Re: Run "mvn test" failed: Unable to load the mojo 'test' (or one of its required components) No, Looks Lucian's reply not works for me. But I finally got the solution by downgrade JDK from 9 to 1.8, here is the link I have referenced: https://community.smartbear.com/t5/SoapUI-Open-Source/POM-file-for-SoapUI-5-4-0/m-p/176709 Re: How to make it works well if I used project properties in request key? upvoted