This section explains how to execute Selenium-based tests for the application. Tests can be run either locally or using Selenoid, a tool for managing Selenium WebDriver instances in Docker containers.
- Python installed with
pytest
andselenium
packages. - Application accessible at a specified base URL.
- Selenoid set up and running for remote execution.
To execute tests on your local machine, use the following command:
pytest src/tests/pages/desktops/test_desktops.py --base_url http://localhost:8081
To execute tests on your local machine, use the following command:
pytest src/tests/pages/desktops/test_desktops.py --base_url http://localhost:8081 --remote --selenium_url http://localhost:4444/wd/hub