Skip to content

python3.7 automation test framework(unittest + BeautifulReport+ pytest + pytest-html + selenium)

License

Notifications You must be signed in to change notification settings

frankzhangv5/pyAutomationTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyAutomationTesting

python3.7 automation test framework(unittest + BeautifulReport+ pytest + pytest-html + selenium)

1. Setup Project

cd path/to/pyAutomationTesting
python -m venv venv
venv\Scripts\activate.bat
(venv) path/to/pyAutomationTesting>pip install -r requirements.txt

2. Run testcase

cd path/to/pyAutomationTesting
venv\Scripts\activate.bat
(venv) path/to/pyAutomationTesting>python main.py

3. Add your own testcases

  • just add your unittest testcase to cases_unittest dir
  • just add your pytest testcase to cases_pytest dir

4. Log and Report

  • log and report was write in path/to/pyAutomationTesting/result/ if you not set
  • unittest report located at: path/to/pyAutomationTesting/result/unittest_report.html
  • pytest report located at: path/to/pyAutomationTesting/result/pytest_report.html

5. Selenium WebDriver Download for Windows 64 Bit

Extract WebDriver excutable file to C:\WebDriver and then add C:\WebDriver into %PATH%

6. Thanks

About

python3.7 automation test framework(unittest + BeautifulReport+ pytest + pytest-html + selenium)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages