This project contains a suite of automated tests for the API endpoints of https://apichallenges.herokuapp.com/. The tests are written in JavaScript using the Playwright framework.
tests/test.spec.js
: Contains the API tests for various endpoints.README.md
: Project documentation.
To get started with the project, follow the steps below:
- Clone the repository:
git clone <repository-url>
- Navigate to the project directory:
cd <project-directory>
- Install the dependencies:
npm i
To run the tests, use the following command:
npm run api
After running the tests, a test report will be generated in the .allure-result
directory. To view the report, use the following command:
npm run allure
Due to limitations in Playwright, it is not possible to execute tests numbered 24 and 43. This is because Playwright's request
API does not currently support the OPTIONS
and TRACE
methods, which are required for these tests.
Below is a placeholder for screenshots related to the test results: