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

Add_result_for_case


#1

Any ideas why this does not work? testrail.APIError: TestRail API returned HTTP 400 (“Field :case_id is not a valid test case.”).

from testrail import *

client = APIClient(‘https://xxxxxx.testrail.io/’)
client.user = 'xxxx.xxxxx@xxxxx.fi’
client.password = ‘xxxxxxxx’

result = client.send_post(
‘add_result_for_case/5/37’,
{ ‘status_id’: 1, ‘comment’: ‘This test worked fine!’ }
)
pprint(result)