Class: Applitools::TestResults

Inherits:
Object
  • Object
show all
Defined in:
lib/eyes_selenium_ruby/eyes/test_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_matchesObject (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_matchesObject (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_matchesObject (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

#matchesObject (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

#mismatchesObject (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

#missingObject (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_matchesObject (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

#stepsObject (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_matchesObject (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_sObject



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