Announcement Announcement Module
No announcement yet.
RESTful API Testing (Black Box) Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • RESTful API Testing (Black Box)


    I have been researching around for different testing frameworks to allow for integration level tests of a RESTful service during our CI process. Pluses to frameworks that can take API definitions (WSDL / WADL / other) and can do boundary testing.

    Thanks for any suggestions you can provide. Please include key points that make the framework your preferred choice.

  • #2
    I use TestNG and RestTemplate for Restful services and although I've never had to implement a soap service I suspect TestNG with WebServiceTemplate would work as well.

    TestNG integrates really well with Spring.

    For Example( Right out of my current project):

    @ContextConfiguration(locations = {"classpath:/merchant-manager-context.xml","classpath:/merchant-manager-context-test.xml"})
    public class ProductDaoIT extends AbstractTransactionalTestNGSpringContextTests {
    That gives you the ability to load your spring configurations and use them in your tests. The test above is an integration test that is only testing two parts of my layered architecture namely: the service layer and the dao layer. However your functional test would likely need to make use of datasources and other things which could be in your spring test xml file like my merchant-manager-context-test.xml.

    I realize this isn't very detailed....but hopefully helps a little.