Skip to content

sharathg/selenium-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium-test

Test Website using Selenium (https://www.thuisbezorgd.nl)

Requirements

  • Python 3.7 (3.4+)
  • Firefox + Geckodriver (Both added to PATH)
  • Chrome + Chromedriver (Both added to PATH)

Setup

  • Install dependencies from requirements.txt:
    pip install -r requirements.txt
  • Environment Variables: Set BROWSER as the required browser name.
    Default is chrome

Run Tests

  • Run on both Firefox and Chrome (One after another)
    sh run_tests.sh

  • All Tests with junit xml
    python runner.py

  • All Tests using unittest test detection
    python -m unittest

  • Specific TestFile/TestClass/TestMethod
    python -m unittest TestFile.TestClass.TestMethod

Logs and Reports

  • Test Reports will be generated in test-reports folder.
  • Test Script Log will be generated as script.log

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors