Skip to content

Sample framework has developed with python, selenium webdriver, pytest and reports has generated with allure

Notifications You must be signed in to change notification settings

cvenkatreddy/Python-Selenium-Pytest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python-Selenium-Pytest

Setup Your Working Enviorment with terminal or CLI

For Windows:

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

For Mac OS X:

brew install allure
  • git clone
  • cd to project directory
  • Install virtualenv:
py -m pip install --user virtualenv
  • Create a virtual environment:
py -m venv testenv
  • Activate your virtual environment:
.\testenv\Scripts\activate
  • install pipenv:
pip install pipenv
  • install project dependencies using pipenv:
pipenv install

Setup work environment using IDE PyCharm

  • download code as zip file from Git
  • Extract and open with Pycharm
  • venv and dependencies will automatically setup and installed with notified pop-ups
  • pip install allure, if get allure not found

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

About

Sample framework has developed with python, selenium webdriver, pytest and reports has generated with allure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages