scenario.scenarioargs module

Scenario runner program arguments.

class CommonExecArgs

Bases: object

Base class for argument parser classes that embed common test execution program arguments.

__init__()

Installs common test execution program arguments.

doc_only

True when the test(s) is(are) executed for documentation generation only, i.e. the test script(s) for actions and verifications should not be executed.

issue_level_error

Error issue level.

issue_level_ignored

Ignored issue level.

_checkargs(args)

Check common test execution program arguments once parsed.

Returns:

True for success, False otherwise.

static reportexecargs(args, subprocess)

Report execution program arguments from an argument parser instance to the arguments of a sub-process being built.

Parameters:
  • args – Argument parser instance to report program arguments from to.

  • subprocess – Sub-process being built to report program arguments to.

class ScenarioArgs

Bases: Args, CommonExecArgs

Scenario runner program argument management.

Provides arguments for the ScenarioRunner execution.

Arguments given through the command line prevail on the configurations in the configuration files (see ScenarioConfig).

__init__(positional_args=True)

Declares the scenario runner program arguments, and binds them to the member fields.

Parameters:

positional_argsFalse to disable the scenario path positional arguments definition. Useful for user programs that wish to redefine it.

json_report

JSON report output file path. No JSON report when None.

extra_info

Attribute names to display for extra info. Applicable when executing several tests.

scenario_paths

Path of the scenario Python script to execute.

_checkargs(args)

Checks scenario runner arguments once parsed.

Returns:

True for success, False otherwise.