Skip to content

nirtal85/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

Selenium Python example project with pytest and Allure report

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages