Class: Applitools::ClassicRunner
- Inherits:
-
EyesRunner
- Object
- EyesRunner
- Applitools::ClassicRunner
- Defined in:
- lib/applitools/core/classic_runner.rb
Instance Attribute Summary collapse
-
#all_pending_exceptions ⇒ Object
Returns the value of attribute all_pending_exceptions.
-
#all_test_results ⇒ Object
Returns the value of attribute all_test_results.
Attributes inherited from EyesRunner
#batches_server_connectors_map
Instance Method Summary collapse
- #aggregate_exceptions(result, exception) ⇒ Object
- #aggregate_result(test_result) ⇒ Object
- #get_all_test_results(throw_exception = false) ⇒ Object
-
#initialize ⇒ ClassicRunner
constructor
A new instance of ClassicRunner.
Methods inherited from EyesRunner
#add_batch, #delete_all_batches
Constructor Details
#initialize ⇒ ClassicRunner
Returns a new instance of ClassicRunner.
5 6 7 8 |
# File 'lib/applitools/core/classic_runner.rb', line 5 def initialize() super self.all_test_results = [] end |
Instance Attribute Details
#all_pending_exceptions ⇒ Object
Returns the value of attribute all_pending_exceptions.
4 5 6 |
# File 'lib/applitools/core/classic_runner.rb', line 4 def all_pending_exceptions @all_pending_exceptions end |
#all_test_results ⇒ Object
Returns the value of attribute all_test_results.
4 5 6 |
# File 'lib/applitools/core/classic_runner.rb', line 4 def all_test_results @all_test_results end |
Instance Method Details
#aggregate_exceptions(result, exception) ⇒ Object
15 16 17 |
# File 'lib/applitools/core/classic_runner.rb', line 15 def aggregate_exceptions(result, exception) all_pending_exceptions[result] = exception end |
#aggregate_result(test_result) ⇒ Object
10 11 12 13 |
# File 'lib/applitools/core/classic_runner.rb', line 10 def aggregate_result(test_result) Applitools::ArgumentGuard.is_a?(test_result, 'test_result', Applitools::TestResults) all_test_results << test_result end |
#get_all_test_results(throw_exception = false) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/applitools/core/classic_runner.rb', line 19 def get_all_test_results(throw_exception = false) begin if false && throw_exception all_pending_exceptions.each do |_result, exception| raise exception end end ensure delete_all_batches all_test_results end end |