How can I get test cases for a test run?

Viewed 30

I am using a python wrapper of the TestRail API below. https://pypi.org/project/testrail-api/

To get the tests of the existing TestRun, I wrote the following code, but it failed with an error "AttributeError: 'dict' object has no attribute 'id'".

Is there anyone who can help me to solve this error?

api = TestRailAPI("https://testrail.xxxx.com", "e-mail", "key")
tests = api.tests.get_tests(run_id=1111)
0 Answers
Related