Contributions
How to get command line argument in Groovy
Hi, Is it any correct way to get in Groovy command line argument which is used for testrunner run. For instance, for testrunner we can pass Custom Args (at the end of command line) testrunner.bat soapui-project.xml MyCustomArg How we can get the MyCustomArg in Groovy? Or is there any way to add property on project level in runtime from command line? Thanks in advance. Sergey.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.7KViews0likes1CommentRe: [RES] Security tag by context.expand('${requestName#RawReq..
SmartBear Support wrote: please try the following instead: log.info context.requestContent after running the TestStep - does that work? Now it seems works properly! Remove please this issue from "bugs" board. Lot of thanks!12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0CommentsRe: [RES] Security tag by context.expand('${requestName#RawReq..
SmartBear Support wrote: please try log.info context.testCase.testSteps["Subscribe"].testRequest.response.requestContent Does that work ok? No, it doesn't work. Script result is absolutely same and there are no Security element in header... Let me explain the issue in more details: Script result returns expected correct raw request with Security element in the case when OutgoingWss is applied in SoapUI XML editor tab from context menu. In other case, if we need to apply different OutgoingWss’s in run time (for example in groovy script) - script result will not return Security element in Header at all.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Comments[RES] Security tag by context.expand('${requestName#RawReq..
Hi, I have created a soap ui project in soap ui pro 4.5.0 with different OutgoingWss configurations. I need to apply each OutgoingWSS configuration to request using groovy script and after execution get this row request to observe Security element in Header (see screenshot in attach). In fact, request is executed with right apllied OutgoingWss: but context.expand('${requestName#RawRequest}') returns Header without Security element in it: Can you please resolve this issue? Thanks in advance.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes4CommentsPassword is in clear on Environment tab
Hi , SoapUI ver. 4.5.1 There is poject property with name db_password which is presen in some Environment "Test". This property 's valus is visible as clear text at the Project's Environment tab. Regards, Sergey12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes1CommentLoadTest Assertion using small Total Runs Limit
Hello, I am using SoapUI Pro 4.0.2 version. Load Test details: Threads:1 Strategy: Simple Test Delay : 0 Random : 0 Limit: 1 (Total Runs) Assertion details: LoadTest Assertion : Step maximum Minimum Requests : 1 Max Time : 50 Max Errors : -1 The thing is that "Step Maximum" assertion newer fails even if the maximum test step value exceeds 50ms. But when I change Test Runs Limit to 3 or above this assertion works as expected: it posts error to the LoadTest Log. Regards, Sergey.13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes0CommentsRe: Not able to generate PDF Report via command prompt in Pro
Resolved. I've changed -RMY_LOAD to -R"LoadTest Report" (according to the jasper report name stored in the soapui_folder\bin\reports\reports\loadtest\LoadTestReport-config.xml). cmd.exe /C loadtestrunner.bat -s"LOAD TESTS" -c"LOAD TEST 1" -l"SIMPLE STRATEGY TEST 1" -m10 -n1 -r -fD:\reports\MY_LOAD -o -R"LoadTest Report" -F PDF -F XLS -F HTML -F RTF -F CSV -F TXT -F XML D:\trunk\my-soapui-project\MY_LOAD-soapui-project.xml It works. Regards, Sergey13 years agoPlace ReadyAPI QuestionsReadyAPI Questions738Views0likes0CommentsRe: Not able to generate PDF Report via command prompt in Pro
Hello, I have the same problem using SoapUI Pro 4.0.2-SNAPSHOT (12/20/2010). The fact is that the only text case log and test case statiscitcs (both *.txt) were generated after the load test run. Here's the code: cmd.exe /C loadtestrunner.bat -s"LOAD TESTS" -c"LOAD TEST 1" -l"SIMPLE STRATEGY TEST 1" -m10 -n1 -r -fD:\reports\MY_LOAD -o -RMY_LOAD -F PDF -F XLS -F HTML -F RTF -F CSV -F TXT -F XML D:\trunk\my-soapui-project\MY_LOAD-soapui-project.xml There were no errors in the soapUI LoadTestRunner window. Regards, Sergey.13 years agoPlace ReadyAPI QuestionsReadyAPI Questions738Views0likes0CommentsRe: loadUI command line problems
I have very similar issue truing to run loadui tests on the agent. I've launched the agent on my local machine (the latest version - loadUI-Agent-1.5.1-SNAPSHOT). After that I've tried to run my tests on this agent: set dir="C:\Program Files (x86)\eviware\loadUI-1.5.1-SNAPSHOT\" call %dir%loadUI-cmd-sysjvm.bat -p "C:\Users\splevako\.loadui\NOTES_LOAD.xml" -t "Create 1 note" -a localhost -L 30:0:0 call %dir%loadUI-cmd-sysjvm.bat "C:\Users\splevako\.loadui\NOTES_LOAD.xml" -t "Create 1 note with attachment" -a localhost -L 30:0:0 The exception appears during execution: Launching loadUI Build: loadUI-2011-11-15-[1] 2011/11/15 03:04 ERROR: Bundle com.eviware.loadui.fx-interface [29] Error starting file:/C:/Progr am%20Files%20(x86)/eviware/loadUI-1.5.1-SNAPSHOT/bundle/loadui-fx-interface-1.5. 1-SNAPSHOT.jar (org.osgi.framework.BundleException: Unresolved constraint in bun dle com.eviware.loadui.fx-interface [29]: Unable to resolve 29.0: missing requir ement [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] pac kage; (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(Unknown Source) Configuring log4j from [C:\Program Files (x86)\eviware\loadUI-1.5.1-SNAPSHOT\soa pui-log4j.xml] 14:09:22,657 INFO [SoapUI] Adding [C:\Program Files (x86)\eviware\loadUI-1.5.1- SNAPSHOT\.\ext\sqljdbc.jar] to extensions classpath 14:09:22,828 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\User s\splevako\soapui-settings.xml] 14:09:23,204 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library t o [C:\SmartBear\soapUI-Pro-4.0.1\bin\scripts] 14:09:23,653 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include 14:09:23,705 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchem a 14:09:23,708 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace 14:09:23,709 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1 /xsd 14:09:23,711 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xml mime 14:09:23,713 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xml mime 14:09:23,717 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/s oap/envelope/ 14:09:23,725 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/s oap/encoding/ 14:09:23,728 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/ soap-envelope 14:09:23,735 INFO [SchemaUtils] Added default schema from /com/eviware/soapui/r esources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/ soap-encoding -> Framework started! 14:09:24,734 INFO [ComponentRegistryImpl] Registered Component Descriptor: soap UI Runner 14:09:24,735 INFO [ComponentRegistryImpl] Registered Component Descriptor: soap UI MockService 14:09:24,883 INFO [ComponentRegistryImpl] Registered Component Descriptor: Asse rtion 14:09:24,899 INFO [ComponentRegistryImpl] Registered Component Descriptor: Dela y 14:09:24,903 INFO [ComponentRegistryImpl] Registered Component Descriptor: Fixe d Load 14:09:24,916 INFO [ComponentRegistryImpl] Registered Component Descriptor: Fixe d Rate 14:09:24,919 INFO [ComponentRegistryImpl] Registered Component Descriptor: Inte rval 14:09:24,923 INFO [ComponentRegistryImpl] Registered Component Descriptor: Proc ess Runner 14:09:24,926 INFO [ComponentRegistryImpl] Registered Component Descriptor: Ramp 14:09:24,929 INFO [ComponentRegistryImpl] Registered Component Descriptor: Rand om 14:09:24,932 INFO [ComponentRegistryImpl] Registered Component Descriptor: Rate Adapter 14:09:24,936 INFO [ComponentRegistryImpl] Registered Component Descriptor: Sche duler 14:09:24,941 INFO [ComponentRegistryImpl] Registered Component Descriptor: Scri pt Runner 14:09:24,944 INFO [ComponentRegistryImpl] Registered Component Descriptor: Spli tter 14:09:24,948 INFO [ComponentRegistryImpl] Registered Component Descriptor: Stat istics 14:09:24,955 INFO [ComponentRegistryImpl] Registered Component Descriptor: Tabl e Log 14:09:24,958 INFO [ComponentRegistryImpl] Registered Component Descriptor: Vari ance 14:09:24,962 INFO [ComponentRegistryImpl] Registered Component Descriptor: Virt ual Users 14:09:24,967 INFO [ComponentRegistryImpl] Registered Component Descriptor: Web Page Runner 14:09:25,573 INFO [CommandRunner] ------------------------------------ INITIALIZING COMMAND LINE RUNNER ------------------------------------ 14:09:25,574 INFO [CommandRunner] Loading default Workspace 14:09:25,582 INFO [WorkspaceProviderImpl] Loading workspace from file: C:\Users \splevako\.loadui\workspace.xml 14:09:25,827 INFO [WorkspaceItemImpl] Workspace 'WorkspaceItemImpl[label=null]' loaded successfully 14:09:25,831 INFO [ExecutorManagerImpl] Global Threadpool max size set to 1000 14:09:25,831 INFO [ExecutorManagerImpl] Global Threadpool queue max size set to 10000 14:09:25,877 INFO [WorkspaceItemImpl] Saving Workspace to file: 'C:\Users\splev ako\.loadui\workspace.xml' 14:09:25,886 INFO [CommandRunner] Loading Project: C:\Users\splevako\.loadui\NO TES_LOAD.xml 14:09:26,124 INFO [SoapUIProjectLoader] Caching soapUI project at [D:\wst\DEV\t runk\Notes\notes_LOAD-soapui-project.xml] 14:09:26,205 INFO [WsdlProject] Loaded project from [file:/D:/wst/DEV/trunk/Not es/notes_LOAD-soapui-project.xml] 14:09:26,311 INFO [SoapUIProGroovyScriptEngineFactory] Setting Script Library t o [C:\SmartBear\soapUI-Pro-4.0.1\bin\scripts] 14:09:26,339 INFO [CajoServer] The cajo server is running on localhost:1199/loa duiIntegration 14:09:27,036 INFO [DefaultSoapUICore] Importing preferences from [C:\Users\sple vako\soapui-settings.xml] 14:09:27,039 INFO [HttpClientSupport$Helper] Updating keyStore.. 14:09:27,841 INFO [GroovyComponentClassLoader] Loading dependency: net.sf.openc sv:opencsv 14:09:28,922 INFO [DefaultSoapUICore] Importing preferences from [C:\Users\sple vako\soapui-settings.xml] 14:09:28,924 INFO [HttpClientSupport$Helper] Updating keyStore.. 14:09:29,823 INFO [WorkspaceItemImpl] Saving Workspace to file: 'C:\Users\splev ako\.loadui\workspace.xml' 14:09:29,855 INFO [CommandRunner] Connectiong to agents... 14:09:30,416 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.getGroovyObjectFiel d(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(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: 90) at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:75 3) at groovy.lang.MetaClassImpl$11.getProperty(MetaClassImpl.java:1773) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.get Property(GetEffectivePogoPropertySite.java:84) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjec tGetProperty(AbstractCallSite.java:231) at Script1$1.handleMessage(Script1.groovy:47) at com.eviware.loadui.util.messaging.MessageEndpointSupport$MessageListe nerProxy.handleMessage(MessageEndpointSupport.java:120) at com.eviware.loadui.util.messaging.ChannelRoutingSupport.fireMessage(C hannelRoutingSupport.java:75) at com.eviware.loadui.impl.messaging.BayeuxMessageEndpoint.onMessages(Ba yeuxMessageEndpoint.java:161) at org.cometd.client.BayeuxClient$PublishTransportListener.onMessages(Ba yeuxClient.java:722) at org.cometd.client.transport.LongPollingTransport$TransportExchange.on ResponseComplete(LongPollingTransport.java:252) at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(Htt pExchange.java:921) at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:264 ) at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpC onnection.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:26 3) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn dPoint.java:526) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd Point.java:41) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:528) at java.lang.Thread.run(Unknown Source) 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.getGroovyObjectFiel d(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(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java: 90) at groovy.lang.MetaClassImpl.invokeMissingProperty(MetaClassImpl.java:75 3) at groovy.lang.MetaClassImpl$11.getProperty(MetaClassImpl.java:1773) at org.codehaus.groovy.runtime.callsite.GetEffectivePogoPropertySite.cal lGroovyObjectGetProperty(GetEffectivePogoPropertySite.java:67) at Script1$1.handleMessage(Script1.groovy:47) at com.eviware.loadui.util.messaging.MessageEndpointSupport$MessageListe nerProxy.handleMessage(MessageEndpointSupport.java:120) at com.eviware.loadui.util.messaging.ChannelRoutingSupport.fireMessage(C hannelRoutingSupport.java:75) at com.eviware.loadui.impl.messaging.BayeuxMessageEndpoint.onMessages(Ba yeuxMessageEndpoint.java:161) at org.cometd.client.BayeuxClient$PublishTransportListener.onMessages(Ba yeuxClient.java:722) at org.cometd.client.transport.LongPollingTransport$TransportExchange.on ResponseComplete(LongPollingTransport.java:252) at org.eclipse.jetty.client.HttpExchange$Listener.onResponseComplete(Htt pExchange.java:921) at org.eclipse.jetty.client.HttpExchange.setStatus(HttpExchange.java:264 ) at org.eclipse.jetty.client.HttpConnection$Handler.messageComplete(HttpC onnection.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:26 3) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn dPoint.java:526) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd Point.java:41) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool .java:528) at java.lang.Thread.run(Unknown Source) The tests work fine in the local mode. Thanks. Sergey.13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0Comments