Skip to main content

rf-shared-resources

CI Release

Library for importing Robot Framework resource files from python libraries. See examples/ directory for an example of Python library with embedded Robot Framework resources and usage of this library.

Usage

There are three different ways to import resources with this library: inside the Python library that contains the resources, in Settings table with initialization parameters, or through a keyword.

Inside a Python library

from SharedResources import SharedResources

class EmbeddedResources(SharedResources):
    def __init__(self):
        super().__init__(
            'EmbeddedResources.resources',
            'a_keywords.resource',
            'b_keywords.robot')

In settings table

*** Settings ***
Library  SharedResources  EmbeddedResources
...      a_keywords.resource b_keywords.robot

Through a keyword

*** Settings ***
Library  SharedResources

*** Keywords ***
Load resources
    Import resource from package  EmbeddedResources.resources
    ...  a_keywords.resource  b_keywords.robot

Testing

Check and automatically fix formatting with:

pycodestyle SharedResources
autopep8 -aaar --in-place SharedResources

Run static analysis with:

pylint -E --enable=invalid-name,unused-import,useless-object-inheritance SharedResources

Run acceptance tests:

# Run acceptance tests
robot -L TRACE:INFO -d out/ acceptance_tests/

# Run acceptance tests with coverage analysis
coverage run \
    --branch \
    --source SharedResources/ \
    -m robot -L TRACE:INFO -d out/ acceptance_tests/
coverage report -m

Run acceptance tests in Docker container:

# Build image
docker build . -t atest

# Run acceptance tests
docker run --rm atest

# Run acceptance tests and get test output to ./out
docker run -v $(pwd)/out:/out --rm atest -d /out -L TRACE:INFO

Generate documentation with:

python3 -m robot.libdoc SharedResources docs/index.html

Release files for rf-shared-resources 0.1.2

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

Source distribution (sdist)

Source distribution for rf-shared-resources 0.1.2
File Size Uploaded
rf-shared-resources-0.1.2.tar.gz 3.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rf-shared-resources 0.1.2
File Interpreter ABI Platform
rf_shared_resources-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size:8.8 kB

Release files / rf-shared-resources-0.1.2.tar.gz

Download URL rf-shared-resources-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
755308c35560964409d8e80638af41683cb56c2ef8188221afa7d7df30932d91
BLAKE2b-256 checksum
How to use checksums
b034b85d36504db6b60c2aafe2f3a35bdfdd8567886c48f8af0ff42598a4ab22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / rf_shared_resources-0.1.2-py3-none-any.whl

Download URL rf_shared_resources-0.1.2-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63373471d785b0fe295274fad9f3466d05cac9a4418ec15ef38bb456f1ccb83f
BLAKE2b-256 checksum
How to use checksums
6ccd5e40206a4853d27aee058e9685376607efb4471f5db44d6e77b7c4b37dae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

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