Skip to content

Commit

Permalink
feat: get test run details
Browse files Browse the repository at this point in the history
  add get_test_run method to get the test run details
  • Loading branch information
Kurt Sansom committed May 19, 2022
1 parent d03cb91 commit 0b55893
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions py_jama_rest_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,20 @@ def get_testruns(self, test_cycle_id, allowed_results_per_page=__allowed_results
testrun_data = self.__get_all(resource_path, allowed_results_per_page=allowed_results_per_page)
return testrun_data

def get_test_run(self, test_run_id):
"""This method will get a test run details from Jama through the API
Args:
test_run_id: the api id of the test run
"""
resource_path = 'testruns/' + str(test_run_id)
try:
response = self.__core.get(resource_path)
except CoreException as err:
py_jama_rest_client_logger.error(err)
raise APIException(str(err))
JamaClient.__handle_response_status(response)
return response.json()['data']

def get_items_upstream_relationships(self, item_id, allowed_results_per_page=__allowed_results_per_page):
"""
Returns a list of all the upstream relationships for the item with the specified ID.
Expand Down

0 comments on commit 0b55893

Please sign in to comment.