Support

Expand all | Collapse all

RestAPI error message: TestRun Items is not found

  • 1.  RestAPI error message: TestRun Items is not found

    Posted 12-12-2019 23:14
    Hi all,

    I am trying to create a relationship between Defect Item and a TestRun using restAPI.

    This is my configuration:
    body:{
    "fromItem":3042781,
    "toItem":3042786,
    "relationshipType": 5
    }​
    
    "Content-Type", "application/json"
    https://domain/contour/rest/latest/relationships
    The Response is :

    {
      "meta": {
        "status": "Not Found",
        "timestamp": "2019-12-13T07:04:03.990+0000",
        "message": "The item with id 3042786 was not found"
      }
    }
    I am sure that the Item 3042786 is found.

    Best Regards,


    ------------------------------
    Ibrahim F.
    PIDPana
    ------------------------------


  • 2.  RE: RestAPI error message: TestRun Items is not found

    Posted 12-13-2019 11:39
    Edited by Godiva Hunt 12-13-2019 11:39
    Hi Ibrahim

    Can you confirm with me that item 3042786 exists? I'd like you to try to use swagger and the GET /items/{id} endpoint?

    Thank you


    ------------------------------
    Godiva Hunt
    ------------------------------



  • 3.  RE: RestAPI error message: TestRun Items is not found

    Posted 12-16-2019 00:36
    HEllo Godiva,

    Yes it is their and when I use the swagger or Postman or my own client: 
    https://domain/contour/rest/latest/testruns/3042786
    It listout the details of that TestRun.
    The test Run in Status "PASSED" and  I tried out also when it was "NOT_RUN".

    I realy need this for very important Business case in our Company.

    Best Regards,
    I.F


    ------------------------------
    Ibrahim Farhan
    PIDPana
    ------------------------------



  • 4.  RE: RestAPI error message: TestRun Items is not found

    Posted 01-02-2020 06:18
    Any action here?

    ------------------------------
    Ibrahim Farhan
    PIDPana
    ------------------------------



  • 5.  RE: RestAPI error message: TestRun Items is not found

    Posted 01-02-2020 08:02
    @Ibrahim

    In this case, it would be best to make a ticket with our Technical Support team. We will need to look into things further to find out why this item is not getting recognized in this case. Curious, are you making any other relationships successfully using this script?

    Best,

    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------



  • 6.  RE: RestAPI error message: TestRun Items is not found

    Posted 01-07-2020 22:30
    Hi,

    I made a ticket and they said, this is a bug which can be reproduced.
    I am waiting for a solution.

    BR,
    Ibrahim

    ------------------------------
    Ibrahim Farhan
    PIDPana
    ------------------------------



  • 7.  RE: RestAPI error message: TestRun Items is not found

    Posted 01-08-2020 07:18
    Ibrahim:

    Thank you for circling back with us on the Community. Yes, I see that we logged defect:

    SOS-DEF-4583 Unable to relate test runs to items via the REST API.
    The current workaround is: use the UI to create relationships between test runs and items.

    Ibrahim, you can check the Release Notes with this defect key (SOS-DEF-4583) to check and see if this is fixed.

    Best, 


    ------------------------------
    Chloe Elliott
    Jama Software
    Portland OR
    ------------------------------