Skip to content

small example project with selenium + python + pytest + allure report

License

Notifications You must be signed in to change notification settings

elias-shoursoh/Selenium-Python-Example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python application

Setup Your Working Enviorment

  • Install scoop from www.scoop.sh
  • Install allure commandline by running the following command:
scoop install allure
  • git clone
  • cd to project directory
  • Install virtualenv:
py -m pip install --user virtualenv
  • Create a virtual environment:
py -m venv env
  • Activate your virtual environment:
.\env\Scripts\activate
  • install pipenv:
pip install pipenv
  • install project dependencies using pipenv:
pipenv install

Run Tests

pipenv run pytest --alluredir=allure-results --browser <firefox/remote/chrome_headless>

if no browser was selected then chrome will be used.

  • Run according to tags:
pipenv run pytest -k "<tag_name>" --browser <firefox/chrome/remote/chrome_headless>

View Test Results

  • view allure results:
allure serve allure-results

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

View Help And Custom CLI Options

pytest --help

About

small example project with selenium + python + pytest + allure report

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%