Skip to content

Instantly share code, notes, and snippets.

@eagleEggs
Created January 10, 2021 21:54
Show Gist options
  • Save eagleEggs/8e9ee062a57dbbc6a33775b9080102e9 to your computer and use it in GitHub Desktop.
Save eagleEggs/8e9ee062a57dbbc6a33775b9080102e9 to your computer and use it in GitHub Desktop.
Test Rail Python Methods (add_result, add_attachment)
def updateTest(self, testID, runID, tr_status_summary, statuss, ss):
result = self.client.send_post(
'add_result/{}'.format(testID),
{'status_id': int(statuss),
'comment': "{}".format(tr_status_summary)})
attachment = self.client.send_post(
'add_attachment_to_result/{}'.format(result['id']), ss)
def getTestsFromRun(self, runID):
runToTestsResults = self.client.send_get(
'get_tests/{}'.format(runID))
return runToTestsResults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment