Class: Applitools::TestResults
- Inherits:
-
Object
- Object
- Applitools::TestResults
- Defined in:
- lib/eyes_selenium_ruby/eyes/test_results.rb
Instance Attribute Summary collapse
-
#context_matches ⇒ Object
readonly
Returns the value of attribute context_matches.
-
#exact_matches ⇒ Object
readonly
Returns the value of attribute exact_matches.
-
#layout_matches ⇒ Object
readonly
Returns the value of attribute layout_matches.
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
-
#mismatches ⇒ Object
readonly
Returns the value of attribute mismatches.
-
#missing ⇒ Object
readonly
Returns the value of attribute missing.
-
#none_matches ⇒ Object
readonly
Returns the value of attribute none_matches.
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
-
#strict_matches ⇒ Object
readonly
Returns the value of attribute strict_matches.
Instance Method Summary collapse
-
#initialize(steps = 0, matches = 0, mismatches = 0, missing = 0, exact_matches = 0, strict_matches = 0, content_matches = 0, layout_matches = 0, none_matches = 0) ⇒ TestResults
constructor
A new instance of TestResults.
- #to_s ⇒ Object
Constructor Details
#initialize(steps = 0, matches = 0, mismatches = 0, missing = 0, exact_matches = 0, strict_matches = 0, content_matches = 0, layout_matches = 0, none_matches = 0) ⇒ TestResults
Returns a new instance of TestResults.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 4 def initialize(steps=0, matches=0, mismatches=0, missing=0, exact_matches=0, strict_matches=0, content_matches=0, layout_matches=0, none_matches=0) @steps = steps @matches = matches @mismatches = mismatches @missing = missing @exact_matches = exact_matches @strict_matches = strict_matches @content_matches = content_matches @layout_matches = layout_matches @none_matches = none_matches end |
Instance Attribute Details
#context_matches ⇒ Object (readonly)
Returns the value of attribute context_matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def context_matches @context_matches end |
#exact_matches ⇒ Object (readonly)
Returns the value of attribute exact_matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def exact_matches @exact_matches end |
#layout_matches ⇒ Object (readonly)
Returns the value of attribute layout_matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def layout_matches @layout_matches end |
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def matches @matches end |
#mismatches ⇒ Object (readonly)
Returns the value of attribute mismatches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def mismatches @mismatches end |
#missing ⇒ Object (readonly)
Returns the value of attribute missing.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def missing @missing end |
#none_matches ⇒ Object (readonly)
Returns the value of attribute none_matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def none_matches @none_matches end |
#steps ⇒ Object (readonly)
Returns the value of attribute steps.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def steps @steps end |
#strict_matches ⇒ Object (readonly)
Returns the value of attribute strict_matches.
2 3 4 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 2 def strict_matches @strict_matches end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/eyes_selenium_ruby/eyes/test_results.rb', line 18 def to_s "[ steps: #{steps}, matches: #{matches}, mismatches: #{mismatches}, missing: #{missing} ]" end |