News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Håvard Eide's Blog:
ChaosMonkey
September 19, 2011 @ 09:11:26

Håvard Eide has a new post sharing a tool he's created (based on some ideas presented in this netflix blog post) for testing a web service. Specifically, his tool helps you test a web service developed with the Slim framework.

I just pushed a example on how to create a Slim framework to github. The idea is that whenever you create a webservice with the Slim framework (which is really simple) you rarely test for failure, the ChaosMonkey class will help you to do just that. When initialized with the AbsoluteChaos plugin it will randomly kill the webservice with exceptions, garbage to the output, or just run the service for you without failure at all.

His plugin does a lot of things right now, but it's easy to extend with your own failure types - like his suggested "networkSleep" or something that could kill the connection to MySQL. He includes a code snippet in the post of how to hook Slim and ChaosMonkey together for some testing fun.

0 comments voice your opinion now!
chaosmonkey library webservice slim framework testing failure


blog comments powered by Disqus

Similar Posts

Zumba Tech Blog: Caching CakePHP 2.x routes

Thomas Weinert: Basics: Using Arduino From PHP

NETTUTS.com: 9 Extremely Useful and Free PHP Libraries

Matthias Noback: Symfony2: How to create framework independent controllers?

Matt Curry's Blog: Free CakePHP E-Book - Super Awesome Advanced CakePHP Tips


Community Events

Don't see your event here?
Let us know!


library series release introduction security laravel5 framework version opinion language example voicesoftheelephpant php7 community podcast list extension api laravel interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework