TestCaseRun.Update in bugzilla 3.6.1

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

TestCaseRun.Update in bugzilla 3.6.1

rags-5
Hi,

      I am trying to find a way to update the notes field for a given
testcase run. Can you please let me know the format to update the
notes field of a testcase run in bugzilla 3.6.1 version.
My case_id = 5243 run_id = 4 build_id = 5  and env_id = 7

(‘TestCaseRun.update’ , { run_id => 4, case_id => 5243,build_id => 5 ,
env_id => 7, {notes => “MY NOTES”}); - ideally this should have
updated the notes field in the Testcase runs. But this not happeneing
Can you please let me know the right way of using TestCaseRun.update
to update the notes field

Thanks
Raghavendra P.
_______________________________________________
support-webtools mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-webtools
Reply | Threaded
Open this post in threaded view
|

Re: TestCaseRun.Update in bugzilla 3.6.1

Nathan Parrish-2
I am only updating status rather than notes, and also I'm still using
the positional rather than keyword arguments, so my query looks more like:
   execute("TestCaseRun.update",[run_id, case_id, build_id,
                                 environment_id,{'status':status}])

alternatively, if you can get the case_run_id, you should be able to do:
   execute("TestCaseRun.update",[case_run_id, {'status':status}])

and yes, the above is python rather than perl.

also, it might be helpful to elaborate on "not happening" -- are you
getting an error of some sort, or just silent failure?

I've found that the error handling is pretty awful; whether that's due
to bugzilla or the xmlrpc stack I'm not sure.  in any case, I typically
end up pulling out a protocol analyzer (tcpdump/wireshark) to hunt down
the error messages and/or actual raw xmlprc response.

rags wrote:

> Hi,
>
>       I am trying to find a way to update the notes field for a given
> testcase run. Can you please let me know the format to update the
> notes field of a testcase run in bugzilla 3.6.1 version.
> My case_id = 5243 run_id = 4 build_id = 5  and env_id = 7
>
> (‘TestCaseRun.update’ , { run_id => 4, case_id => 5243,build_id => 5 ,
> env_id => 7, {notes => “MY NOTES”}); - ideally this should have
> updated the notes field in the Testcase runs. But this not happeneing
> Can you please let me know the right way of using TestCaseRun.update
> to update the notes field
>
> Thanks
> Raghavendra P.
> _______________________________________________
> support-webtools mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/support-webtools
_______________________________________________
support-webtools mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-webtools
Reply | Threaded
Open this post in threaded view
|

Re: TestCaseRun.Update in bugzilla 3.6.1

Nathan Parrish-2
did you look deeper to see whether your xmlrpc stack is hiding the error
message from you?  when I try this using the caserunid, I'm getting the
following error:
 >>> client.execute("TestCaseRun.update", [1824218, {'status':'this is
some new status!'}])
array(java.lang.Object, [{ERROR=You do not have rights to edit this test
case}])

I seem to get this even if through the webui I explicitly have the
caserun assigned to the automation user.  so there may be a bug here.

Raghavendra Prakash wrote:

> Hi Nathan,
>
>           Thanks for the reply.However i dont get any errors for attempting to update the notes field of a test-case run.I am able to update the status field without any issue.I need the format for updating the notes field for a testcaserun.
>
> Thanks,
> Raghavendra P.
>
>
> -----Original Message-----
> From: Nathan Parrish [mailto:[hidden email]]
> Sent: Fri 12/3/2010 10:44 AM
> To: rags
> Cc: [hidden email]; Raghavendra Prakash
> Subject: Re: TestCaseRun.Update in bugzilla 3.6.1
>  
> I am only updating status rather than notes, and also I'm still using
> the positional rather than keyword arguments, so my query looks more like:
>    execute("TestCaseRun.update",[run_id, case_id, build_id,
>                                  environment_id,{'status':status}])
>
> alternatively, if you can get the case_run_id, you should be able to do:
>    execute("TestCaseRun.update",[case_run_id, {'status':status}])
>
> and yes, the above is python rather than perl.
>
> also, it might be helpful to elaborate on "not happening" -- are you
> getting an error of some sort, or just silent failure?
>
> I've found that the error handling is pretty awful; whether that's due
> to bugzilla or the xmlrpc stack I'm not sure.  in any case, I typically
> end up pulling out a protocol analyzer (tcpdump/wireshark) to hunt down
> the error messages and/or actual raw xmlprc response.
>
> rags wrote:
>> Hi,
>>
>>       I am trying to find a way to update the notes field for a given
>> testcase run. Can you please let me know the format to update the
>> notes field of a testcase run in bugzilla 3.6.1 version.
>> My case_id = 5243 run_id = 4 build_id = 5  and env_id = 7
>>
>> ('TestCaseRun.update' , { run_id => 4, case_id => 5243,build_id => 5 ,
>> env_id => 7, {notes => "MY NOTES"}); -? ideally this should have
>> updated the notes field in the Testcase runs. But this not happeneing
>> Can you please let me know the right way of using TestCaseRun.update
>> to update the notes field
>>
>> Thanks
>> Raghavendra P.
>> _______________________________________________
>> support-webtools mailing list
>> [hidden email]
>> https://lists.mozilla.org/listinfo/support-webtools
>
_______________________________________________
support-webtools mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-webtools
Reply | Threaded
Open this post in threaded view
|

Re: TestCaseRun.Update in bugzilla 3.6.1

desolat-2
In reply to this post by rags-5
This is a reported bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=610597

I'm having the same issue. Is there gone be any work on this in the near future? Any more help needed?

Regards, Chris
_______________________________________________
support-webtools mailing list
[hidden email]
https://lists.mozilla.org/listinfo/support-webtools