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.
9 10 11 12 13 14 15 16 |
# File 'lib/testrail/test_case.rb', line 9 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.
7 8 9 |
# File 'lib/testrail/test_case.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/testrail/test_case.rb', line 7 def name @name end |
#section ⇒ Object (readonly)
Returns the value of attribute section.
7 8 9 |
# File 'lib/testrail/test_case.rb', line 7 def section @section end |
Instance Method Details
#create_result(success:, comment:) ⇒ Object
18 19 20 |
# File 'lib/testrail/test_case.rb', line 18 def create_result(success:, comment:) TestResult.new(test_case: self, success: success, comment: comment) end |