Class: TestRail::TestCase
- Inherits:
-
Object
- Object
- TestRail::TestCase
- Defined in:
- lib/testrail/test_case.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#section ⇒ Object
readonly
Returns the value of attribute section.
Instance Method Summary collapse
- #create_result(success:, comment:) ⇒ Object
-
#initialize(id:, name:, section:, testrail_client:) ⇒ TestCase
constructor
A new instance of TestCase.
Constructor Details
#initialize(id:, name:, section:, testrail_client:) ⇒ TestCase
Returns a new instance of TestCase.
23 24 25 26 27 28 29 30 |
# File 'lib/testrail/test_case.rb', line 23 def initialize(id:, name:, section:, testrail_client:) raise(ArgumentError, 'test case id nil') if id.nil? raise(ArgumentError, 'test case name nil') if name.nil? @id = id @name = name @section = section @testrail_client = testrail_client end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
21 22 23 |
# File 'lib/testrail/test_case.rb', line 21 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
21 22 23 |
# File 'lib/testrail/test_case.rb', line 21 def name @name end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
21 22 23 |
# File 'lib/testrail/test_case.rb', line 21 def section @section end |
Instance Method Details
#create_result(success:, comment:) ⇒ Object
32 33 34 |
# File 'lib/testrail/test_case.rb', line 32 def create_result(success:, comment:) TestResult.new(test_case: self, success: success, comment: comment) end |