-
Install python3
-
$ python3 -m pip install virtualenv
in project root -
Create a new virtual environment
$ python3 -m venv env
-
Activate environment
$ source env/bin/activate
-
Install dependencies
(env)$ python3 -m pip install -r requirements.txt
-
Install chrome
-
Download chrome driver for chrome version installed and place in
pytest/drivers/
-
$ export PATH=$PATH:/path/to/chromedriver
-
cd drivers/
-
xattr -d com.apple.quarantine <name-of-chromedriver-executable>
apikey=<YOUR_CALLRAIL_API_KEY>
baseurl=<CALLRAIL_API_HOST>
To run api tests:
(env)$ python3 -m pytest apitests/test-accounts.py
To run ui tests:
(env)$ python3 -m pytest uitests/test-careers-page.py