Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nashoshinoda/qa-automation-coding-exercise-ignacio
https://github.com/nashoshinoda/qa-automation-coding-exercise-ignacio
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nashoshinoda/qa-automation-coding-exercise-ignacio
- Owner: nashoshinoda
- Created: 2023-07-14T16:59:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-22T07:51:28.000Z (over 1 year ago)
- Last Synced: 2024-11-19T08:36:40.045Z (2 months ago)
- Language: Python
- Size: 6.12 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# QA Automation coding exercise
### Summary
This is a little automation project to cover the instructions for the [QA Automation Coding Challenge](https://github.com/project-a/qa-automation-coding-challenge/) using the following tools:
* Python 3.11.3
* PyTest 7.4.0
* Selenium 4.10.0
* Allure-pytest 2.13.2### How to use it
* Clone the repository:
```sh
git clone https://github.com/nashoshinoda/qa-automation-coding-exercise-ignacio.git
```
* 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 the available test case.
* 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\USERNAME~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 browser window will be automatically opened showing the results of the tests.### Things to note:
* The idea of implement pytest markers but not suggested it to run the only test case is because I'm thinking in a future when more test cases will be included.
* The code was formatted using Black following the PEP 8 style guide for Python Code.
* Files messages and web_elements were designed to be used as constant variables and can keep increasing depending the needs of the app.