Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nashoshinoda/python_automation_exercise
https://github.com/nashoshinoda/python_automation_exercise
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nashoshinoda/python_automation_exercise
- Owner: nashoshinoda
- License: mpl-2.0
- Created: 2021-06-18T23:28:57.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-03T19:58:09.000Z (over 1 year ago)
- Last Synced: 2024-11-19T08:36:43.768Z (2 months ago)
- Language: Python
- Size: 12.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Automation Exercise
### Summary
This is a little project to test the login section of website https://the-internet.herokuapp.com/ generating html, logs, xml files as reports and screenshots as well using the following tools:
* Python
* PyTest
* Selenium
* Allure-pytest### How to use it
* Download the test code from the [repository](https://github.com/nashoshinoda/python_automation_exercise)
* Install required modules using this command line:
```sh
pip install -r requirements.txt
```
* Install developed modules with this command line:
```sh
pip install -e .
```
* Run command **pytest** to execute all the tests available or **pytest /tests/PATH_OF_THE_TEST.py** to execute once in particular.
* Run command **allure serve ./reports/html** to generate the HTML report once the test execution finished:
```sh
allure serve reports/html
Generating report to temp directory...
Report successfully generated to C:\Users\IVELDE~1\AppData\Local\Temp\16445734970921447855\allure-report
Starting web server...
2021-06-19 14:06:09.114:INFO::main: Logging initialized @1697ms to org.eclipse.jetty.util.log.StdErrLog
Server started at . Press to exit
```
A new window will be automatically opened showing the results of the tests.