This is a test automation project to test the manage vaccinations in schools (MAVIS) project. It contains several positive and negative functional as well as regression tests.
It is currently configured to run on the TEST environment. The project utilizes the PyTest framework along with Playwright to manage and execute the tests.
This test pack requires Python 3.10 installed on the system or greater to run.
To execute the tests from your system, please follow the 4 easy steps below:
-
Clone the repo to any local folder
git clone https://github.com/NHSDigital/manage-vaccinations-in-schools-testing.git
-
Create a virtual environment
python -m venv .venv
-
Install all dependencies
pip install -r requirements.txt
-
Create a .env file. Speak to a team member to get the contents of the .env file.
cp .env.generic .env
-
Finally, verify the setup by running a self-test
pytest -m smoke
Once the self test passes, you are good to go.
Tests for individual endpoints can be executed using individual markers. For example:
pytest -m regression