Metadata-Version: 2.1
Name: robotframework-timer
Version: 0.0.6
Summary: Benchmark tools for robotframework
Home-page: https://github.com/rasjani/timer
Author: Jani Mikkonen
Author-email: jani.mikkonen@gmail.com
License: GPLV3
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Information Technology
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Quality Assurance
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: POSIX :: Other
Description-Content-Type: text/markdown

robotframework-timer
====================

Timer is small utility library that allows measuring the x amount of events within a single suite without the need to implement timing information into a separate scripts via robot.result api's.

Library allows multiple timers to be ongoing at any time by providing a benchmark a name or just a single benchmark if no name is given.

Each single timer can then be verified if its duration was within a given range or just lower than what was expected or all timers can be verified in one go if they where configured properly.


# Installation

`pip install robotframework-timer`

# Examples:

```robotframework
*** Settings ***
Library         Timer
Test Setup      Benchmark Setup
Test Teardown   Benchmark TearDown

*** Keywords ***
Benchmark Setup
  Start Timer   ${TEST NAME}
Benchmark TearDown
  Stop Timer    ${TEST NAME}
  Timer Results Within    3 seconds   0 seconds   ${TEST NAME}

*** Test Cases ***
Example No 1 Passes
  Sleep   1 second

Example No 2 Passes
  Sleep   2 second

Example No 3 Will Fail
  Sleep   3 second
```



