Sha256: d80a9a96fff8a9a91b05c8992b346d05aabc0194126cde94d5911fd21992ff0d
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
module QTest module REST module TestSuite include QTest::REST::Utils # GET '/projects/:project/test-suites/:id' def test_suite(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suite(opts[:id]) .determine_parent!(opts) .build get(query) end # GET '/projects/:project/test-suites?parentType=?&parentId=?' def test_suites(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suites .determine_parent!(opts) .build get(query) end def create_test_suite(opts = {}) query = QueryBuilder.new .options(:json) .project(opts[:project]) .test_suites .data(opts[:attributes]) .determine_parent!(opts) .build post(query) end def move_test_suite(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suite(opts[:id]) .determine_parent!(opts) .build put(query) end def update_test_suite(opts = {}) query = QueryBuilder.new .options(:json) .project(opts[:project]) .test_suite(opts[:id]) .data(opts[:attributes]) .build put(query) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qtest-ruby-0.1.0 | lib/qtest/rest/test_suite.rb |