Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

I use SoapUI (on my Mac) quite often because I develop, update and enhance a number of custom built web services. Most of these are SOAP based and sometimes I need to run small load tests to simulate concurrent requests and other circumstances that single requests aren't adequate enough to test. Sometimes, I also need the ability to capture responses from each of the web service calls during a load test - unfortunately the load test runner doesn't have an easy way of doing this. But there is a way!

The trick is to set the 'Dump File' property on the test step that you're interested in (TestSuite > TestCase > Test Steps). I set it to something like /tmp/soapui.txt. What this will do is let SoapUI save each of the responses into this file.

The only issue is, each time a response is received, it overwrites the file. However using the tee command in conjunction with tail solves that issue. Open the Terminal.app and first make sure this file exists before running your load test (touch /tmpt/soapui.txt). Then you can use the following command to capture all the output...
tail -f /tmp/soapui.txt | tee /tmp/loadtest_responses.txt

The concatenated responses from all of the web service calls will be stored in the /tmp/loadtest_responses.txt file.


Skip down to comments...
Hope you found this post useful...

...so please read on! I love writing articles that provide beneficial information, tips and examples to my readers. All information on my blog is provided free of charge and I encourage you to share it as you wish. There is a small favour I ask in return however - engage in comments below, provide feedback, and if you see mistakes let me know.

If you want to show additional support and help me pay for web hosting and domain name registration, donations, no matter how small, are always welcome!

Use of any information contained in this blog post/article is subject to this disclaimer.
comments powered by Disqus
Other posts you may like...