Skip to main content

Benchmark tools for robotframework

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-timer-0.0.1.tar.gz (4.0 kB view details)

Uploaded Source

File details

Details for the file robotframework-timer-0.0.1.tar.gz.

File metadata

  • Download URL: robotframework-timer-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for robotframework-timer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c8163bdf0f8142b321e2a487f2149ab9b73c7d75d121e816089deac23188c4b0
MD5 afcd6ed8ff46ec028d6a234ad1a71e3e
BLAKE2b-256 03ff775a0ad97898554d6cfdbe7fdbcf6cbe3508ba59ac09e7b69d915d9c86e2

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page