This project involves testing the OMDb API, which is a RESTful web service that provides movie information. The goal is to practice and develop skills in API automation testing, implementing positive and negative tests to ensure robust API behavior and error handling. I also utilized Postman for exploratory testing. An HTML report is generated, which includes a summary of the test results.
- Python
- Requests
- pytest
- Have Python 3.x installed on your system
- Get a free API key at https://www.omdbapi.com/apikey.aspx
- Create a virtual environment
python3 -m venv venv
- Activate the virtual environment
- On Windows
venv\Scripts\activate
- On Mac/Linux
source venv/bin/activate
- On Windows
- Clone the repository
git clone https://github.com/Brian1226/OMDb-API-testing.git
- Install the required dependencies
pip3 install -r requirements.txt
- Create a
.env
file in the root directory and enter the base API URL and your API keyBASE_URL = https://www.omdbapi.com/ API_KEY = your_api_key_here
- Run the tests and generate a report
python3 -m pytest --html=reports/report.html --self-contained-html