Skip to content

hemagon-team/hemagon-test-selenium

Repository files navigation

Welcome to the Hemagon Tests

Usage - Local

  1. Copy .env.dist to .env

  2. Change:

    • TEST_BASEURL to your test target URL
    • DEV_ENV_MODE to local
    • other ENVs related to your configuration
  3. Install Chromium and Python3 with Pip

  4. Install deps

    pip install -r requirements.txt
  5. Run tests:

    pytest -vv -s %test_name%

    *replace %test_name% with path to tests, like: tests/test_main_page.py

Usage - Docker

  1. Copy .env.dist to .env

  2. Change:

    • TEST_BASEURL to your test target URL
    • DEV_ENV_MODE to remote
    • SELENIUM_HUB_URL to HUB Docker container name
    • other ENVs related to your configuration
  3. Install Docker

  4. Prepare and run containers:

    make up

    to start the containers
    Also you can update base containers by:

    make pull
  5. Run tests:

    docker compose -f dev.docker-compose.yml exec -iT pytest pytest -vv -s %test_name%

    *replace %test_name% with path to tests, like: tests/test_main_page.py

  6. After all things are done call:

    make down

    to stop the containers

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •