WASTE – Testing our backend with just Bash and Wget

The SaludOnNet platform manages health-insurance related electronic transactions via Internet, during peak hours, the transaction rate raises considerably so the system must be prepared to withstand a high transaction rate without any delay.

We were making important changes to the code and we needed to stress test our JSON-RPC backend in a flexible manner. When we started testing it we used GNU wget with a series of bash scripts to launch tests in parallel from the Linux console. Then we added the possibility to test the answer for a specific string or matching pattern, etc.

Putting that all together we came up with WASTE (Wget based Automatic Stress TEsting tool), a small console tool that allowed us to run the tests we needed. We published it on Github (https://github.com/istepaniuk/waste) Together with a small usage documentation for anyone who may find our scripts useful.


istepaniuk

About Iván Stepaniuk

I have been creating software for more than twenty years in a wide variety of stacks, languages and platforms. I advocate Software Craftsmanship and the Agile Manifesto, this has been a great motivation and helps me to continuously reinvent myself as a better developer that makes better quality software.

See my about page


©2014 Iván Stepaniuk. Licensed under CC-BY-SA
Site powered by Jekyll and the Noita theme, built with Foundation
RSS Feed