Skip to content

riddam/test_automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Automation

These test scripts are written in pytest-bdd to test following dummy website

Table of content

Installation

Assumption:

  • Web drivers are installed(please refer "driver-scripts" directory for linux shell scripts)
  • Python and virtualenv are installed

Activate virtual environment:

$ python3 -m venv venv
$ . venv/bin/activate

Install package requirements:

$ pip3 install -r requirements.txt

Execution

Execute test cases using following command:

/test_automation$ pytest -s --driver=chrome --html=report.html --junitxml=report.xml -m sort

where all arguments are optional
-s: shortcut for --capture=no
--driver: default is firefox; supported value: chrome
--html: to generate test report in html format
--junitxml: To create result files which can be read by Jenkins or other CI tools
-m: allowed tags/markers(web,sort, filter, filtersort)

About

Test Automation for dummy website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published