/soapy

A Groovy SoapUI helper library

Primary LanguageGroovy

Soapy using Groovy and Pico

Soapy is a utility library for SoapUI.

Installation notes

SoapUI free

  • build the jar
  • copy the jar from jar folder to soapui_folder/bin/ext

SoapUI Pro

If you don't plan to add / modify scripts, then follow the same instructions as for SoapUI Free.

In case you'd like to fiddle with the code, go to:

  • Preferences
  • SoapUI Pro
  • in 'Script Library' point at: soapy_folder/src/main/groovy folder
  • copy all the jars from the soapy_folder/lib to soapui_pro_dir/bin/ext
  • restart SoapUI Pro
  • check in soapUI log tab that all the jars were added to classpath and script library points at the right directory

Build soapy from sources

Before you start make sure you've added xeger lib to your local Maven repo. To godo it follow these instructions.

Then to build the jar and run all the tests:

mvn install

or

mvn clean install

ps. At the moment this project has just few unit tests written in a BDD manner. We're using JBehave to run all the stories. You can find story files in:

    soapy/src/main/resources/com/yelllabs/stories

All the tests are executed automaticall during the build. In case you'd like to run them selectively use:

mvn install -DstoryFilter=i_can_parse_json_array
mvn install -DstoryFilter=i_can_parse_json_value

Generate documentation

This project comes with JavaDoc style documentation available in the doc folder. If you'd like to build docs after changing something, simply run:

mvn package -P groovy-docs

Newly generated docs should be available in docs folder.

Add Xeger lib to local Maven repo

Unfortunately, to my knowledge, Xeger is not available (yet) on any public Maven repo. That's why we need to install it manually to our local repo to avoid using system scope dependencies in you pom. More info at: stackoverflow

To install it:

mvn install:install-file -Dfile=libs/xeger-1.0-SNAPSHOT.jar -DgroupId=nl.flotsam -DartifactId=xeger -Dversion=1.0-SNAPSHOT -Dpackaging=jar