https://github.com/hrosicka/robot-framework-examples
🤖 Robot Framework meets Python! A collection of automated tests for math, squares, and quadratic equations—because calculators need friends too.
https://github.com/hrosicka/robot-framework-examples
python robotframework test test-automation testing
Last synced: 29 days ago
JSON representation
🤖 Robot Framework meets Python! A collection of automated tests for math, squares, and quadratic equations—because calculators need friends too.
- Host: GitHub
- URL: https://github.com/hrosicka/robot-framework-examples
- Owner: hrosicka
- License: mit
- Created: 2023-12-01T15:10:23.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-06-02T09:27:56.000Z (5 months ago)
- Last Synced: 2025-08-28T09:55:31.996Z (2 months ago)
- Topics: python, robotframework, test, test-automation, testing
- Language: RobotFramework
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robot Framework Examples







**A sample repository containing Robot Framework tests for Python classes.**
This repository serves as an example of automated testing for basic mathematical operations, solving quadratic equations, and working with square geometry.
---
## 📁 Repository Structure
| File | Description |
|--------------------------------|--------------------------------------------------------|
| `BasicTestCalculator.robot` | Tests the `Calculator.py` class (➕ ➖ ✖️ ➗) |
| `BasicTestSquare.robot` | Tests the `Square.py` class (perimeter, area ⬜️) |
| `BasicTestQuadraticEquation.robot` | Tests the `QuadraticEquation.py` class (discriminant, roots 𝑥²) |
| `Calculator.py` | Basic calculator implementation |
| `Square.py` | Square geometry implementation |
| `QuadraticEquation.py` | Quadratic equation solver implementation |
| `LICENSE` | MIT License |
---
## ⚙️ Requirements
- Python 3.7+
- [Robot Framework](https://robotframework.org/) (installable via pip)
- (Recommended) Virtual environment (e.g., using `venv`)
### Installing Robot Framework:
```bash
pip install robotframework
```
---
## ▶️ How to Run the Tests
1. Make sure you have Python and Robot Framework installed.
2. Run the test files using the following commands:
```bash
robot BasicTestCalculator.robot
robot BasicTestSquare.robot
robot BasicTestQuadraticEquation.robot
```
The results will be available in the `log.html` and `report.html` files generated after running the tests.
---
## 🧪 Description of Tests and Classes
### Calculator.py & BasicTestCalculator.robot
- **My Sum, My Difference, My Product, My Quotient** – Basic arithmetic operations, each function tested with several number combinations.
### Square.py & BasicTestSquare.robot
- **Perimeter, Area** – Calculation of the perimeter and area of a square, both input and output in centimeters.
### QuadraticEquation.py & BasicTestQuadraticEquation.robot
- **Discriminant, Roots** – Calculation of the discriminant and solving quadratic equations, including complex roots.
---
## 📝 License
MIT – Free to use, modify, and distribute as needed.