TestLink API Python - How to look up test cases by assignee -
i'd list of test cases assigned specific user in testlink. i'm using testlink python api, version 0.6.4. i've been reading jetmore docs testlink.
so far have following code:
from testlink import testlinkapigeneric, testlinkhelper import testlink testlink_api_python_server_url = '<my testlink ip>' testlink_api_python_devkey = '<my testlink devkey>' my_test_link = testlinkhelper(testlink_api_python_server_url, testlink_api_python_devkey).connect(testlinkapigeneric) test_project_id = my_test_link.gettestprojectbyname('<project name>')['id'] plans = my_test_link.getprojecttestplans(test_project_id) # i've tried ['globalroleid'] userid = int(my_test_link.getuserbylogin('<user name>')[0]['dbid']) plan in plans: print(my_test_link.gettestcasesfortestplan(testplanid=plan['id'], assignedto=userid, details='full'))
this produces empty list every test plan in project:
[] [] [] ...
any appreciated.
assignedto optional parameter in function gettestcasesfortestplan(). function return all testcases associated testplan. pass username instead of userid. return testcases. testcases specific user have modify api code(xmlrpc.class.php) in testlink codebase.
Comments
Post a Comment