Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/turn-databases-into-apis-for-data-driven-testing.md

CI/CD

Turn Databases Into APIs for Data-Driven Testing

Use dynamic data rather than fixed or pre-built data to leverage a better breed of Data-driven Testing (DDT) that can validate full API consumer flows. The most effective method of testing an API program involves creating multi-step integration tests that validate common API consumer flows.

dzone.com24 Jun 2020 · summary

article --summary

The summary

by API endpoints are meant to work together, so it follows that test data coming from one API that feeds another API should not be fixed or pre-built. Only by accounting for the price of every added item can you tell whether the shopping cart "Total" is correct. This becomes very handy when the correctness of an API result cannot be determined by calling another API to compare, or by applying straightforward reverse engineering. Once you understand the mechanics you can configure the module to connect to your JDBC databases by modifying the flow YAML.

Editorial note: This is a summary of an article first published by dzone.com. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.