Contributions
Re: [Resolved] groovy question - escaping $ in string
figure out it. Seems like using expand was causing an issue. This works fine now String xml_definition_data_raw = testRunner.testCase.getTestStepByName("xml_data").getPropertyValue("xml_definition_data_raw").replaceAll('\\$', '')10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Comments[Resolved] groovy question - escaping $ in string
Hello, I have a property step, which has the following key-value pair (key) xml (value) PYTEST_ARGS="--junitxml=test-result.xml ${bamboo.global_pytest_args} --browser=${bamboo.browser} -k '${bamboo.global_pytest_key_words}' bubbles/eventtypes" I have a groovy step that just prints out the key value def xml = context.expand( '${xml_data#xml_definition_data_raw}' ) log.info(xml) This prints PYTEST_ARGS="--junitxml=test-result.xml --browser= -k '' bubbles/eventtypes" Seems like the groovy step starts evaluation the ${...} expressions in the text. I am trying to strip out the '$' from the string but the string is already changed by the time I expand it. Is there a way to reference and print the literal key value ? Thanks Ali10 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes2CommentsRe: [Reg]soapui doesn't load plugins when running testrunner.bat
Hi Prakash, I made the changes as you suggested, but I don't see the plugins folder being loaded. Here is my testrunner.bat @echo off set SOAPUI_HOME=%~dp0 cd %SOAPUI_HOME% if exist "%SOAPUI_HOME%..\jre\bin" goto SET_BUNDLED_JAVA if exist "%JAVA_HOME%" goto SET_SYSTEM_JAVA echo JAVA_HOME is not set, unexpected results may occur. echo Set JAVA_HOME to the directory of your local JDK to avoid this message. goto SET_SYSTEM_JAVA :SET_BUNDLED_JAVA set JAVA=%SOAPUI_HOME%..\jre\bin\java goto END_SETTING_JAVA :SET_SYSTEM_JAVA set JAVA=java :END_SETTING_JAVA rem init classpath set CLASSPATH=%SOAPUI_HOME%soapui-pro-4.6.3.jar;%SOAPUI_HOME%..\lib\*; rem JVM parameters, modify as appropriate set JAVA_OPTS=-Xms128m -Xmx1024m -Dsoapui.properties=soapui.properties -Dgroovy.source.encoding=iso-8859-1 "-Dsoapui.home=%SOAPUI_HOME%\" if "%SOAPUI_HOME%\" == "" goto START set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.libraries="%SOAPUI_HOME%ext" set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.listeners="%SOAPUI_HOME%listeners" set JAVA_OPTS=%JAVA_OPTS% -Dsoapui.ext.actions="%SOAPUI_HOME%actions" :START rem ********* run soapui testcase runner *********** "%JAVA%" %JAVA_OPTS% -cp "%CLASSPATH%" com.eviware.soapui.SoapUIProTestCaseRunner %* output from testrunner.bat. Notice that the plugin is not loaded 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 08:24:57,032 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\commons-codec-1.3.jar] to extensions classpath 08:24:57,033 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\mongo-2.6.5.jar] to extensions classpath 08:24:57,033 INFO [SoapUI] Adding [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ext\Padlock-1.2.jar] to extensions classpath 08:24:57,342 INFO [DefaultSoapUICore] initialized soapui-settings from [C:\Users\araza\soapui-settings.xml] 08:24:57,612 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Users\araza\Desktop\verizon training\groovy] 08:24:57,614 INFO [DefaultSoapUICore] Adding listeners from [D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\listeners\demo-listeners.xml] 08:24:58,430 INFO [WsdlProject] Loaded project from [file:/C:/Users/araza/soapUI-Tutorials/sample-soapui-project.xml] 08:24:58,890 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Users\araza\Desktop\verizon training\groovy] 08:24:59,561 INFO [log] D:\soapUI-Test\SoapUI-Pro-4.6.3\bin\ 08:24:59,573 INFO [SoapUIProTestCaseRunner] Running SoapUI tests in project [Sample Project] ...11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes0Comments[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) 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 Ali11 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.9KViews0likes3CommentsReorder REST resources
Hello, Like many companies, we don't publish WADL for our REST APIs. As such, creating the REST interface is done by hand as the API are developed. This ends up making the resources in the REST interface sorted based on the date it was added. After a few iterations, following the REST interface becomes quite hard because resources that should be next to each other are now all over the place. Please allow drag and drop re-order feature for 1. moving resources up and down within a REST interface 2. moving child resources up and down within a REST resource Thanks Ali11 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.7KViews0likes1CommentsoapUI 4.6.2 OSX property expansions seems unstable
Hello, I am using 4.6.2 on OSX and I find that the property expansions feature is very unstable. I am not able to consistently reproduce this but see it quite often. Here is when I typically see the issue I have a very simple test case with a grid data source followed by a REST test step. I use the form editor in the REST step and use the 'get data in' wizard to specify the data source. This results in some automatically generated property expansion in the REST field ${datasource#foo}. Sometimes if I switch to outline view, it does not show this ${datasource#foo}. closing windows or switching back and forth seems to resolve this. would it help if I create a small video and send with this bug report? Thanks Ali11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1CommentUX Improvement: drag and drop support for REST operations
Hello, If you are using SOAP web services, you can drag and drop methods from the interface to the test case editor. This is very cool and very useful when trying to create some complicated transaction. This feature is not supported for REST interface. Please add this in the next release. Thanks Ali11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.8KViews0likes1CommentUX Improvement: auth password mask for property expansion
Hello, Our REST services test step need to specify the 'auth' username and password. We have the username and password defined in the project properties and would like to use these as property expansion variables in the auth username and password fields. This works fine but the soapUI UX masks ${#Project#my_password} as ***********. So it become impossible to figure out if there is a hard coded value there or if there is a property expansion. My suggestion is that if the value being with "${" soapUI should not mask the value and show ${#Project#my_password} Would it be great if this small fix can make it into some nightly release Thanks Ali11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.6KViews0likes1Comment- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes0Comments