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 constructorconfigure_component- calls theconfigure()component methodbuild_component- calls thebuild()component method and returns resultdeploy_component(TestSuite only) - calls thedeploy()component method and returns resultrun_component(TestSuite only) - calls therun()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 componentsys()- 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.