CINCLibrary package

Module contents

Top-level package for cinc Robot Framework Library.

class CINCLibrary.CINCLibrary[source]

Bases: object

ROBOT_AUTO_KEYWORDS = False
ROBOT_LIBRARY_SCOPE = 'TEST SUITE'
ROBOT_LIBRARY_VERSION = '0.1.0'
exec_profile(profile, auditor_executable='cinc-auditor', backend='local')[source]
process_cinc_control_result(control_json)[source]
start_suite(suite, result)[source]

Start Suite Hook

Listener API Hook, invoked when the suite starts. Save the suite reference so that we can append tests to the handle.

validate_profile(profile, auditor_executable='cinc-auditor')[source]

Validate CINC Profile

Run the auditor tool to parse the provided profile to allow us to fail quick. Parse the number of controls for logging purposes.

Parameters
  • cinc-auditor (str) – Optional over-ride of the executable name, incase the upstream tool (or other whitelabel) is being used instead.

  • profile (str) – Path to the profile to be exeucted.

Raise

AssertionError if the profile is invalid