Skip to main content

An utility package for exposing Java-style properties from property-files as variables in Robot Framework

Project description

robotframework-propertyfile

An utility package for exposing Java-style properties from property-files as variables in Robot Framework

Usage

You need to download the file propertyfile.py from here:

https://gist.githubusercontent.com/AdamHepner/bc3e754fb2e808bce190e6e24dff8225/raw/5ef13029dbf04ae1bd68f9bd84afbd61a9406b0c/PropertyFile.py

and make it available in your Robot Framework library search path

Then you can point your .robot file towards any properties file using:

| Settings | | | |
| Variables | propertyfile | path_to_your_propertyfile.prop | variable_prefix |

This will make sure, that all properties from the file path_to_your_propertyfile.prop are available in your .robot file, prefixed with variable_prefix followed by underscore. So, the following entry in property file:

http.proxyHost = 192.168.0.1

becomes ${variable_prefix_http_proxyHost}.

All available environment variables are expanded!

Project details


Download files

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

Files for RobotFramework-PropertyFile, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size RobotFramework_PropertyFile-0.0.1-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size RobotFramework-PropertyFile-0.0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page