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
Close
Hashes for robotframework-timer-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7d2e179b1dc938287134627e4cae8efdc85f0d80d2b81d1684ad53f46250a2 |
|
MD5 | 6c1fe12df3277066aff11626e4bcd4cb |
|
BLAKE2b-256 | 98ee8a05f62f3c56f14a061365306b3a1ab858e17d0e82121cee21bb8ef76257 |