Skip to content

web test using selenium and pytest to performe some validations

License

Notifications You must be signed in to change notification settings

sschuckk/selenium-webtest-booking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Selenium Webtest Booking.com


Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License

About The Project

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.

Product presentation

Built With

Python Selenium Pytest

(back to top)

Getting Started

Prerequisites

Installation

  1. Clone the repo.
    git clone https://github.com/sschuckk/selenium-webtest-booking.git
  2. Install the packages according to the configuration file requirements.txt.
    pip install -r requirements.txt
  3. Verify your Chrome browser version, in the search bar.
    chrome://version/
  4. Ensure that the ChromeDriver version on the folder 'drivers' match your browser version. Download the chromedriver here: https://chromedriver.chromium.org/downloads

(back to top)

Usage

The project can be run by a terminal or directly in your favorite IDE. In your terminal go to the tests pages e run:

  1. For a simples execution:
    pytest -v
  2. To genarate a report page:
    pytest -v --html=report.html

Example of an execution by windows CMD: Product presentation

(back to top)

Roadmap

  • Extend browser support
  • Add datasets from excel
  • Improve style of HTML report

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/NewFeature)
  3. Commit your Changes (git commit -m 'Add some new feature')
  4. Push to the Branch (git push origin feature/NewFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. It’s free, no legal restrictions, why not try it out?

(back to top)

About

web test using selenium and pytest to performe some validations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published