This project automates API testing for the Contact List App .
- api/: Contains files for each page of the web application, with methods representing user actions (e.g., filling forms, clicking buttons, verifying elements).
- tests/: Contains test files for each page, validating the logic and interactions defined in the corresponding page files.
- Python
- Selenium WebDriver
- pytest for running tests and generating reports
-
Clone the repository:
git clone https://github.com/AlesiaLu/ContactListApp_API.git
-
Install dependencies: Ensure you have Python and pip installed. Then, install the required packages:
pip install -r requirements.txt
-
Run the tests: Execute all tests using pytest:
pytest
-
Generate a test report: To create HTML-report с pytest-html, run:
pytest ./tests --html=report.html
To run a specific test, specify the test file path:
pytest tests/test_login.pyThis runs the test suite for the login, ensuring that functionalities like successful login and error messaging work as expected.