This conteiner runs a Soapui 5.5. Can be used to run functional or load tests. The advantage is:
In my case, I use it to run remotely on my jenkins conteiner: functional tests and load tests written in SOAPUI
docker pull linhares/soapui-docker:5.5.0-1.0.0Environment
LOG_LEVEL - sets the log level on soapui log4 - Eg:
-e "LOG_LEVEL=ERROR" XMX - sets the max memory for Java - Eg:
-e "XMX=4000m"COMMAND - this env parameter just tells conteiner what command it will run - Eg:
-e "COMMAND=loadtestrunner.sh"Command of the Conteiner Here you pass the soapui parameters just like calling it via command line. Follow examples bellow
All examples assume:
Just replace for your own names on the examples.
call simple test
docker run --rm -it -v "$PWD":/project linhares/soapui-docker:5.5.0-1.0.0 /project/Barramento-API-V3-soapui-project.xmlcall simple test but specifying suite and testcase to run
docker run --rm -it -v "$PWD":/project linhares/soapui-docker:5.5.0-1.0.0 -sSuiteTestes1 -cTestCase-EnvioRecebimento-MultiAnexos /project/Barramento-API-V3-soapui-project.xmlcall load test
docker run --rm -it -e "LOG_LEVEL=ERROR" -e "XMX=4000m" -e "COMMAND=loadtestrunner.sh" -v "$PWD":/project linhares/soapui-docker:5.5.0-1.0.0 /project/Barramento-API-V3-soapui-project.xml
Pay attention to the env parameters: COMMAND, XMX and LOG_LEVEL
call specific load test saving the results to a dir with others parameters
docker run --rm -it -e "TZ=America/Sao_Paulo" -e "XMX=4000m" -e "COMMAND=loadtestrunner.sh" -v "$PWD":/project linhares/soapui-docker:5.5.0-1.0.0 -sSuiteTestes1 -cTestCase-EnvioRecebimento-MultiAnexos -PQtdArquivosProcesso=2 -m5 -n2 -r -f/project/result -l"LoadTest 1" /project/Barramento-API-V3-soapui-project.xml
-m change how many iterations the load test will run
-n how many threads will be created in parallel
-r export statistics
-f output folder of the results
-l inform the specific Load Test in case you have many
etc. Here you can use all parameters of the soapui loadrunner
Initially the logs will show some error messages, just ignore then. Thats because the conteiner does not have a GUI. The tests will run at the end. Just follow the logs.
I used this image as a start point: https://hub.docker.com/r/ilyaavdeev/soapui-testrunner There it installs the SOAPUI 5.5. I just made some tweaks to run heavy load tests.
Content type
Image
Digest
Size
357.1 MB
Last updated
over 5 years ago
docker pull linhares/soapui-docker