Class: QTest::TestCycle

Inherits:
Base
  • Object
show all
Defined in:
lib/qtest/test_cycle.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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#orderObject

Returns the value of attribute order.



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

def order
  @order
end

#pidObject 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

#projectObject

Returns the value of attribute project.



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

def project
  @project
end

#releaseObject

Returns the value of attribute release.



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

def release
  @release
end

#test_cycleObject

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_urlObject 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.

Returns:



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.

Returns:



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

Get all Test Cycles under the Test Cycle.

Returns:



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_runsArray[QTest::TestRun]

Get all Test Runs under the Test Cycle.

Returns:



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_suitesArray[QTest::TestSuite]

Get all Test Suites under the Test Cycle.

Returns:



26
27
28
# File 'lib/qtest/test_cycle.rb', line 26

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