With testrun issue types, there are two statuses:
- Issue Status: In Use, Accepted, Rejected, ...
- Test Run Status: PASS, FAIL, ABORTED, ...
With ONLY the testrun key (no testexec key), so TEST-123, how can I change the testrun status? Or find the ID of the issue.
How to achieve it in the end is simple via PUT, but it requires me knowing the issue ID already:
.../rest/raven/1.0/api/testrun/<issueID>/status?status=<statusTYPE>
- where <issueID> is the ID of the TEST-123 issue
- <statusTYPE> is PASS, FAIL, ABORTED, ...
As for the header, I would only need:
headersStatus = {
"Authorization": "Basic " + self.user_password,
"Content-Type": "application/json",
}
Missing information is then only the issueID.