alibaba82
12 years agoSuper Contributor
[Reg]soapui doesn't load plugins when running testrunner.bat
Hello,
I have a custom plugin and followed Ole's blog on how to create the plugin so that you can put the plugin under soapui/bin/plugins. There seems to be a bug in com.eviware.soapui.DefaultSoapUICore class in how it is loading plugins. The issue is that if I run testrunner.bat from the same directory, everything works fine (example below)
However, if I run testrunner.bat from a different directory, the plugins are not loaded. In our use case, testrunner.bat is called from a browser based activeX application and it generally invokes windows command prompt from something like C:\temp\...
Can this be fixed in the nightly release as it is breaking our plugin.
Thanks
Ali
I have a custom plugin and followed Ole's blog on how to create the plugin so that you can put the plugin under soapui/bin/plugins. There seems to be a bug in com.eviware.soapui.DefaultSoapUICore class in how it is loading plugins. The issue is that if I run testrunner.bat from the same directory, everything works fine (example below)
D:\soapUI-Test\SoapUI-Pro-4.6.3\bin>testrunner.bat "C:\Users\araza\soapUI-Tutorials\sample-soapui-project.xml" "-Dmode=QC -shttp tests" "-cTestCase 1" "-j" "-fC:\Reports"
SoapUI Pro 4.6.3 TestCase Runner
Configuring log4j from [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\soapui-log4j.xml]
15:10:35,507 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\commons-codec-1.3.jar] to extensions classpath
15:10:35,508 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\mongo-2.6.5.jar] to extensions classpath
15:10:35,509 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\Padlock-1.2.jar] to extensions classpath
15:10:35,813 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\araza\soapui-settings.xml]
15:10:36,090 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Users\araza\Desktop\verizon training\groovy]
15:10:36,092 INFO [DefaultSoapUICore] Adding listeners from [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\listeners\demo-listeners.xml]
15:10:36,100 INFO [DefaultSoapUICore] Adding plugin from [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\plugins\dragonfly-plugin.jar]
15:10:36,110 INFO [DefaultSoapUICore] Adding listener [class com.agiletestware.dragonfly.qualitycenter.ProjectListener]
15:10:36,353 INFO [DefaultSoapUICore] Adding listener [class com.agiletestware.dragonfly.qualitycenter.testCaseListener]
15:10:37,529 INFO [WsdlProject] Loaded project from [file:/C:/Users/araza/soapUI-Tutorials/sample-soapui-project.xml]
However, if I run testrunner.bat from a different directory, the plugins are not loaded. In our use case, testrunner.bat is called from a browser based activeX application and it generally invokes windows command prompt from something like C:\temp\...
C:\>cd foo
C:\foo>D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\testrunner.bat "C:\Users\araza\soapUI-Tutorials\sample-soapui-project.xml" "-Dmode=QC -shttp tests" "-cTestCase 1" "-j" "-fC:\Reports"
SoapUI Pro 4.6.3 TestCase Runner
15:07:44,842 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\commons-codec-1.3.jar] to extensions classpath
15:07:44,843 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\mongo-2.6.5.jar] to extensions classpath
15:07:44,844 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\Padlock-1.2.jar] to extensions classpath
15:07:45,146 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\araza\soapui-settings.xml]
15:07:45,423 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Users\araza\Desktop\verizon training\groovy]
15:07:45,425 INFO [DefaultSoapUICore] Adding listeners from [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\listeners\demo-listeners.xml]
15:07:46,224 INFO [WsdlProject] Loaded project from [file:/C:/Users/araza/soapUI-Tutorials/sample-soapui-project.xml]
Can this be fixed in the nightly release as it is breaking our plugin.
Thanks
Ali