Forum Discussion

chrisfarquhar's avatar
chrisfarquhar
New Contributor
19 days ago

Error calling ReadyAPI from Azure DevOps

Hi, I'm calling ReadyAPI 3.51.0 from on-prem Azure Dev Ops in order to run Integration Tests as part of an Application deployment pipeline. The Integration Tests run perfectly when running directly in ReadyAPI but I'm getting an error when calling from ADO. I can replicate this by running the call from the command line. When I do this I see this error:-

15:47:12,063 ERROR [AbstractTestRunner] Exception during Test Executioncom.eviware.soapui.support.scripting.ScriptException: Error in Setup Script of Integration Tests at com.eviware.soapui.impl.wsdl.WsdlTestSuite.runSetupScript(WsdlTestSuite.java:694) ~[ready-api-soapui-3.51.0.jar:3.51.0 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:135) ~[ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner.internalRun(WsdlTestSuiteRunner.java:1) ~[ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:142) [ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.start(AbstractTestRunner.java:83) [ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.WsdlTestSuite.run(WsdlTestSuite.java:941) [ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.run(WsdlTestSuitePro.java:104) [ready-api-soapui-pro-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.WsdlTestSuitePro.run(WsdlTestSuitePro.java:98) [ready-api-soapui-pro-3.51.0.jar:3.51.0]  at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.runSuite(SoapUITestCaseRunner.java:861) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runSuite(SoapUIProTestCaseRunner.java:379) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:524) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.runRunner(SoapUIProTestCaseRunner.java:143) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:336) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:201) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.init(SoapUIProTestCaseRunner.java:103) [ready-api-runners-3.51.0.jar:?] at com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner.main(SoapUIProTestCaseRunner.java:99) [ready-api-runners-3.51.0.jar:?]

Caused by: java.lang.NullPointerException: Cannot invoke method getProjectByName() on null object

at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:91) ~[groovy-3.0.19.jar:3.0.19] at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:44) ~[groovy-3.0.19.jar:3.0.19] at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[groovy-3.0.19.jar:3.0.19] at org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:34) ~[groovy-3.0.19.jar:3.0.19]at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47) ~[groovy-3.0.19.jar:3.0.19] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) ~[groovy-3.0.19.jar:3.0.19] at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139) ~[groovy-3.0.19.jar:3.0.19] at Script1.run(Script1.groovy:6) ~[?:?]  at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.runAndGetResult(SoapUIGroovyScriptEngine.java:115) ~[ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:101) ~[ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:98) ~[ready-api-soapui-pro-3.51.0.jar:3.51.0]  at com.eviware.soapui.impl.wsdl.WsdlTestSuite.runScript(WsdlTestSuite.java:722) ~[ready-api-soapui-3.51.0.jar:3.51.0] at com.eviware.soapui.impl.wsdl.WsdlTestSuite.runSetupScript(WsdlTestSuite.java:692) ~[ready-api-soapui-3.51.0.jar:3.51.0]

2 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi,

    So, there is no problem if the test is executed from ReadyAPI IDE and exception is thrown when the same test is executed from command line inside interactive user session, right?

    In this case I would create Support ticket via the https://support.smartbear.com/readyapi/message/ form.

    Example of command line might also help...