Module: QTest::REST::TestSuite
Instance Method Summary collapse
- #create_test_suite(opts = {}) ⇒ Object
- #move_test_suite(opts = {}) ⇒ Object
-
#test_suite(opts = {}) ⇒ Object
GET ‘/projects/:project/test-suites/:id’.
-
#test_suites(opts = {}) ⇒ Object
GET ‘/projects/:project/test-suites?parentType=?&parentId=?’.
- #update_test_suite(opts = {}) ⇒ Object
Methods included from Utils
#decode_response_body, #delete, #get, #handle_response, #post, #put
Instance Method Details
#create_test_suite(opts = {}) ⇒ Object
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/qtest/rest/test_suite.rb', line 28 def create_test_suite(opts = {}) query = QueryBuilder.new .(:json) .project(opts[:project]) .test_suites .data(opts[:attributes]) .determine_parent!(opts) .build post(query) end |
#move_test_suite(opts = {}) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/qtest/rest/test_suite.rb', line 40 def move_test_suite(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suite(opts[:id]) .determine_parent!(opts) .build put(query) end |
#test_suite(opts = {}) ⇒ Object
GET ‘/projects/:project/test-suites/:id’
7 8 9 10 11 12 13 14 15 |
# File 'lib/qtest/rest/test_suite.rb', line 7 def test_suite(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suite(opts[:id]) .determine_parent!(opts) .build get(query) end |
#test_suites(opts = {}) ⇒ Object
GET ‘/projects/:project/test-suites?parentType=?&parentId=?’
18 19 20 21 22 23 24 25 26 |
# File 'lib/qtest/rest/test_suite.rb', line 18 def test_suites(opts = {}) query = QueryBuilder.new .project(opts[:project]) .test_suites .determine_parent!(opts) .build get(query) end |
#update_test_suite(opts = {}) ⇒ Object
50 51 52 53 54 55 56 57 58 59 |
# File 'lib/qtest/rest/test_suite.rb', line 50 def update_test_suite(opts = {}) query = QueryBuilder.new .(:json) .project(opts[:project]) .test_suite(opts[:id]) .data(opts[:attributes]) .build put(query) end |