Skip to main content

Robot Framework plugin for lockable resources

Project description

Robot Framework Remote Resource Allocator

Resource locking library for Robot Framework.

Usage

Library import

Library     RobotLockable       lock_folder=.   resource_list_file=example/resource.json    (hostname=hostname)

Available Keywords

keyword arguments note
lock <requirements> (<timeout_s>) Allocate resource using giving requirements
unlock <resource> Release resource

See more details using Remote library CLI to generate documentation: python3 RobotLockable/Remote.py --doc

Remote server

Library provide command line util robot_lockable that provide robot remote server for lockable functionality. This is useful when resources located remotely for test case.

robot_lockable --help
Usage: robot_lockable [OPTIONS]

  main function for remote plugin

Options:
  --port INTEGER              RemoteLockable server Port
  --host TEXT                 Interface to listen. Use "0.0.0.0" to get access
                              from external machines

  --hostname TEXT             Hostname
  --resources_list_file TEXT  Resources list file
  --lock_folder TEXT          Lock folder
  --doc TEXT                  generate documentation. E.g. doc.html or list
  --help                      Show this message and exit.

Run Remote Server In Docker Container

Docker container is run using command below. Replace path to resource.json and hostname with project specific values:

docker run \
  -p 8270:8270 \
  -v <local path to the resource.json folder>:/<path to resource.json folder> \
  --hostname $(hostname) \
  jussiva/robot-lockable:latest \
  --resources_list_file <path to resource.json folder>

Full example

To run example resource allocator located in this repository, docker run command is:

docker run \
  -p 8270:8270 \
  -v $PWD/example:/example/ \
  --hostname hostname \
  --rm \
  jussiva/robot-lockable:latest \
  --resources_list_file /example/resource.json

Project details


Download files

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

Source Distribution

robot-lockable-0.2.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

robot_lockable-0.2.1-py2.py3-none-any.whl (5.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file robot-lockable-0.2.1.tar.gz.

File metadata

  • Download URL: robot-lockable-0.2.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for robot-lockable-0.2.1.tar.gz
Algorithm Hash digest
SHA256 67870686223b817be092e4dd2af31465ae861437181cc6d726be04d531d7cd7c
MD5 cabf12cfab8568fbf48efca99f41b19f
BLAKE2b-256 c1094102635fea343f02400b037e9898cce680e459268480c25a1592d33b14be

See more details on using hashes here.

File details

Details for the file robot_lockable-0.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: robot_lockable-0.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.0 importlib_metadata/3.7.3 packaging/20.9 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10

File hashes

Hashes for robot_lockable-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3e0fbd4b71ac86ea886653d5f79d6430b1573d4d58b4640ba3dd32a77e9ab9fe
MD5 b722d7e3310a1ef6af05d5d640562d21
BLAKE2b-256 681f18f334b2a3316c3fc68a90b67ed93598704c4982fd76717c29f53e700c99

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