Skip to content

New TestRail API breaks get_tests() in publish_results #12

@steverawlins-zebra

Description

@steverawlins-zebra

TestRail 7.2.1 release now mandates paging on get-tests API with no backwards-compatibility option.

As currently coded, this API change causes a "string indices must be integers" TypeError when fetching the list of test-cases for a given Report:

  • python /rf_2_tr/robotframework2testrail.py --tr-config=**** --tr-run-id=3036 /home/jenkins/agent/workspace/Robot_Tests_-_Daily_develop/test-output/user-management_TestSuite_Workspace_Service.xml
    Publish in Test Run #3036
    Traceback (most recent call last):
    File "/rf_2_tr/robotframework2testrail.py", line 285, in
    if publish_results(
    File "/rf_2_tr/robotframework2testrail.py", line 126, in publish_results
    case_id_in_testrun_list = [str(tc['case_id']) for tc in testcases_in_testrun_list]
    File "/rf_2_tr/robotframework2testrail.py", line 126, in
    case_id_in_testrun_list = [str(tc['case_id']) for tc in testcases_in_testrun_list]
    TypeError: string indices must be integers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions