{"id":25735478,"url":"https://github.com/omarelsheikh1/petstore-e2e-tests","last_synced_at":"2026-06-18T07:31:35.029Z","repository":{"id":275358457,"uuid":"925849192","full_name":"OmarElsheikh1/petstore-e2e-tests","owner":"OmarElsheikh1","description":"This repository contains an end-to-end testing setup for the Pet Store API using Postman and Newman. It includes a Postman collection with 7 API requests for CRUD operations, environment configurations, and automated execution via Newman. Detailed HTML reports are also generated for better insights.","archived":false,"fork":false,"pushed_at":"2025-02-22T11:37:58.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T12:27:09.819Z","etag":null,"topics":["api-testing","e2e-tests","newman","petstore","postman"],"latest_commit_sha":null,"homepage":"https://petstore.swagger.io/#/pet","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OmarElsheikh1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-01T22:18:31.000Z","updated_at":"2025-02-22T11:38:01.000Z","dependencies_parsed_at":"2025-02-22T12:37:15.981Z","dependency_job_id":null,"html_url":"https://github.com/OmarElsheikh1/petstore-e2e-tests","commit_stats":null,"previous_names":["omarelsheikh1/pet-store_e2e-scenario","omarelsheikh1/petstore-e2e-tests"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarElsheikh1%2Fpetstore-e2e-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarElsheikh1%2Fpetstore-e2e-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarElsheikh1%2Fpetstore-e2e-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OmarElsheikh1%2Fpetstore-e2e-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OmarElsheikh1","download_url":"https://codeload.github.com/OmarElsheikh1/petstore-e2e-tests/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240796259,"owners_count":19858982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-testing","e2e-tests","newman","petstore","postman"],"created_at":"2025-02-26T05:23:02.578Z","updated_at":"2026-06-18T07:31:34.984Z","avatar_url":"https://github.com/OmarElsheikh1.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pet-Store_E2E-Scenario\nPet Store_E2E Scenario New Pet Registration,\nThis project involves using Postman to test the Pet Store API. I created a collection with seven API requests and ran them using Newman, a command-line collection runner for Postman. Below are the steps I followed to set up and execute the task.\n\n------\n\n## Setup Steps\n\n#### 1. **Create the Collection**\n\nI created a Postman collection named **Pet Store**, which includes seven requests:\n\n- **POST**: Add a new pet\n- **GET**: Get the pet by ID\n- **PUT**: Update an existing pet\n- **GET**: Get the pet by ID again\n- **DELETE**: Delete the pet by ID\n- **GET**: Assert the pet is deleted successfully\n- **GET**: Find pets by status\n\nHere’s a visual representation of the collection:\n\n\n\n\n\n------\n\n#### 2. **Install Node.js**\n\nNewman requires Node.js to run.\nDownload and install Node.js from [Node.js official website](https://nodejs.org/). NPM, which is included with Node.js, will be installed automatically.\n\n------\n\n#### 3. **Install Newman**\n\nRun the following command to install Newman globally on your device:\n\n```\nnpm install -g newman\n```\n\nVerify the installation by checking the Newman version:\n\n```\nnewman -v\n```\n\n------\n\n#### 4. **Run the Collection**\n\nI used the following command to run the collection and environment variables:\n\n```\nnewman run Nawy_collection.json -e Nawy_environment.json\n```\n\nThis executes the requests in the collection using the provided environment variables.\n\n------\n\n#### 5. **Generate an HTML Report**\n\nTo make the test results more presentable, I installed the `newman-reporter-htmlextra` package globally:\n\n```\nnpm install -g newman-reporter-htmlextra\n```\n\nThen, I ran the collection again with the `htmlextra` reporter to generate an HTML report:\n\n```\nnewman run Nawy_collection.json -e Nawy_environment.json -r htmlextra\n```\n\n------\n\n## Outputs\n\n- A summary of the collection's execution is displayed in the terminal.\n- An HTML report is generated, providing detailed results for each request in the collection.\n\n\n\n\n\n\n\n\n\n\n\n![screencapture-file-D-Omar-ITI-current-ITI-Jobs-Nawy-newman-Pet-Store-Nawy-Task-2025-02-01-22-14-22-028-0-html-2025-02-02-00_27_13](https://github.com/user-attachments/assets/60ca5f61-5a83-49ef-a6af-08b95d771c07)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarelsheikh1%2Fpetstore-e2e-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomarelsheikh1%2Fpetstore-e2e-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomarelsheikh1%2Fpetstore-e2e-tests/lists"}