Skip to main content
https://travis-ci.org/nokia/crl-rfcli.svg?branch=master

Robot Framework Frontend Library

About

Robot Framework frontend script.

Documentation

Documentation for crl.rfcli can be found from Read The Docs.

Installation

The package can be installed with pip:

# pip install crl.rfcli

Test Execution

Test cases are executed with “rfcli” command. It adds ./libraries and ./resources to PYTHONPATH so that you can easily import libraries and resources in test cases. Additionally, it will recursively search the ./testcases directory for any subdirectories named libraries or resources and add those to PYTHONPATH.

Rfcli reads the target information for targets specified with -t option from config files. The target config files can be either in INI or YAML format. It exports the variables to the test execution environment as RFCLI_TARGET_1.IP etc. Use the -t and –rfcli-show options together to see how it works.

Test case output is directed to $HOME/public_html/rfcli if the directory exists.

Examples

rfcli -t foundcloud1 --suite framework.use_targets testcases

The target parameter can be specified in the following ways:

  1. The name of the target system can be specified without any extension. The corresponding file with the .ini or .yaml extension must exist in the targets directory.:

    rfcli -t targetname
  2. A target file can be specified with an absolute or a relative path including one of the supported extensions. The extension can be .ini or .yaml:

    rfcli -t /home/fedora/gitlab/crl/targetname.ini
    rfcli -t ../../gitlab/crl/targetname.ini
    
    rfcli -t /home/fedora/gitlab/crl/targetname.yaml
    rfcli -t ../../gitlab/crl/targetname.yaml

More than one target system can be specified.

The name of each target will be exported to an enumerated Robot variable. The name of the first target will be exported to RFCLI_TARGET_1, the second one to RFCLI_TARGET_2 and so on.

The target properties are read from the INI file and later available as Robot variables RFCLI_TARGET_1.IP, RFCLI_TARGET_2.USER, etc…

The target properties in the YAML file can be in a nested structure. The properties are read from the file. Each property name is prefixed by the names of each level of nesting leading to it and separated by “.”. The properties are available as Robot variables RFCLI_TARGET_1.ENV.PARAMETERS.EXTERNAL_NETWORKS.EXT0, RFCLI_TARGET_1.ENV_PARAMETERS.NTP_SERVERS, etc…

Contributing

Please see contributing for development and contribution practices.

The code and the issues are hosted on GitHub.

The project is licensed under BSD-3-Clause.

Release files for crl.rfcli 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crl.rfcli 2.0.0
File Size Uploaded
crl.rfcli-2.0.0.tar.gz 23.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for crl.rfcli 2.0.0
File Interpreter ABI Platform
crl.rfcli-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 33.7 kB

Release files / crl.rfcli-2.0.0.tar.gz

Download URL crl.rfcli-2.0.0.tar.gz
Size 23.7 kB
Tags Source
SHA-256 checksum
How to use checksums
baacdf764af24a83994fbcb1b641df80d3db59229c6f9970cd98b21c9322ff0b
BLAKE2b-256 checksum
How to use checksums
04629bae0a18faa35d191913c1a2a8146a2759df5ba3cd404ea9ab4b082e278c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release files / crl.rfcli-2.0.0-py3-none-any.whl

Download URL crl.rfcli-2.0.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77b5ca4ee0856d6e6d13be321849170b7841ca23a47cde3e9506adeb83d136d3
BLAKE2b-256 checksum
How to use checksums
9826b19a905602c4e1f6b6e4526151d2baf7ce0c297c74f80833cf9ffa9612c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.16

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.1.1

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page