Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laurentbristiel/elapsed_by_keyword
Robot Framework elapsed time by keyword
https://github.com/laurentbristiel/elapsed_by_keyword
Last synced: 18 days ago
JSON representation
Robot Framework elapsed time by keyword
- Host: GitHub
- URL: https://github.com/laurentbristiel/elapsed_by_keyword
- Owner: laurentbristiel
- License: apache-2.0
- Created: 2013-06-18T09:50:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-01-07T07:39:18.000Z (almost 5 years ago)
- Last Synced: 2024-10-11T00:35:26.495Z (about 1 month ago)
- Language: Python
- Size: 10.7 KB
- Stars: 6
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
elapsed_by_keyword
==================Return the total time elapsed and occurrence of every keyword on the standard output.
This can be useful to work on the performance of a test porfolio.
For example, let's take this test case:
*** Test Cases ***
My Test
sleep 1
sleep 2
my sleep 5 seconds
my sleep 5 seconds
*** Keywords ***
my sleep 5 seconds
sleep 5We can execute it with Robot Framework and then check the stats by keywords:
$ robot tc.txt
==============================================================================
Tc
==============================================================================
My Test | PASS |
------------------------------------------------------------------------------
Tc | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: /path/elapsed_by_keyword/output.xml
Log: /path/elapsed_by_keyword/log.html
Report: /path/elapsed_by_keyword/report.html
$ ./elapsed_by_keyword.py output.xml
BuiltIn.Sleep 0:00:13 4
my sleep 5 seconds 0:00:10 2