Method: Endpoints#get_results_for_run

Defined in:
lib/endpoints.rb

#get_results_for_run(run_id, opts = {}) ⇒ Object

Returns a list of test results for a test run

Examples:

Endpoint Example

GET index.php?/api/v2/get_results_for_run/1

Code

client.get_results_for_run(1, {"created_after": 12345, "created_before": 12345, "created_by": 1, "limit": 5, "status_id": 1})

Request

{"created_after": 12345, "created_before": 12345, "created_by": 1, "limit": 5, "status_id": 1}

Return

see get_results

Parameters:

  • run_id (int)
  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • created_after (timestamp)
  • created_before (timestamp)
  • created_by (int(list))
  • limit (int)
  • offset (int)
  • status_id (int(list))

See Also:



928
929
930
931
# File 'lib/endpoints.rb', line 928

def get_results_for_run(run_id, opts = {})
  options = param_stringify(opts)
  send_get("get_results_for_run/#{run_id.to_s}&#{options}")
end