Created
January 10, 2021 21:54
-
-
Save eagleEggs/8e9ee062a57dbbc6a33775b9080102e9 to your computer and use it in GitHub Desktop.
Test Rail Python Methods (add_result, add_attachment)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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