class Rutema::Scenario
A Rutema::Scenario
is a sequence of Rutema::Step
instances.
Rutema::Step
instances are run in the definition sequence and the scenario is succesfull when all steps are succesfull.
From the execution point of view each step is either succesfull or failed and it depends on the exit code of the step’s command.
Failure in a step results in the interruption of execution and the report of the errors.
Attributes
steps[R]
Public Class Methods
new(steps)
click to toggle source
# File lib/rutema/core/objectmodel.rb, line 99 def initialize steps @attributes=Hash.new @steps=steps @steps||=Array.new end
Public Instance Methods
add_step(step)
click to toggle source
Adds a step at the end of the step sequence
# File lib/rutema/core/objectmodel.rb, line 105 def add_step step @steps<<step end
steps=(array_of_steps)
click to toggle source
Overwrites the step sequence
# File lib/rutema/core/objectmodel.rb, line 109 def steps= array_of_steps @steps=array_of_steps end