Subscribe Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security. Subscribe

TestRail error One of Status ID, Assigned To or Comment is required'

Hi,

I’ve been getting this error lately when using the API:

testrail.helper.TestRailError: {
‘error’: ‘One of Status ID, Assigned To or Comment is required’,
‘post_data’: {
‘status_id’: 5,
‘comment’: ‘Problem on lower level.’,
‘elapsed’: ‘914.840698 s’,
‘custom_sw_version’: ‘1.2.2}’,
‘custom_hw_version’: ‘MX16’,
‘custom_step_results’: [{
‘content’: “automatically been generated.’}”,
‘expected’: ‘’,
‘status_id’: 1,
‘actual’: ‘GPS enable set to false.’
}
},
‘response_headers’: “{‘Date’: ‘Fri, 22 Nov 2019 05:23:58 GMT’, ‘Server’: ‘Apache/2.4.25 (Debian)’, ‘Set-Cookie’: ‘tr_session=4215437b-5bbc-4beb-a524-2210e94f6494; HttpOnly’, ‘Content-Length’: ‘64’, ‘Connection’: ‘close’, ‘Content-Type’: ‘application/json; charset=utf-8’}”,
‘url’: ‘https://testrail.mycompany.com//index.php?/api/v2/add_result/44637’,
‘status_code’: 400
}

If I try to resubmit the exact same payload it works. Do you have an idea of what it could be?

Thank you,

Gabriel