Class: TestRail::TestCase
- Inherits:
-
Object
- Object
- TestRail::TestCase
- Includes:
- InitializeWithApi
- Defined in:
- lib/test_rail/test_case.rb
Instance Method Summary collapse
- #add_result(args) ⇒ Object
-
#update ⇒ Object
Save changes made to this object back in testrail.
Methods included from InitializeWithApi
Instance Method Details
#add_result(args) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/test_rail/test_case.rb', line 20 def add_result( args ) run_id = args[:run_id] or raise "Need to provide a run ID to store result against" status = args[:status] or raise "Need to provide a result status (e.g. :status => :passed)" version = args[:version] @api.add_result_for_case( :case_id => id, :run_id => run_id, :status => status, :version => version ) end |
#update ⇒ Object
Save changes made to this object back in testrail
16 17 18 |
# File 'lib/test_rail/test_case.rb', line 16 def update @api.update_case( :case_id => @id, :title => @title ) end |