Sign inSign up

ddavison/soapui

By ddavison

Updated almost 5 years ago

Run SoapUI Tests through a Docker container

Image
16

500K+

ddavison/soapui repository overview

Docker SoapUI

Docker container that houses a configurable version of SoapUI and runs test suites / cases

How to Use

Run the container

$ docker run -d -p 3000:3000 ddavison/soapui

Run tests

With this container running, you can now fire off SoapUI tests by sending the SoapUI project file forwards the 3000 port to the container.

$ curl --form "project=@/path/to/soapui-project.xml" \
       http://localhost:3000

Optionally, you can specify the test suite, send a global properties configuration file and send testrunner options.

$ curl --form "project=@/path/to/soapui-project.xml" \
       --form "suite=TestSuite" \
       --form "[email protected]" \
       --form "option=-r" \
       http://localhost:3000

Develop/Test

I use Vagrant to mimic the environment of Docker.

$ vagrant up
$ vagrant ssh
# sudo -i
# cd /vagrant
# ./server.py

Continuous Integration / Response Codes

After the tests are ran, you will receive the stdout and stderr from the SoapUI test runner, as well as an HTTP status code to determine the result of the test run.

Response Codes

CodeMessageDescription
200OKAll SoapUI Tests ran successfully and passed
550Test Failure(s)You have failures in the SoapUI Test suite / cases. You can check the content of the request to determine what failed
552No SoapUI ProjectYou did not specify the project POST parameter with the proper SoapUI XML data. Remember: This needs to be the actual file itself sent as multipart/form-data. E.g: curl -F "[email protected]"
500Internal Server ErrorAn exception occured while running the SoapUI Tests

Tag summary

Content type

Image

Digest

Size

280.4 MB

Last updated

about 8 years ago

docker pull ddavison/soapui