Forum Discussion
qqdixf5_74186
Nimbostratus
Feb 13, 2008iRule testing
I am fairly new to the BigIP and iRule. I just wonder how everybody tests iRule. Is there something like a BigIP emulator so we can fully test an iRule before it is loaded to the LTM?
Thank...
Jesse_Mauntel_4
Nimbostratus
Feb 22, 2014Not sure if it's what you are looking for, but I wrote an iRule testing framework that supports TDD. Check it out and let me know what you think.
https://devcentral.f5.com/questions/built-an-f5-ltm-irule-testing-framework
- Stefan_Magnus_LFeb 24, 2014
Nimbostratus
I actually thought about implementing a framework similar to yours before wtiting TesTcl. It's an interesting approach, but as long as there are side effects that can not be extracted from the response (lets say cache::enable, or simulating that pool members are down), one cannot assert the correct stuff is happening. TesTcl lets you test pretty much anything - however, it doesn't do integration testing at all right now, just unit testing. It would be kinda cool to take TesTcl tests and convert them into HTTP-style requests with assertions (basically same approach as yours). One could use a switch of some kind in order to switch between modes. Have you looked at my project over at http://testcl.com ?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects