Rally Software

  • 1.  Could not set value for Tester: Not authorized to update:TestCaseResult

    Posted Oct 03, 2014 06:29 AM
    Sending create result for testcase with all proper data

    INFO main 2014-10-03 12:27:43,864 - Test Case Found
    INFO main 2014-10-03 12:27:43,865 - Create test case result
    INFO main 2014-10-03 12:27:43,865 - TC = TC8276
    INFO main 2014-10-03 12:27:43,865 - Verdict= Pass
    INFO main 2014-10-03 12:27:43,865 - Notes = Test
    INFO main 2014-10-03 12:27:43,866 - Date = 2014-10-03T12:27:43
    INFO main 2014-10-03 12:27:43,866 - Build = 2.82.1
    INFO main 2014-10-03 12:27:43,866 - Tester = https://rally1.rallydev.com/slm/webservice/v2.0/user/22259923313
    INFO main 2014-10-03 12:27:43,866 - TestCase = https://rally1.rallydev.com/slm/webservice/v2.0/testcase/22836708378
    INFO main 2014-10-03 12:27:43,866 - Duration = 0.16

    getting following error message, which is not true, my user is an project admin so...

    And btw. it worked yesterday.

    "Could not set value for Tester: Not authorized to update:TestCaseResult 22259923313"



    Please help


  • 2.  Re: Could not set value for Tester: Not authorized to update:TestCaseResult

    Posted Oct 06, 2014 08:57 PM
    Hi Ivan,

    Sorry for the difficulty this is causing. I was able to replicate it and submitted a defect. I also created a formal support case to link it to this defect. It worked however when I issued the same WS API request using workspace admin credentials. The user that I originally specified as a Tester was successfully set. Also as long as I omitted Tester I was able to create a TestCaseResult using project admin credentials. Ineed it seems like the problem is specific to the Tester field and a level of permissions used to issue the requst. Once again, sorry for the difficulties.


  • 3.  Re: Could not set value for Tester: Not authorized to update:TestCaseResult

    Posted Dec 02, 2014 03:16 PM
    Hi Ivan,

    A fix for this defect has been included in the latest release. I just verified that I can no longer replicate it. Please give it a try. I tested the same curl command a few days ago and today, and today it no longer returned an error, and it successfully created a TestCaseResult while Tester was included in the payload:
     
    curl --header "zsessionid:_abc123" -H "Content-Type: application/json" -d"{\"TestCaseResult\":{\"Build\":\"11.0\",\"TestCase\":\"/testcase/1234\",\"Workspace\":\"/workspace/1011574887\",\"Verdict\":\"Pass\",\"Date\":\"2014-12-02\",\"Tester\":\"/user/777\"}}" https://rally1.rallydev.com/slm/webservice/v2.0/testcaseresult/create