Class: QaServer::ScenarioRunSummary

Inherits:
Object
  • Object
show all
Defined in:
app/models/qa_server/scenario_run_summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run_id:, run_dt_stamp:, authority_count:, failing_authority_count:, passing_scenario_count:, failing_scenario_count:) ⇒ ScenarioRunSummary

rubocop:disable Metrics/ParameterLists

Parameters:

  • run_id (Integer)

    the id of the scenario run being summarized

  • run_dt_stamp (Date)

    the date time stamp of the scenario run being summarized

  • authority_count (Integer)

    number of all authorities in the run

  • failing_authority_count (Integer)

    number of authorities in the run that had failing tests

  • passing_scenario_count (Integer)

    number of scenarios that passed during this run

  • failing_scenario_count (Integer)

    number of scenarios that failed during this run



33
34
35
36
37
38
39
40
41
# File 'app/models/qa_server/scenario_run_summary.rb', line 33

def initialize(run_id:, run_dt_stamp:, authority_count:, failing_authority_count:, passing_scenario_count:, failing_scenario_count:)
  @run_id = run_id
  @run_dt_stamp = run_dt_stamp
  @authority_count = authority_count
  @failing_authority_count = failing_authority_count
  @passing_scenario_count = passing_scenario_count
  @failing_scenario_count = failing_scenario_count
  @total_scenario_count = failing_scenario_count + passing_scenario_count
end

Instance Attribute Details

#authority_countInteger (readonly)

Returns number of all authorities in the run.

Returns:

  • (Integer)

    number of all authorities in the run



12
13
14
# File 'app/models/qa_server/scenario_run_summary.rb', line 12

def authority_count
  @authority_count
end

#failing_authority_countInteger (readonly)

Returns number of authorities in the run that had at least one failing test.

Returns:

  • (Integer)

    number of authorities in the run that had at least one failing test



15
16
17
# File 'app/models/qa_server/scenario_run_summary.rb', line 15

def failing_authority_count
  @failing_authority_count
end

#failing_scenario_countInteger (readonly)

Returns name of the subauthority the scenario runs against.

Returns:

  • (Integer)

    name of the subauthority the scenario runs against



21
22
23
# File 'app/models/qa_server/scenario_run_summary.rb', line 21

def failing_scenario_count
  @failing_scenario_count
end

#passing_scenario_countInteger (readonly)

Returns number of scenarios that passed during this run.

Returns:

  • (Integer)

    number of scenarios that passed during this run



18
19
20
# File 'app/models/qa_server/scenario_run_summary.rb', line 18

def passing_scenario_count
  @passing_scenario_count
end

#run_dt_stampDate (readonly)

Returns the date time stamp of the scenario run being summarized.

Returns:

  • (Date)

    the date time stamp of the scenario run being summarized



9
10
11
# File 'app/models/qa_server/scenario_run_summary.rb', line 9

def run_dt_stamp
  @run_dt_stamp
end

#run_idInteger (readonly)

Returns the id of the scenario run being summarized.

Returns:

  • (Integer)

    the id of the scenario run being summarized



6
7
8
# File 'app/models/qa_server/scenario_run_summary.rb', line 6

def run_id
  @run_id
end

#total_scenario_countInteger (readonly)

Returns total number of scenarios in this run.

Returns:

  • (Integer)

    total number of scenarios in this run



24
25
26
# File 'app/models/qa_server/scenario_run_summary.rb', line 24

def total_scenario_count
  @total_scenario_count
end