TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is there a way to programmatically test an API?

1 pointsby redlionover 4 years ago
I am trying to build a test suite for a REST API that is transitioning to GRPC. I am wondering if, with the OPEN API spec, there is a way to programmatically test the API. Any services or libraries are welcome. Currently we are writing test cases with PyTest, which is calling the REST API. Thanks!

2 comments

barumiover 4 years ago
It really depends on what are your expectations regarding &quot;programmatically test an API&quot;.<p>Integration tests and contract tests and canary tests are widely established practices within the testing community. However, they are done with testing frameworks because, as there is no standard way of implenting an API, there is no standard way of testing non-standard APIs. Consequently all tests are custom, and that&#x27;s what testing frameworks are for.
recrudesceover 4 years ago
<a href="https:&#x2F;&#x2F;www.postman.com&#x2F;use-cases&#x2F;api-testing-automation&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.postman.com&#x2F;use-cases&#x2F;api-testing-automation&#x2F;</a>