class SSLTest::SSLTestResult

SSLTestResults are created by running SSLTestCases. They are then added to an SSLTestReport so that they can be included in that report.

Attributes

actual_result[RW]
description[RW]
expected_result[RW]
id[R]
start_time[RW]
stop_time[RW]

Public Class Methods

new(testcase_id, passed=false) click to toggle source
# File lib/ssl_test/ssl_test_result.rb, line 13
def initialize(testcase_id, passed=false)
  @id = testcase_id
  @passed = passed
end

Public Instance Methods

passed?() click to toggle source
# File lib/ssl_test/ssl_test_result.rb, line 11
def passed? ; @passed ; end
to_h() click to toggle source
# File lib/ssl_test/ssl_test_result.rb, line 18
def to_h
  {
    :id => id,
    :passed => passed? ? "Pass" : "Fail",
    :description => description,
    :expected_result => expected_result,
    :actual_result => actual_result,
    :start_time => start_time,
    :stop_time => stop_time,
  }
end