Sobes.tech
Junior

Is it easier to store and use data in Postman or through an API?

sobes.tech AI

Answer from AI

It depends on what is meant by "API". If it's about a tool for testing APIs (for example, a Python framework with the requests library), then:

Postman:

  • Storage: Convenient for storing requests, collections, environment variables, test scripts. The built-in GUI simplifies organization.
  • Usage: Easy to manually execute requests, visually evaluate responses, create and run basic test scenarios. Suitable for exploring APIs and manual testing.

Test framework (via code):

  • Storage: Data (URLs, headers, request bodies, expected results) are stored in code (variables, data structures, files). Requires more structured and thoughtful architecture.
  • Usage: Ideal for automation. Allows creating complex test scenarios, using loops, conditions, integrating with other systems (CI/CD, reports). Provides high flexibility and reusability of code.

Conclusion:

  • Postman: Easier for storage and use in manual testing, API exploration and simple automated scripts.
  • Test framework (via code): Easier for storage and use in automated testing at scale, creating complex and maintainable tests.

Storing data in Postman may be less convenient for version control and collaboration compared to code in a version control system. Using data in code offers more programming flexibility.