class QTest::TestCase

Attributes

description[RW]
id[RW]
module[RW]
name[RW]
order[RW]
pid[RW]
precondition[RW]
project[RW]
tag[RW]
test_case_version_id[RW]
test_run[RW]
url[RW]
version[RW]
web_url[RW]

Public Class Methods

find_by(opts = {}) click to toggle source
Calls superclass method QTest::Base::find_by
# File lib/qtest/test_case.rb, line 4
def find_by(opts = {})
  opts[:page] ||= 1
  super
end

Public Instance Methods

step(opts = {}) click to toggle source

Get a specific Test Step under the Test Case.

@param opts [Hash] @option id [Integer] id of the Test Step @return [QTest::TestStep]

# File lib/qtest/test_case.rb, line 22
def step(opts = {})
  unique(QTest::TestStep,
         project: @project.id,
         test_case: @id,
         id: opts[:id])
end
steps() click to toggle source

Get all Test Steps under the Test Case.

@return [Array]

# File lib/qtest/test_case.rb, line 32
def steps
  all(QTest::TestStep, project: @project.id, test_case: @id)
end