Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.63 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.63 KB

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