Doorgaan naar hoofdcontent

Posts

Er worden posts getoond met het label test

WSO2 ESB - Design for testability

Introduction Testability is one of the underestimated qualities of software. This is also the case for WSO2 ESB projects. However it is important to design the integrations for testability and this starts with the way you setup the proxies. This blog gives some guidelines which you can use to design for testability. Sequences Sequences are a way in WSO2 to group Mediators. A proxy has by default an in-Sequence, out-sequence and optionally an error-sequence. These sequences can be split up in sub-sequences and this is a good way for reuse, but also a way to split up the design. A proxy usually contains the following functional parts: Validation Transformation Sending to an endpoint   These parts can be put in separate sequences. This has the advantage that the part scan be reused in other proxies. This is also the way to enable testing for these parts.  Design for testability The sequences are the basis for the testability of WSO2 ESB pr...

Write good unit tests

It is not enough for today’s software developers to know their programming language well. There are further skills, that more and more companies are expecting from there employees. One of the most important is  Test Driven Development  (TDD). This is not an introduction to TDD. If you want to learn it, I recommend  Uncle Bob’s  awesome  Clean Code Videos  (Episode 6 - TDD) or simply  ask Google  for it. But many developers are writing bad code and applying TDD does not make them writing good code. Instead it makes them also writing bad tests. So this is about writing better test code. Applying simple rules To understand why test code can be bad, you should understand, what it should do. It should work as the parachute, that keeps you alive, when refactoring your code. Tests may help you to be sure nothing breaks, when adding new features to your code. But tests may also work as sample code, that documents your APIs better than any other doc...

WebService Testing

When I wanted to test a WSDL I looked accross the internet for a free test tool and found a great tool: soapUI . With this tool you are able to: Test operations Set assertions on it Create test suites Create mocks Test REST, SOAP and HTTP interfaces Load testing