Table of Contents
The project utilizes Selenium and Pytest to automate and conduct comprehensive web page testing, with end-2-end testing script. The website under test is the www.booking.com where you can search and filter for the hotels you want. You can use this project to test the website, as a bot to perform searches, or as example to learn about using selenium and pytest.
- Chrome: https://www.google.com/chrome/
- Python: https://www.python.org/downloads/
- Pip: https://pip.pypa.io/en/stable/installation/
- Git: https://git-scm.com/downloads
- Clone the repo.
git clone https://github.com/sschuckk/selenium-webtest-booking.git
- Install the packages according to the configuration file requirements.txt.
pip install -r requirements.txt
- Verify your Chrome browser version, in the search bar.
chrome://version/
- Ensure that the ChromeDriver version on the folder 'drivers' match your browser version. Download the chromedriver here: https://chromedriver.chromium.org/downloads
The project can be run by a terminal or directly in your favorite IDE. In your terminal go to the tests pages e run:
- For a simples execution:
pytest -v
- To genarate a report page:
pytest -v --html=report.html
Example of an execution by windows CMD:
- Extend browser support
- Add datasets from excel
- Improve style of HTML report
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some new feature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
Distributed under the MIT License. It’s free, no legal restrictions, why not try it out?