Class: QaServer::ScenarioRunSummary
- Inherits:
-
Object
- Object
- QaServer::ScenarioRunSummary
- Defined in:
- app/models/qa_server/scenario_run_summary.rb
Instance Attribute Summary collapse
-
#authority_count ⇒ Integer
readonly
Number of all authorities in the run.
-
#failing_authority_count ⇒ Integer
readonly
Number of authorities in the run that had at least one failing test.
-
#failing_scenario_count ⇒ Integer
readonly
Name of the subauthority the scenario runs against.
-
#passing_scenario_count ⇒ Integer
readonly
Number of scenarios that passed during this run.
-
#run_dt_stamp ⇒ Date
readonly
The date time stamp of the scenario run being summarized.
-
#run_id ⇒ Integer
readonly
The id of the scenario run being summarized.
-
#total_scenario_count ⇒ Integer
readonly
Total number of scenarios in this run.
Instance Method Summary collapse
-
#initialize(run_id:, run_dt_stamp:, authority_count:, failing_authority_count:, passing_scenario_count:, failing_scenario_count:) ⇒ ScenarioRunSummary
constructor
rubocop:disable Metrics/ParameterLists.
Constructor Details
#initialize(run_id:, run_dt_stamp:, authority_count:, failing_authority_count:, passing_scenario_count:, failing_scenario_count:) ⇒ ScenarioRunSummary
rubocop:disable Metrics/ParameterLists
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 = @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_count ⇒ Integer (readonly)
Returns number of all authorities in the run.
12 13 14 |
# File 'app/models/qa_server/scenario_run_summary.rb', line 12 def @authority_count end |
#failing_authority_count ⇒ Integer (readonly)
Returns 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 end |
#failing_scenario_count ⇒ Integer (readonly)
Returns 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_count ⇒ Integer (readonly)
Returns 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_stamp ⇒ Date (readonly)
Returns 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_id ⇒ Integer (readonly)
Returns 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_count ⇒ Integer (readonly)
Returns 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 |