Skip to content

nirtal85/Selenium-Python-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python application

Before all

  1. Install scoop from www.scoop.sh
  2. Install allure commandline by running the following command: scoop install allure

from scratch:

  1. git clone
  2. cd to project directory
  3. Installing virtualenv: py -m pip install --user virtualenv
  4. Creating a virtual environment: py -m venv env
  5. Activating a virtual environment: .\env\Scripts\activate
  6. pip install pipenv
  7. pipenv install
  8. run tests: pipenv run pytest -n 3 --alluredir=allure-results --browser <firefox/remote/chrome_headless> if no browser was selected then chrome will be used. if no threads are given test will run on single thread (-n 3 is 3 threads).
  9. view allure results: allure serve allure-results

Run according to tags:

  1. pipenv run pytest -k "<tag_name>" --browser <firefox/chrome/remote/chrome_headless>

GitHub Pages allure results:
https://github.com/nirtal85/Selenium-Python-Example/deployments/activity_log?environment=github-pages

for help and custom CLI options:
pytest --help

About

Selenium Python example project with pytest and Allure report

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 6

Languages