Class: QTest::TestCycle
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#order ⇒ Object
Returns the value of attribute order.
-
#pid ⇒ Object
(also: #tag)
Returns the value of attribute pid.
-
#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.
-
#web_url ⇒ Object
(also: #url)
Returns the value of attribute web_url.
Instance Method Summary collapse
- #create_test_cycle(opts = {}) ⇒ Object
-
#create_test_run(opts = {}) ⇒ QTest::TestRun
Create a Test Run under the Test Cycle.
-
#create_test_suite(opts = {}) ⇒ QTest::TestSuite
Create a Test Suite under the Test Cycle.
-
#test_cycles ⇒ Array[QTest::TestCycle]
Get all Test Cycles under the Test Cycle.
-
#test_runs ⇒ Array[QTest::TestRun]
Get all Test Runs under the Test Cycle.
-
#test_suites ⇒ Array[QTest::TestSuite]
Get all Test Suites under the Test Cycle.
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
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def id @id end |
#order ⇒ Object
Returns the value of attribute order.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def order @order end |
#pid ⇒ Object Also known as: tag
Returns the value of attribute pid.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def pid @pid end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def project @project end |
#release ⇒ Object
Returns the value of attribute release.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def release @release end |
#test_cycle ⇒ Object
Returns the value of attribute test_cycle.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def test_cycle @test_cycle end |
#web_url ⇒ Object Also known as: url
Returns the value of attribute web_url.
3 4 5 |
# File 'lib/qtest/test_cycle.rb', line 3 def web_url @web_url end |
Instance Method Details
#create_test_cycle(opts = {}) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/qtest/test_cycle.rb', line 16 def create_test_cycle(opts = {}) create(QTest::TestCycle, project: @project.id, test_cycle: @id, attributes: opts) end |
#create_test_run(opts = {}) ⇒ QTest::TestRun
Create a Test Run under the Test Cycle.
43 44 45 46 47 48 |
# File 'lib/qtest/test_cycle.rb', line 43 def create_test_run(opts = {}) create(QTest::TestRun, project: @project.id, test_cycle: @id, attributes: opts) end |
#create_test_suite(opts = {}) ⇒ QTest::TestSuite
Create a Test Suite under the Test Cycle.
33 34 35 36 37 38 |
# File 'lib/qtest/test_cycle.rb', line 33 def create_test_suite(opts = {}) create(QTest::TestSuite, project: @project.id, test_cycle: @id, attributes: opts) end |
#test_cycles ⇒ Array[QTest::TestCycle]
Get all Test Cycles under the Test Cycle.
12 13 14 |
# File 'lib/qtest/test_cycle.rb', line 12 def test_cycles all(QTest::TestCycle, project: @project.id, test_cycle: @id) end |
#test_runs ⇒ Array[QTest::TestRun]
Get all Test Runs under the Test Cycle.
53 54 55 |
# File 'lib/qtest/test_cycle.rb', line 53 def test_runs all(QTest::TestRun, project: @project.id, test_cycle: @id) end |
#test_suites ⇒ Array[QTest::TestSuite]
Get all Test Suites under the Test Cycle.
26 27 28 |
# File 'lib/qtest/test_cycle.rb', line 26 def test_suites all(QTest::TestSuite, project: @project.id, test_cycle: @id) end |