Class: ScenarioLog

Inherits:
Object
  • Object
show all
Defined in:
lib/logs/scenario_log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScenarioLog

Returns a new instance of ScenarioLog.



5
6
7
8
# File 'lib/logs/scenario_log.rb', line 5

def initialize
  @execution_method = "AUTOMATE"
  @outLineResult = []
end

Instance Attribute Details

#endDateObject

Returns the value of attribute endDate.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def endDate
  @endDate
end

#execution_methodObject

Returns the value of attribute execution_method.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def execution_method
  @execution_method
end

#executionLogObject

Returns the value of attribute executionLog.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def executionLog
  @executionLog
end

#featureIdObject

Returns the value of attribute featureId.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def featureId
  @featureId
end

#featureNameObject

Returns the value of attribute featureName.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def featureName
  @featureName
end

#hostObject

Returns the value of attribute host.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def host
  @host
end

#outLineResultObject

Returns the value of attribute outLineResult.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def outLineResult
  @outLineResult
end

#resultObject

Returns the value of attribute result.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def result
  @result
end

#scenarioIdObject

Returns the value of attribute scenarioId.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def scenarioId
  @scenarioId
end

#scenarioNameObject

Returns the value of attribute scenarioName.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def scenarioName
  @scenarioName
end

#startDateObject

Returns the value of attribute startDate.



2
3
4
# File 'lib/logs/scenario_log.rb', line 2

def startDate
  @startDate
end

Instance Method Details

#to_json(options = {}) ⇒ Object



10
11
12
13
14
# File 'lib/logs/scenario_log.rb', line 10

def to_json(options={})
  {'feature_id' => @featureId, 'feature_name' => @featureName, 'execution_method' => @execution_method,
   'result' => @result, 'start_date' => @startDate, 'end_date' => @endDate, 'execute_log' => @executionLog,
   'scenario_id' => @scenarioId, 'host' => @host}.to_json
end