Scenario

Scenario class

A Scenario class in component/_init_.py is provided within ROAST which will create and save references to component plugins. This class has high level methods to dispatch method calls to the loaded components. These include:

  • load_component - calls the __init__.py component class constructor

  • configure_component - calls the configure() component method

  • build_component - calls the build() component method and returns result

  • deploy_component (TestSuite only) - calls the deploy() component method and returns result

  • run_component (TestSuite only) - calls the run() component method and returns result

Accessor methods are also available to access the direct component object themselves. These include:

  • ts() - returns the object of the TestSuite component

  • sys() - returns the object of the System component specified by component name (because there can be more than one system component)

Scenario function

A scenario function in component/_init_.py is provided to instantiate Scenario, automatically load the components, and return the instance.