Sha256: 9709ba34a49e755cc837e35e897cfc278b278723b51ad83b27045a044a0cd28f
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
module QTest class Module < QTest::Base attr_accessor :id, :project, :module # Get a specific child Module under the Module. # # @param opts [Hash] # @option id [Integer] id of the child Module # @return [QTest::Module] def child_module(opts = {}) unique(QTest::Module, project: @project.id, module: @id, id: opts[:id]) end # Get all child Modules under the Module. # # @param opts [Hash] # @option search [String] keyword to search for in a Module name # @return [Array[QTest::Module]] def child_modules(opts = {}) all(QTest::Module, project: @project.id, module: @id, search: opts[:search]) end # Get all Test Cases under the Module. # # @return [Array[QTest::TestCase]] def test_cases all(QTest::TestCase, project: @project.id, module: @id) end # 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] def create_test_case(opts = {}) create(QTest::TestCase, project: @project.id, module: @id, attributes: opts) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qtest-ruby-0.1.0 | lib/qtest/module.rb |