15 / 65 · 14 API Testing Fundamentals · Newman and pytest for API Automation← prev⊞ allnext →☰ Read as one page
2.6Practical Exercise
- Create a pytest project with conftest.py containing base_url, auth, and API session fixtures
- Write CRUD tests for a resource (create, read, update, delete)
- Add parametrized validation tests for at least one endpoint
- Add a factory fixture that creates test data and cleans it up after the test
- Run the suite against a local or public API