#api-testing
7 articles tagged with #api-testing
Contract testing use cases and best practices - Part 4
Real-world use cases of contract testing, when to move to consumer-driven contracts with Pact, and the best practices and pitfalls we follow.
How to write contract tests for a REST API with REST Assured? - Part 3
Define the contract of a REST API, express it as JSON schemas and write contract tests with REST Assured that catch breaking changes but allow additive ones.
How to write API tests with REST Assured? - Part 2
Write readable API tests with the Java library REST Assured: Maven and JUnit setup, Given/When/Then, status, header and body checks, extracting values and debugging.
What is contract testing and why do we need it? - Part 1
What an API contract is, why we need contract testing, how it fits with unit, integration and end-to-end tests, and provider-driven versus consumer-driven approaches.
How to automate API tests with Postman Scripts? - Part 2
Automate API tests with Postman scripts: prepare test cases and data, write tests for real examples and run them with the Collection Runner.
How to write Postman Scripts? - Part 1
The basics of Postman scripts: when pre-request and test scripts run, the execution order, the Postman Sandbox and how to write a first script.
Postman Environments
Postman environments let us keep one request template for local, dev, qa and production by moving host names and API keys into environment variables, instead of duplicating collections.