This project demonstrates automated testing using Python with Healenium for self-healing capabilities. It includes automated tests for a demo application and Swag Labs.
- Python 3.12 installed on your system.
- Dependencies installed from
requirements.txt. You can install them using:
-
Create a Virtual Environment:
python -m venv venv
-
Activate the Virtual Environment:
- Windows:
.\venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
- Docker installed
- git clone https://github.com/your_username/python-healenium-automation.gitModify the config.json file in the config directory to match your environment settings, application URLs, and user info.
docker compose -f framework/docker-browsers-pull.yaml up -ddocker compose -f /framework/healenium/docker-compose-selenoid.yaml up -dYou can run the tests with different configurations using pytest. Here are some examples:
Run tests locally with Chrome:
pytest --browser_type=chrome --is_local TrueRun tests with Chrome:
pytest --browser_type=chrome --is_local FalseRun tests with Firefox:
pytest --browser_type=firefox --is_local FalseRun tests remotely using Healenium:
pytest --browser_type=chrome --is_local False Contributions are welcome! If you find any issues or improvements, feel free to open an issue or pull request.
This project is licensed under the MIT License.