class QTest::TestSuite

Attributes

id[RW]
project[RW]
release[RW]
test_cycle[RW]

Public Instance Methods

create_test_run(opts = {}) click to toggle source

Create a Test Run under the Test Suite.

@return [QTest::TestRun]

# File lib/qtest/test_suite.rb, line 15
def create_test_run(opts = {})
  create(QTest::TestRun,
         project: @project.id,
         test_suite: @id,
         attributes: opts)
end
move_to(opts = {}) click to toggle source

Move the Test Suite under a different parent.

@return [QTest::TestSuite]

# File lib/qtest/test_suite.rb, line 25
def move_to(opts = {})
  move(project: @project.id,
       test_suite: @id,
       release: opts[:release],
       test_cycle: opts[:test_cycle])

  if opts[:release]
    @release = unique(QTest::Release,
                      project: @project.id,
                      release: opts[:release])
  elsif opts[:test_cycle]
    @test_cycle = unique(QTest::TestCycle,
                         project: @project.id,
                         test_cycle: opts[:test_cycle])
  end

  self
end
Also aliased as: move_under
move_under(opts = {})
Alias for: move_to
test_runs() click to toggle source

Get all Test Runs for the Test Suite.

@return [Array]

# File lib/qtest/test_suite.rb, line 8
def test_runs
  all(QTest::TestRun, project: @project.id, test_suite: @id)
end