Socket
Socket
Sign inDemoInstall

robotframework-timer

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    robotframework-timer

Benchmark tools for robotframework


Maintainers
1

Readme

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:

*** 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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc