forked from dimien/unittests
-
Notifications
You must be signed in to change notification settings - Fork 0
maxim-zaitsev/unittests
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Hi! This is template of PageObject pattern for writing test with Selenium WebDriver You can use/comments/provide your improvements There is also test examples using this template in set Python + Unittest + Selenium WebDriver with Chromedriver Current code is written for Windows usage. Set up: 1. download & install python 3 - https://www.python.org/ftp/python/3.6.4/python-3.6.4-amd64-webinstall.exe 2. download pip - https://bootstrap.pypa.io/get-pip.py 3. download chromedriver - https://chromedriver.storage.googleapis.com/2.35/chromedriver_win32.zip (2018-01-10 21:19:40) 4. add chromedrive into syspath - https://developers.thomsonreuters.com/sites/default/files/How%20To%20Add%20ChromeDriver%20To%20System%20Variables_0.pdf or start - type 'env' - enter - environment variables - select path - edit - new - paste path to chromedriver.exe (include file.extention), (!) and copy the same path into ..pytests\selenium_test\data\base 5. open terminal as admin 6. python get-pip.py 7. pip install selenium Common unittest feature that i use: - all test's names/test's functions/test's classes must be started with 'test' - unittest.main() - run current file & show result sting (time & count of testFunction count) - unittest.TestSuite() - create multiple tests in one suit - unittest.TextTestRunner() - to run a suite
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%