This project is designed to automate the testing of the TerminalX web application using Selenium and Pytest. The tests cover various functionalities such as login, search results, and product details.
web_pages/: Contains page object models for different pages of the TerminalX website.tests/: Contains test cases and utility functions.framework/: Contains framework utilities like browser management, reporting, and logging.config/: Contains configuration files.
- Python 3.x
- Pip (Python package installer)
-
Clone the repository:
git clone <repository_url> cd <repository_directory>
-
Install the required packages:
pip install -r requirements.txt
Update the config/config.json file with the appropriate settings for your environment.
-
To run the tests, use the following command:
pytest --browser_type=chrome
-
To generate an Allure report cd to the test directory and use the following command:
allure serve allure-results
- The tests use the Allure framework for reporting.
- The
tests/conftest.pyfile contains fixtures for setting up the test environment. - The
tests/utils.pyfile contains utility functions used in the tests.
This project is licensed under the MIT License.