Skip to main content

Robot Framework Listener Library

Project description

ListenerLibrary for Robot Framework

Introduction

RobotFramework library relaying on listener interface. Allows to run defined RF keyword before other keywords are executed, after keywords are executet, before test, after test, etc.

Requirements

  • Robot Framework

Installation

Using pip

The recommended installation tool is pip.

Install pip. Enter the following:

pip install robotframework-listenerlibrary

Usage

BasicListener.robot

*** Settings ***
Documentation     This example demonstrates how to use current library
Library      ListenerLibrary

*** Test Cases ***
Example Test
    Should Be Equal As Numbers    2    2
	Register Start Keyword Listener    Log   message from start keyword listener
	Should Be Equal As Numbers    2    2
	Register End Keyword listener      Log   message form end keyword listener    level=WARN
    Should Be Equal As Numbers    2    2
	Custom Keyword    You will see keyword above this and bellow this
    Unregister End Keyword Listener
	Should Be Equal As Numbers    2    2
	Unregister Start Keyword Listener
	Should Be Equal As Numbers    2    2

*** Keywords ***
Custom Keyword
	[Arguments]     ${argument}
	Log       ${argument}

MultipleListeners.robot

*** Settings ***
Documentation     This example demonstrates how to use current library
Library      ListenerLibrary    WITH NAMR   FirstListener
Library      ListenerLibrary    WITH NAME	AnotherListener

*** Test Cases ***
Example Test
    Should Be Equal As Numbers    2    2
	FirstListener.Register Start Keyword Listener    Log   message from start keyword listener
	Should Be Equal As Numbers    2    2
	FirstListener.Register End Keyword listener      Log   message form end keyword listener    level=WARN
    Should Be Equal As Numbers    2    2
	Should Be Equal As Numbers    2    2
	AnotherListener.Register Start Keyword Listener    Log   start kw message from AnotherListener
    FirstListener.Unregister End Keyword Listener
	Should Be Equal As Numbers    2    2
	FirstListener.Unregister Start Keyword Listener
	AnotherListener.Unregister Start Keyword Listener
	Should Be Equal As Numbers    2    2

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

robotframework_listenerlibrary-1.0-py3.8.egg (7.4 kB view details)

Uploaded Egg

robotframework_listenerlibrary-1.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file robotframework_listenerlibrary-1.0-py3.8.egg.

File metadata

  • Download URL: robotframework_listenerlibrary-1.0-py3.8.egg
  • Upload date:
  • Size: 7.4 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for robotframework_listenerlibrary-1.0-py3.8.egg
Algorithm Hash digest
SHA256 7523a3d7a32eebf6e4324cd67463ae0c4b16df9e165cfe973cabaf5aa69cdbd0
MD5 42fd54f610c00f61307735922e0e40e4
BLAKE2b-256 6d26abc34e55ea5f74264ecf53d38c02aa459c84f10ce4c6056623555f5f32aa

See more details on using hashes here.

File details

Details for the file robotframework_listenerlibrary-1.0-py3-none-any.whl.

File metadata

  • Download URL: robotframework_listenerlibrary-1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

File hashes

Hashes for robotframework_listenerlibrary-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb341351cc77277220b133d0536331df56c8cb7484932b35980d3fb046a408fa
MD5 790a38797813173a9849139380c38acb
BLAKE2b-256 9a2ebdc9b815c8f5414c0338e8e7632f5cba00cd8ad2d420a1182278df096eb3

See more details on using hashes here.

Supported by

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