Class: QTest::TestRun
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#project ⇒ Object
Returns the value of attribute project.
-
#release ⇒ Object
Returns the value of attribute release.
-
#test_cycle ⇒ Object
Returns the value of attribute test_cycle.
-
#test_suite ⇒ Object
Returns the value of attribute test_suite.
Instance Method Summary collapse
-
#submit_test_log(opts = {}) ⇒ Hash
Submit an execution log for the Test Run.
Methods inherited from Base
#all, #create, find_by, #initialize, method_missing, #move, #unique
Constructor Details
This class inherits a constructor from QTest::Base
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/qtest/test_run.rb', line 3 def id @id end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/qtest/test_run.rb', line 3 def project @project end |
#release ⇒ Object
Returns the value of attribute release.
3 4 5 |
# File 'lib/qtest/test_run.rb', line 3 def release @release end |
#test_cycle ⇒ Object
Returns the value of attribute test_cycle.
3 4 5 |
# File 'lib/qtest/test_run.rb', line 3 def test_cycle @test_cycle end |
#test_suite ⇒ Object
Returns the value of attribute test_suite.
3 4 5 |
# File 'lib/qtest/test_run.rb', line 3 def test_suite @test_suite end |
Instance Method Details
#submit_test_log(opts = {}) ⇒ Hash
Submit an execution log for the Test Run.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/qtest/test_run.rb', line 10 def submit_test_log(opts = {}) opts[:status] = client.execution_statuses(project: @project.id) .select do |status| status[:name].downcase.to_sym == opts[:status] end.first client.submit_test_log(project: @project.id, test_run: @id, attributes: opts) end |