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.

Source Distribution

RobotFramework-PropertyFile-0.0.1.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

Supported by

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