You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Cassowary Rusnov 98ec8e0e3d Merge pull request 'Fix activities selector and minor QOL changes' (#12) from cas_activities_20211109 into main 4 weeks ago
civicrm_tester Fix activities selector and minor QOL changes 4 weeks ago
.gitignore updated to work again with instructions 2 months ago
.pylintrc feat: improved looping over the hardcoded terms 11 months ago
.style.yapf Initial Commit 11 months ago
Pipfile updated to work again with instructions 2 months ago
README.md updated to work again with instructions 2 months ago
main.py added 'test_' and 'Test' to file and classnames, and resolved some type errors 1 month ago

README.md

civicrm-update-tester

install

Requires pipenv, venv, pip, and python 3.

python3 -m venv .venv
source .venv/bin/activate
pipenv install
webdrivermanager chrome # installs chrome driver

running

args

- -u --user <user>: username to login with
- -p --pass <pass>: password of account
- -D --dev: doesn't work anymore, both URLS point to staging server
- -s --show-browser: runs in non-headless mode to show whats happening
$ python3 main.py -u roxie -p "hunter2" -s

what is the layout of this

the civicrm_tester folder has files which contain classes. One for each test. The tests inherit the BaseTester class which has basic commands (login, logout, creating the browser, logging helpers, etc.) and access to the selenium browser. This will hopefully allow for the choosing of what tests to run. Atm, main.py just runs all three current tests synchronously.