Skip to content

A test automation to implement a series of actions using the mock API API to read, create, update, and delete a post, while also verifying the integrity of the operations.

Notifications You must be signed in to change notification settings

ekeminiudoh/API-TEST--PLAYWRIGHT

Repository files navigation

Automated API tests

This repository contains automated API tests for the provided task.

Pre-requisites

  • Node.js 16+

Running tests locally

Clone this repository

git clone [email protected]:ekeminiudoh/API-TEST--PLAYWRIGHT.git

navigate to the project directory

cd API-TEST--PLAYWRIGHT

Install dependencies

npm install

Run test

To run the tests, run the following command. This command will run the tests, generate a report and open it on the browser.

npx playwright test

Generate report

I used the default playwright reporting to generate a report after running the tests. To generate the report, run the following command after running the tests.

npx playwright show-report

The report will be saved in the /playwright-report directory.

Running tests in Github CI/CD

The CI/CD pipeline is configured in the .github/workflows/playwright.yml file to run the automated test on GitHub using the playwright Docker container runner.

To run the tests in GitHub CI/CD, push the code to the repository and the pipeline will be triggered automatically.

Authors

👤 Name Github GitLab LinkedIn
Ekemini Udoh @ekeminiudoh @ekeminiudoh @EkeminiUdoh

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

About

A test automation to implement a series of actions using the mock API API to read, create, update, and delete a post, while also verifying the integrity of the operations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published