Skip to content

hrosicka/robot-framework-examples

Repository files navigation

Robot Framework Examples

License: MIT Python Robot Framework Tests Made with Love Stars Last Commit

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 (installable via pip)
  • (Recommended) Virtual environment (e.g., using venv)

Installing Robot Framework:

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:
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.

👩‍💻 Author

Lovingly crafted by Hanka Robovska 👩‍🔬


📝 License

MIT – Free to use, modify, and distribute as needed.

About

🤖 Robot Framework meets Python! A collection of automated tests for math, squares, and quadratic equations—because calculators need friends too.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors