Skip to content

ipedevi/SeleniumPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DNV-GL Test Automation exercice

Test automation examples made in Selenium with Python

To be executed is necessary to install following tools:

  • python
  • pytest (with pip)
  • allure-pytest (with pip)
  • pytest-xdist (with pip) or pytest-parallel
  • allure (with conda or similar)
  • Selemnium (with pip)
  • Selenium drivers (downloading chromedriver, geckodriver, etc)
  • ConfigParser

To Execute

First of all, you need to change myconfig.py in Framework directory to addapt to your needs.

Then, in order to execute, you need to use next sentences in DNVGL directory:

  • py.test -s -v -n=3 --alluredir=./results ./Source/Test/ (with pytest-xdist)
  • py.test --workers auto --alluredir=./results ./Source/Test/ (with pytest-parallel, not for WindowsOS)
  • allure serve < DNVGL directory >\results

Modularized

Used to read conf file + properties + ...

Order:

  1. --browser=firefox/chrome/chrome-local-webdriver/firefox-local-webdriver
  2. looks in myframework.config (in root folder)
  3. Take standard as defined in Config()

About

Selenium Python Examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages