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.
| 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 |
- Python 3.7+
- Robot Framework (installable via pip)
- (Recommended) Virtual environment (e.g., using
venv)
pip install robotframework- Make sure you have Python and Robot Framework installed.
- Run the test files using the following commands:
robot BasicTestCalculator.robot
robot BasicTestSquare.robot
robot BasicTestQuadraticEquation.robotThe results will be available in the log.html and report.html files generated after running the tests.
- My Sum, My Difference, My Product, My Quotient – Basic arithmetic operations, each function tested with several number combinations.
- Perimeter, Area – Calculation of the perimeter and area of a square, both input and output in centimeters.
- Discriminant, Roots – Calculation of the discriminant and solving quadratic equations, including complex roots.
Lovingly crafted by Hanka Robovska 👩🔬
MIT – Free to use, modify, and distribute as needed.