Skip to content

nirtal85/SeleniumBase-Example

Repository files navigation

Python application

Setup Your Working Environment

  • 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/chrome> --demo

if no browser was selected then chrome will be used.

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

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

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages