Skip to content

MarvKler/robotframework-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Framework Visualizer

Keywords from this repository can visualize CSV data as graph within the robotframework log file.

Statistics

Release Pipeline
PyPI - Version
PyPI - Python Version
PyPI Downloads - Total
PyPI Downloads - Monthly

GitHub Repository

Link to GitHub Project: robotframework-visualizer

Keyword Documentation

Find here the keyword documentation: Keyword Documentation

Use Case

If you have time-series data like energey measurements or temperature values over period of time, you can use this library to visualize thos raw data as visual diagram into your robot framework logfile.
The generated diagram is saved as png file in your output directory and visualized as html image in your log file.

Important

X-Axis data should contain always the date-time value. The real value should be placed on Y-Axis.

Installation

pip install robotframework-visualizer

Usage

*** Settings ***
Library    Visualizer


*** Test Cases ***
Add One Data Set
    [Documentation]    Add one graph to diagram.
    Visualizer.Add To Diagramm    ${CURDIR}${/}testdata${/}dummy_strom_spannung.csv    _time    _strom    Strom    Blue
    Visualizer.Visualize    Strom / Spannung Verlauf

Add Two Data Sets
    [Documentation]    Add two graphs to diagram.
    Visualizer.Add To Diagramm    ${CURDIR}${/}testdata${/}dummy_strom_spannung.csv    _time    _spannung    Spannung    Green
    Visualizer.Add To Diagramm    ${CURDIR}${/}testdata${/}dummy_strom_spannung.csv    _time    _strom    Strom    Blue
    Visualizer.Visualize    Strom / Spannung Verlauf

Result

Added one graph to diagram

alt text

Added one graph to diagram

alt text

About

Keywords from this repository can visualize CSV data as graph within the robotframework test results.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •