class Rutema::Specification
A Rutema::Specification
encompasses all elements required to run a test, the builds used, the scenario to run, together with a textual description and information that aids in tracing the test back to the requirements.
Attributes
scenario[RW]
Public Class Methods
new(params)
click to toggle source
Expects a Hash of parameters
Following keys have meaning in initialization:
:name - the name of the testcase. Should uniquely identify the testcase
:title - a one liner describing what the testcase does
:filename - the filename describing the testcase
:description - a full textual description for the testcase. To be used in reports and documents
:scenario - An instance of Rutema::Scenario
:version - The version of this specification
Default values are empty strings and arrays. (scenario is nil)
# File lib/rutema/core/objectmodel.rb, line 71 def initialize params begin @attributes=params end if params @attributes||=Hash.new @attributes[:name]||="" @attributes[:title]||="" @attributes[:filename]||="" @attributes[:description]||="" @scenario=@attributes[:scenario] end