Module: Kanoah::Services::TestCase
- Included in:
- Client
- Defined in:
- lib/services/test_case.rb
Instance Method Summary collapse
- #get_test_case_details(test_case_key) ⇒ Object
- #post_new_test_case(body) ⇒ Object
- #search_test_cases(query_string) ⇒ Object
Instance Method Details
#get_test_case_details(test_case_key) ⇒ Object
10 11 12 13 |
# File 'lib/services/test_case.rb', line 10 def get_test_case_details(test_case_key) @response = self.class.get("/rest/kanoahtests/1.0/testcase/#{test_case_key}", headers: @header) self end |
#post_new_test_case(body) ⇒ Object
5 6 7 8 |
# File 'lib/services/test_case.rb', line 5 def post_new_test_case(body) @response = self.class.post("/rest/kanoahtests/1.0/testcase", body: body.to_json, headers: @header) self end |
#search_test_cases(query_string) ⇒ Object
15 16 17 18 |
# File 'lib/services/test_case.rb', line 15 def search_test_cases(query_string) @response = self.calss.get("/rest/kanoahtests/1.0/testcase/search", headers: @header, query: {query: query_string}) self end |