Class: QTest::Release
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#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.
-
#properties ⇒ Object
Returns the value of attribute properties.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#web_url ⇒ Object
(also: #url)
Returns the value of attribute web_url.
Instance Method Summary collapse
-
#create_test_cycle(opts = {}) ⇒ QTest::TestCycle
Create a Test Cycle under the Release.
-
#create_test_suite(opts = {}) ⇒ QTest::TestSuite
Create a Test Suite under the Release.
-
#test_cycles ⇒ Array[QTest::TestCycle]
Get all Test Cycles under the Release.
-
#test_suites ⇒ Array[QTest::TestSuite]
Get all Test Suites under the Release.
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
#end_date ⇒ Object
Returns the value of attribute end_date.
4 5 6 |
# File 'lib/qtest/release.rb', line 4 def end_date @end_date end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/qtest/release.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/qtest/release.rb', line 3 def name @name end |
#order ⇒ Object
Returns the value of attribute order.
3 4 5 |
# File 'lib/qtest/release.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/release.rb', line 3 def pid @pid end |
#project ⇒ Object
Returns the value of attribute project.
3 4 5 |
# File 'lib/qtest/release.rb', line 3 def project @project end |
#properties ⇒ Object
Returns the value of attribute properties.
3 4 5 |
# File 'lib/qtest/release.rb', line 3 def properties @properties end |
#start_date ⇒ Object
Returns the value of attribute start_date.
4 5 6 |
# File 'lib/qtest/release.rb', line 4 def start_date @start_date end |
#web_url ⇒ Object Also known as: url
Returns the value of attribute web_url.
3 4 5 |
# File 'lib/qtest/release.rb', line 3 def web_url @web_url end |
Instance Method Details
#create_test_cycle(opts = {}) ⇒ QTest::TestCycle
Create a Test Cycle under the Release.
44 45 46 47 48 49 |
# File 'lib/qtest/release.rb', line 44 def create_test_cycle(opts = {}) create(QTest::TestCycle, project: @project.id, release: @id, attributes: opts) end |
#create_test_suite(opts = {}) ⇒ QTest::TestSuite
Create a Test Suite under the Release.
34 35 36 37 38 39 |
# File 'lib/qtest/release.rb', line 34 def create_test_suite(opts = {}) create(QTest::TestSuite, project: @project.id, release: @id, attributes: opts) end |
#test_cycles ⇒ Array[QTest::TestCycle]
Get all Test Cycles under the Release.
20 21 22 |
# File 'lib/qtest/release.rb', line 20 def test_cycles all(QTest::TestCycle, project: @project.id, release: @id) end |
#test_suites ⇒ Array[QTest::TestSuite]
Get all Test Suites under the Release.
27 28 29 |
# File 'lib/qtest/release.rb', line 27 def test_suites all(QTest::TestSuite, project: @project.id, release: @id) end |