class OnlyofficeTestrailWrapper::TestrailResult

@author Roman.Zagudaev Class for working with Test results

Constants

RESULT_STATUSES

Attributes

comment[RW]

@return [String] Comment of result

created_on[RW]

@return [Integer] date of creation of result from begging of era

error[RW]

@return [String] error if any happened

id[RW]

@return [Integer] Id of test result

status_id[RW]

@return [Integer] Status id of result

test_id[R]
title[RW]

@return [String] Title of test result

version[RW]

@return [String] Version

Public Class Methods

new(status = nil, comment = nil, version = nil) click to toggle source

Default constructor @param [Symbol] status status to set. Could be :passed, blocked, retest or :failed @param [String] comment Comment of result @param [String] version Version @return [TestResultTestRail] new Test result

# File lib/onlyoffice_testrail_wrapper/testrail_result.rb, line 30
def initialize(status = nil, comment = nil, version = nil)
  @title = status.to_s
  @status_id = RESULT_STATUSES[status]
  @comment = comment
  @version = version
  @error = nil
end