Forum Discussion
Just as a follow-up I quickly tried you method of running a test case and also got the following null pointer:
Tue Oct 25 17:25:35 BST 2016:ERROR:java.lang.NullPointerException java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:228) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStepByName(AbstractTestCaseRunner.java:212) at com.eviware.soapui.model.testsuite.TestCaseRunner$runTestStepByName$4.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125) at Script5.run(Script5.groovy:16) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SoapUIProGroovyScriptEngineFactory.java:79) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:156) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:228) at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:148) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:1) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:130) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Being this is a NullPointerException I guess that you have hit a bug, might be good to report it to SmartBear support.
Hopefully the code in my initial reply will let you work around the bug.
- nmrao8 years agoChampion Level 3Before doing so, it would be worth to check the line 16 of groovy script.
- Radford8 years agoSuper Contributor
Yep, nmrao is correct, I misread your original post and didn't realise (I assume) you are calling another test step within the same test case. Appologies, my code is to run another test case, and please ignore my post about above about the null pointer.
I tried running another step in the same case (your way) and it ran to completion regardless of the result status.
- fawad8 years agoNew Contributor
RadfordThanks for the feedback.
I've added a null check for now, but that does not discount the fact that runTestStepByName should not return a null, but one of the values from TestStepResult
as per their APPI doc:
runTestStepByName
TestStepResult runTestStepByName(String name)
Runs the specified TestStep and returns the resultI'll see about a bug report.Fawad
Related Content
- 3 years agoEgg