nickr001
14 years agoNew Contributor
loadUI command line problems
Hi there,
I am trying to use loadui command line tool on mac and having several issues.
My project setup is next:
I have simple soapui runner which runs a test from existing soapui project and script runner that is executing groovy script. This is placed in the root of the project (not part of the test case component) In addition to that for testing purposes I have added test case called TestCase with same exact setup and test case named TestCase1 with just soapui runner and load generator (no groovy script) All tests are working fine from loadui GUI.
Here are my problems:
1. Running locally
When I run
after some exceptions (several, you can find them at the bottom of the post) it actually runs the setup in the root of the project and groovy script works just fine. But in case I want to specify testcase and run next command:
Test kind of runs (it issuing the queries and I can see that Samples count updated and checking the service I can see that loadui is issuing the queries but after 10 sec it get stuck without producing any results and not closing the run) but groovy script not executing.
Then when i try TestCase1 that has no groovy script runner, I am usnig next command:
I don't see any queries being issued nor Samples count updated it also stuck after 10 seconds unable to finish the test.
2. Distributed
I have ami image of load agent distributed to the aws and I can see it is up and running. I am able to add agent in loadUI GUI and run distributed tests on that agent, but it doesn't work when I am trying to use command line. It fails with exception about MissingFieldException:No such Filed: Script1:
(ec2 address is modified)
This is general log I am getting each time I am running the command line (sorry for long post)
So yes, I need help
:)
Thanks,
Nick
I am trying to use loadui command line tool on mac and having several issues.
My project setup is next:
I have simple soapui runner which runs a test from existing soapui project and script runner that is executing groovy script. This is placed in the root of the project (not part of the test case component) In addition to that for testing purposes I have added test case called TestCase with same exact setup and test case named TestCase1 with just soapui runner and load generator (no groovy script) All tests are working fine from loadui GUI.
Here are my problems:
1. Running locally
When I run
./loadUI-cmd.command -p /Users/me/loadUI/loadtestproject.xml -L 10:0:0
after some exceptions (several, you can find them at the bottom of the post) it actually runs the setup in the root of the project and groovy script works just fine. But in case I want to specify testcase and run next command:
./loadUI-cmd.command -p /Users/me/loadUI/loadtestproject.xml -nofx -t"TestCase" -L 10:0:0
Test kind of runs (it issuing the queries and I can see that Samples count updated and checking the service I can see that loadui is issuing the queries but after 10 sec it get stuck without producing any results and not closing the run) but groovy script not executing.
Then when i try TestCase1 that has no groovy script runner, I am usnig next command:
./loadUI-cmd.command -p /Users/me/loadUI/loadtestproject.xml -nofx -t"TestCase1" -L 10:0:0
I don't see any queries being issued nor Samples count updated it also stuck after 10 seconds unable to finish the test.
2. Distributed
I have ami image of load agent distributed to the aws and I can see it is up and running. I am able to add agent in loadUI GUI and run distributed tests on that agent, but it doesn't work when I am trying to use command line. It fails with exception about MissingFieldException:No such Filed: Script1:
(ec2 address is modified)
./loadUI-cmd.command -p /Users/me/loadUI/loadtestproject.xml -a ec2-00-00-000-00.compute-1.amazonaws.com:443 -t"TestCase" -L 10:0:0
16:25:39,940 INFO [CommandRunner] Awaiting TestCase initialization...
groovy.lang.MissingFieldException: No such field: log for class: Script1
at groovy.lang.MetaClassImpl.getAttribute(MetaClassImpl.java:2494)
at groovy.lang.MetaClassImpl.getAttribute(MetaClassImpl.java:3316)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getGroovyObjectField(ScriptBytecodeAdapter.java:352)
at Script1.this$dist$get$3(Script1.groovy)
at Script1$1.propertyMissing(Script1.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:753)
at groovy.lang.MetaClassImpl$11.getProperty(MetaClassImpl.java:1773)
at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.getProperty(GetEffectivePogoPropertySite.java:84)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
at Script1$1.handleMessage(Script1.groovy:47)
at com.eviware.loadui.util.messaging.MessageEndpointSupport$MessageListenerProxy.handleMessage(MessageEndpointSupport.java:120)
at com.eviware.loadui.util.messaging.ChannelRoutingSupport.fireMessage(ChannelRoutingSupport.java:75)
at com.eviware.loadui.impl.messaging.BayeuxMessageEndpoint.onMessages(BayeuxMessageEndpoint.java:161)
at org.cometd.client.BayeuxClient$PublishTransportListener.onMessages(BayeuxClient.java:722)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.java:252)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:921)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:264)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:605)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:812)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:263)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:526)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:41)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
at java.lang.Thread.run(Thread.java:680)
groovy.lang.MissingFieldException: No such field: log for class: Script1
at groovy.lang.MetaClassImpl.getAttribute(MetaClassImpl.java:2494)
at groovy.lang.MetaClassImpl.getAttribute(MetaClassImpl.java:3316)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getGroovyObjectField(ScriptBytecodeAdapter.java:352)
at Script1.this$dist$get$3(Script1.groovy)
at Script1$1.propertyMissing(Script1.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:753)
at groovy.lang.MetaClassImpl$11.getProperty(MetaClassImpl.java:1773)
at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.callGroovyObjectGetProperty(GetEffectivePogoPropertySite.java:67)
at Script1$1.handleMessage(Script1.groovy:47)
at com.eviware.loadui.util.messaging.MessageEndpointSupport$MessageListenerProxy.handleMessage(MessageEndpointSupport.java:120)
at com.eviware.loadui.util.messaging.ChannelRoutingSupport.fireMessage(ChannelRoutingSupport.java:75)
at com.eviware.loadui.impl.messaging.BayeuxMessageEndpoint.onMessages(BayeuxMessageEndpoint.java:161)
at org.cometd.client.BayeuxClient$PublishTransportListener.onMessages(BayeuxClient.java:722)
at org.cometd.client.transport.LongPollingTransport$TransportExchange.onResponseComplete(LongPollingTransport.java:252)
at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(HttpExchange.java:921)
at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:264)
at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpConnection.java:605)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:812)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
at org.eclipse.jetty.client.HttpConnection.handle(HttpConnection.java:263)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:526)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:41)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:528)
at java.lang.Thread.run(Thread.java:680)
16:26:39,956 ERROR [CommandRunner] Some TestCases not initialized during timeout period. Program will exit
Stopping Framework...
This is general log I am getting each time I am running the command line (sorry for long post)
Launching loadUI Build: loadUI-2011-08-08-[2] 2011/08/08 03:19
ERROR: Bundle com.eviware.loadui.fx-interface [29] Error starting file:/Applications/loadUI/bundle/loadui-fx-interface-1.5.1-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bundle com.eviware.loadui.fx-interface [29]: Unable to resolve 29.0: missing requirement [29.0] package; (package=com.javafx.preview.control))
org.osgi.framework.BundleException: Unresolved constraint in bundle com.eviware.loadui.fx-interface [29]: Unable to resolve 29.0: missing requirement [29.0] package; (package=com.javafx.preview.control)
at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3446)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:680)
Configuring log4j from [/Applications/loadUI/soapui-log4j.xml]
16:16:24,506 WARN [SoapUI] Missing folder [/Applications/loadUI/./ext] for external libraries
16:16:24,656 INFO [DefaultSoapUICore] initialized soapui-settings from [/Users/nryabov/soapui-settings.xml]
log4j:ERROR Could not find [log4j.dtd]. Used [sun.misc.Launcher$ExtClassLoader@43be2d65] class loader in the search.
log4j:ERROR Could not parse url [file:/Applications/loadUI/log4j.xml].
java.io.FileNotFoundException: /Applications/loadUI/log4j.dtd (No such file or directory)
...
org.apache.commons.ssl.ProbablyBadPasswordException: Probably bad JKS-Key password: java.security.UnrecoverableKeyException: Password must not be null
at org.apache.commons.ssl.KeyStoreBuilder.tryJKS(KeyStoreBuilder.java:484)
at org.apache.commons.ssl.KeyStoreBuilder.parse(KeyStoreBuilder.java:374)
at org.apache.commons.ssl.TrustMaterial.<init>(TrustMaterial.java:213)
at org.apache.commons.ssl.TrustMaterial.<init>(TrustMaterial.java:165)
at org.apache.commons.ssl.TrustMaterial.<init>(TrustMaterial.java:170)
at org.apache.commons.ssl.TrustMaterial.<init>(TrustMaterial.java:175)
at org.apache.commons.ssl.TrustMaterial.<clinit>(TrustMaterial.java:88)
at org.apache.commons.ssl.SSL.<init>(SSL.java:184)
at org.apache.commons.ssl.SSLClient.<init>(SSLClient.java:59)
at org.apache.commons.ssl.HttpSecureProtocol.<init>(HttpSecureProtocol.java:55)
at org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory.<init>(EasySSLProtocolSocketFactory.java:94)
at com.eviware.soapui.impl.wsdl.support.http.SoapUIEasySSLProtocolSocketFactory.<init>(SoapUIEasySSLProtocolSocketFactory.java:36)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.<init>(HttpClientSupport.java:65)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.<clinit>(HttpClientSupport.java:48)
at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:353)
at com.eviware.soapui.SwingSoapUICore.initSettings(SwingSoapUICore.java:118)
at com.eviware.soapui.SoapUIPro$SoapUIProCore.initSettings(SourceFile:917)
at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141)
at com.eviware.soapui.SoapUIPro$SoapUIProCore.init(SourceFile:828)
at com.eviware.soapui.SoapUIPro$SoapUIProCore.<init>(SourceFile:809)
at com.eviware.loadui.components.soapui.SoapUIComponentActivator.start(SoapUIComponentActivator.java:166)
at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:629)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1842)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1759)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1163)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:680)
16:16:25,132 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [/Applications/loadUI/scripts]
...
-> Framework started!
...
------------------------------------
INITIALIZING COMMAND LINE RUNNER
------------------------------------
...
16:16:27,646 INFO [CajoServer] Port already in use: 1199; nested exception is:
java.net.BindException: Address already in use
16:16:27,646 INFO [CajoServer] The cajo server is running on localhost:1199/loaduiIntegration
16:16:27,709 INFO [ExecutorManagerImpl] Global Threadpool max size set to 1000
16:16:27,710 INFO [ExecutorManagerImpl] Global Threadpool queue max size set to 10000
16:16:28,431 INFO [SoapUIProjectLoader] Caching soapUI project at [/Users/me/blah.xml]
16:16:28,467 INFO [WsdlProject] Loaded project from [file:/Users/me/blah.xml]
16:16:28,645 INFO [DefaultSoapUICore] Importing preferences from [/Users/nryabov/soapui-settings.xml]
16:16:28,646 INFO [HttpClientSupport$Helper] Updating keyStore..
16:16:28,646 ERROR [SoapUI] An error occured [java.lang.NullPointerException], see error log for details
java.lang.NullPointerException
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.initKeyMaterial(HttpClientSupport.java:148)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.access$200(HttpClientSupport.java:54)
at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper$SSLSettingsListener.settingsReloaded(HttpClientSupport.java:194)
at com.eviware.soapui.impl.settings.XmlBeansSettingsImpl.notifySettingsReloaded(XmlBeansSettingsImpl.java:140)
at com.eviware.soapui.impl.settings.XmlBeansSettingsImpl.reloadSettings(XmlBeansSettingsImpl.java:131)
at com.eviware.loadui.components.soapui.SoapUIComponentActivator.loadSettings(SoapUIComponentActivator.java:210)
at com.eviware.loadui.components.soapui.SoapUISamplerComponent$SoapUITestCaseRunner.initGeneralSettings(SoapUISamplerComponent.java:945)
at com.eviware.loadui.components.soapui.SoapUISamplerComponent.<init>(SoapUISamplerComponent.java:262)
at com.eviware.loadui.components.soapui.SoapUIBehaviorProvider.loadBehavior(SoapUIBehaviorProvider.java:38)
at com.eviware.loadui.impl.component.ComponentRegistryImpl.loadBehavior(ComponentRegistryImpl.java:142)
at com.eviware.loadui.impl.model.CanvasItemImpl.loadComponent(CanvasItemImpl.java:293)
at com.eviware.loadui.impl.model.CanvasItemImpl.init(CanvasItemImpl.java:171)
at com.eviware.loadui.impl.model.SceneItemImpl.init(SceneItemImpl.java:132)
at com.eviware.loadui.impl.model.ProjectItemImpl.init(ProjectItemImpl.java:158)
at com.eviware.loadui.impl.model.ProjectItemImpl.loadProject(ProjectItemImpl.java:125)
at com.eviware.loadui.impl.model.ProjectRefImpl.loadProject(ProjectRefImpl.java:117)
at com.eviware.loadui.impl.model.ProjectRefImpl.setEnabled(ProjectRefImpl.java:137)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2392)
at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3312)
at org.codehaus.groovy.runtime.InvokerHelper.setProperty(InvokerHelper.java:183)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.setProperty(ScriptBytecodeAdapter.java:480)
at Script1.run(Script1.groovy:110)
at com.eviware.loadui.cmd.CommandRunner$CommandRunnable.run(CommandRunner.java:94)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
16:16:28,897 INFO [DefaultSoapUICore] Importing preferences from [/Users/me/soapui-settings.xml]
16:16:28,897 INFO [HttpClientSupport$Helper] Updating keyStore..
... Same exception as above couple more times.....
16:16:32,322 INFO [GroovyComponentClassLoader] Loading dependency: net.sf.opencsv:opencsv
16:16:32,464 INFO [CommandRunner] Connectiong to agents...
16:16:32,978 INFO [CommandRunner]
------------------------------------
RUNNING TEST
TARGET WSSLoadTest
LIMITS Time: 00:00:10 Samples: - Failures: -
------------------------------------
16:16:32,980 INFO [CommandRunner] Time: 00:00:00 Samples: 0 Failures: 0
then start running queries sometimes
So yes, I need help

Thanks,
Nick