This soapuiExtensions library allows users to have some additional functionality in soapUI(free edition) tool, like soapui pro allows to do something before, after doing something.
For eg: User may want to do something before running a test case or after running a test case etc by implementing appropriate groovy script as required. Allow me to add an example here. Usually user may want to add credentials for the request step automatically, see the script samples/scripts/TestSuiteTestStepAdded.groovy
set SOAPUI_HOME environment variable.
- copy lib/SoapUIExtListeners.jar file under $SOAPUI_HOME/bin/ext directory
- copy samples/listeners/custom-listeners.xml file under $SOAPUI_HOME/bin/listeners directory
- copy samples/scripts directory under $SOAPUI_HOME
- And implement appropriate groovy script available under $SOAPUI_HOME/scripts. Refer Mappings file in order to implement respective groovy script. This mapping file is used internally, it is given here for user reference, so that he can implement his respective script with the right groovy file name.
Note: for windows users, you may need to check %SOAPUI_HOME%\bin\soapui.bat which actually overwrites SOAPUI_HOME, need to fix soapui.bat script if requires.
If you donot wish to make any changes to %SOAPUI_HOME%\bin\soapui.bat file on windows, then you want to copy that groovy file under %SOAPUI_HOME%\bin\scripts instead of %SOAPUI_HOME%\scripts and retry. If your machine is linux then it should work if you copy under $SOAPUI_HOME/scripts directory as mentioned above.
uses jdk 7, soapUI 4.5.1, and groovy 1.8.9
Dependency
- log4j