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.


 Content under Attribution-Share Alike 3.0 Unported

About Iván Stepaniuk

I have been writing software for more than fifteen years, in a wide variety of languages and platforms ranging from Assembler to JavaScript and from 8bit micro-controllers to large web applications. See my about page and Google+
This entry was posted in Testing and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" cssfile="">