Class: QTest::Release

Inherits:
Base
  • Object
show all
Defined in:
lib/qtest/release.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject

Returns the value of attribute end_date.



4
5
6
# File 'lib/qtest/release.rb', line 4

def end_date
  @end_date
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/qtest/release.rb', line 3

def id
  @id
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/qtest/release.rb', line 3

def name
  @name
end

#orderObject

Returns the value of attribute order.



3
4
5
# File 'lib/qtest/release.rb', line 3

def order
  @order
end

#pidObject Also known as: tag

Returns the value of attribute pid.



3
4
5
# File 'lib/qtest/release.rb', line 3

def pid
  @pid
end

#projectObject

Returns the value of attribute project.



3
4
5
# File 'lib/qtest/release.rb', line 3

def project
  @project
end

#propertiesObject

Returns the value of attribute properties.



3
4
5
# File 'lib/qtest/release.rb', line 3

def properties
  @properties
end

#start_dateObject

Returns the value of attribute start_date.



4
5
6
# File 'lib/qtest/release.rb', line 4

def start_date
  @start_date
end

#web_urlObject 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.

Returns:



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.

Returns:



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_cyclesArray[QTest::TestCycle]

Get all Test Cycles under the Release.

Returns:



20
21
22
# File 'lib/qtest/release.rb', line 20

def test_cycles
  all(QTest::TestCycle, project: @project.id, release: @id)
end

#test_suitesArray[QTest::TestSuite]

Get all Test Suites under the Release.

Returns:



27
28
29
# File 'lib/qtest/release.rb', line 27

def test_suites
  all(QTest::TestSuite, project: @project.id, release: @id)
end