Skip to content

JimmyMai13/pytest

Repository files navigation

pytest

Setup

  1. Install python3

  2. $ python3 -m pip install virtualenv in project root

  3. Create a new virtual environment $ python3 -m venv env

  4. Activate environment $ source env/bin/activate

  5. Install dependencies (env)$ python3 -m pip install -r requirements.txt

  6. Install chrome

  7. Download chrome driver for chrome version installed and place in pytest/drivers/

  8. $ export PATH=$PATH:/path/to/chromedriver

  9. cd drivers/

  10. xattr -d com.apple.quarantine <name-of-chromedriver-executable>

Set environment configs in config.ini

  1. apikey=<YOUR_CALLRAIL_API_KEY>
  2. baseurl=<CALLRAIL_API_HOST>

Usage

pytest docs

useful command-line options

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages