class QTest::Module

Attributes

id[RW]
module[RW]
project[RW]

Public Instance Methods

child_module(opts = {}) click to toggle source

Get a specific child Module under the Module.

@param opts [Hash] @option id [Integer] id of the child Module @return [QTest::Module]

# File lib/qtest/module.rb, line 10
def child_module(opts = {})
  unique(QTest::Module,
         project: @project.id,
         module: @id,
         id: opts[:id])
end
child_modules(opts = {}) click to toggle source

Get all child Modules under the Module.

@param opts [Hash] @option search [String] keyword to search for in a Module name @return [Array]

# File lib/qtest/module.rb, line 22
def child_modules(opts = {})
  all(QTest::Module,
      project: @project.id,
      module: @id,
      search: opts[:search])
end
create_test_case(opts = {}) click to toggle source

Create a Test Case under the Module.

@param opts [Hash] @option name [String] @option description [String] @option properties [Array] @option test_steps [Array] @return [QTest::TestCase]

# File lib/qtest/module.rb, line 46
def create_test_case(opts = {})
  create(QTest::TestCase,
         project: @project.id,
         module: @id,
         attributes: opts)
end
test_cases() click to toggle source

Get all Test Cases under the Module.

@return [Array]

# File lib/qtest/module.rb, line 32
def test_cases
  all(QTest::TestCase,
      project: @project.id,
      module: @id)
end