Module: Kanoah::Services::TestResult
- Included in:
- Client
- Defined in:
- lib/services/test_result.rb
Instance Method Summary collapse
Instance Method Details
#post_new_result(scenario) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/services/test_result.rb', line 5 def post_new_result(scenario) @response = self.class.post("/rest/kanoahtests/1.0/testresult", body: { 'projectKey' => @project_id, 'testCaseKey'=> scenario[:test_case] ,'status' => scenario[:status], 'environment' => @environment, 'comment' => scenario[:comment], 'executionTime' => scenario[:execution_time], 'scriptResults' => scenario[:script_results]}.to_json, headers: @header) self end |