|
2 | 2 |
|
3 | 3 | This is my first test automation project based on Selenium-Webdriver with Python. It's still developing package of automated tests of https://phptravels.net demo website. |
4 | 4 | The collection of tests contains: |
5 | | -- user login tests |
| 5 | +- user login tests (correct / incorrect login and password) |
6 | 6 | - hotels search tests |
7 | 7 | - flights search tests |
8 | 8 | - tours search tests |
9 | 9 | - transfers search tests |
10 | 10 |
|
11 | | -In each of the tests the option of loading data from an xlsx file has been implemented. |
| 11 | +## Project Features |
| 12 | +- framework follows page object pattern |
| 13 | +- data-driven tests - in most tests the option of loading data from an xlsx file has been implemented |
| 14 | +- logger has been implemented in each step of test cases, e.g. |
| 15 | +``` |
| 16 | +@allure.step("Setting destination to '{1}'") |
| 17 | + def set_destination(self, destination): |
| 18 | + self.logger.info(f"Setting destination: {destination}") |
| 19 | + self.driver.find_element(*SearchHotelsFormLocators.destination_inactive).click() |
| 20 | +``` |
| 21 | +- the ability to easily generate legible and attractive test reports using Allure (for more look "Generate Test Report" paragraph below) |
| 22 | +- ... |
| 23 | + |
| 24 | + |
| 25 | +## Getting Started |
| 26 | + |
| 27 | +To enjoy the automated tests, develop the framework or adapt it to your own purposes, just download the project or clone repository. You need to install packages using pip according to requirements.txt file. |
| 28 | +Run the command below in terminal: |
| 29 | + |
| 30 | +``` |
| 31 | +$ pip install -r requirements.txt |
| 32 | +``` |
| 33 | + |
| 34 | +## Run Automated Tests |
| 35 | + |
| 36 | +TODO |
| 37 | + |
| 38 | +## Generate Test Report |
| 39 | + |
| 40 | +TODO |
| 41 | + |
| 42 | +## License |
| 43 | + |
| 44 | +TODO |
0 commit comments