Skip to content

Tests for Api Automation#1

Open
seshasai33 wants to merge 2 commits into
automationExamples:mainfrom
seshasai33:main
Open

Tests for Api Automation#1
seshasai33 wants to merge 2 commits into
automationExamples:mainfrom
seshasai33:main

Conversation

@seshasai33
Copy link
Copy Markdown

@seshasai33 seshasai33 commented Jan 21, 2024

Added and updated the test as mentioned in TODOs
Found following bugs for few endpoints -

  1. For post request {pets/} if we have invalid values of string int type then api gives 500 instead of handling bad request or 400 status code
    2.For post request {pets/}if we have invalid body (missing or extra) then api gives 500 (reached to server) instead of handling bad request

  2. For Store post request handling
    console output
    report
    for exceptions of invalid payload is missing and all invalid request reached to the backend with 500 status code

Maksimovprojects added a commit to Maksimovprojects/pytest-api-example that referenced this pull request Feb 5, 2026
- Fixed Bug automationExamples#1: schemas.py - changed pet name type from integer to string
- Fixed Bug automationExamples#2: app.py - added f-string for invalid status error message
- Fixed Bug automationExamples#3: app.py - changed initial pet IDs from 0,1,2 to 1,2,3
- Added Bug automationExamples#4: Marked enum validation test as xfail (known bug)
- Completed test_pet.py: Added parameterized tests for 404 and invalid IDs
- Completed test_store.py: Added PATCH test with fixture and schema validation
- Added Order schema to schemas.py
- Organized tests into classes for better structure
- Added comprehensive edge case testing
adodson9999 added a commit to adodson9999/pytest-api-example_SDET that referenced this pull request Feb 14, 2026
…-pipeline

Add comprehensive CI/CD pipeline with GitHub Actions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant