This repository contains the automated API testing framework for creating participants in OpenSpecimen. It supports reading test cases from Google Sheets or CSV files, performs deep field validation, and generates a detailed HTML test report.
Clone the framework to your local machine:
git clone git@github.com:rohitrc01/Pytest_Framework.git
cd Pytest_FrameworkCreate a virtual environment and install the required dependencies:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt- Copy the provided sample environment file:
cp .env.example .env
- Open the new
.envfile and securely add the role passwords/usernames.
Execute the test script to run all test cases and generate the built-in HTML report:
pytest main.py -v Results will be saved in report.html and a timestamped CSV file (e.g., output_results_YYYYMMDD.csv).