Forum Discussion
mamar
11 years agoContributor
Hi Martin,
I found out and resolved the issue which i posted in my previous post. The problem is i had a code "com.eviware.soapui.SoapUI.logMonitor.getLogArea("soapUI log").clear()" in which the text "soapUI log" is "SoapUI log" in Pro version. Now all my code is running perfectly.
But i face another issue. When i run from soapui tool, all my suites are running without any issues. But when i run from command prompt, i get an error like below. Could you please help me to resolve..? i use the same reusable code concept as you have. My reusable code is in different project(Library) and my calling code is in different project. When i run this project i get the below error.
...
...
...
command: cmd.exe /C testrunner.bat -s<suite> -c<testcase> -r -f"C:\TestRunner Reports" -R"TestSuite Report" -EDefault "C:\project.xml"
09:47:34,756 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
09:47:34,757 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
09:47:34,759 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\sqljdbc.jar] to extensions classpath
09:47:35,147 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\PAR964\soapui-settings.xml]
09:47:35,458 INFO [DefaultSoapUICore] Adding plugin from [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\plugins\soapui-groovy-console-plugin-1.0-plugin.jar]
09:47:36,481 INFO [WsdlProject] Loaded project from [file:/C:project.xml]
09:47:38,157 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.NullPointerException: Cannot invoke method getProjectByName() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
....
....
....
I found out and resolved the issue which i posted in my previous post. The problem is i had a code "com.eviware.soapui.SoapUI.logMonitor.getLogArea("soapUI log").clear()" in which the text "soapUI log" is "SoapUI log" in Pro version. Now all my code is running perfectly.
But i face another issue. When i run from soapui tool, all my suites are running without any issues. But when i run from command prompt, i get an error like below. Could you please help me to resolve..? i use the same reusable code concept as you have. My reusable code is in different project(Library) and my calling code is in different project. When i run this project i get the below error.
...
...
...
command: cmd.exe /C testrunner.bat -s<suite> -c<testcase> -r -f"C:\TestRunner Reports" -R"TestSuite Report" -EDefault "C:\project.xml"
09:47:34,756 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
09:47:34,757 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
09:47:34,759 INFO [SoapUI] Adding [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\ext\sqljdbc.jar] to extensions classpath
09:47:35,147 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\PAR964\soapui-settings.xml]
09:47:35,458 INFO [DefaultSoapUICore] Adding plugin from [C:\Program Files (x86)\SmartBear\SoapUI-4.6.4\bin\plugins\soapui-groovy-console-plugin-1.0-plugin.jar]
09:47:36,481 INFO [WsdlProject] Loaded project from [file:/C:project.xml]
09:47:38,157 ERROR [AbstractTestRunner] Exception during Test Execution
java.lang.NullPointerException: Cannot invoke method getProjectByName() on null object
at org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
....
....
....
Related Content
- 6 years ago
- 4 years ago
Recent Discussions
- 5 days ago
- 9 days ago