Bug 723830 - XMLRPC: TestCase.update() should allow specifying default_tester by uid
Summary: XMLRPC: TestCase.update() should allow specifying default_tester by uid
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: TCMS
Classification: Other
Component: Application
Version: 3.4.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 3.8.0
Assignee: jianchen
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-21 09:49 UTC by Petr Šplíchal
Modified: 2016-06-01 01:42 UTC (History)
8 users (show)

Fixed In Version: 3.8.0-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-26 13:21:01 UTC


Attachments (Terms of Use)

Description Petr Šplíchal 2011-07-21 09:49:23 UTC
Description of problem:

Currently, updating a default tester of a test case requires to
specify user name or email. Please extend the update() function to
accept user id as well. Thanks.

Version-Release number of selected component (if applicable):
Nitrate 3.4.1

Steps to Reproduce:
TestCase.update(6125, {'default_tester': 2117 })

Actual results:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "nitrate.py", line 120, in request_with_cookies
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
    return u.close()
  File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
    raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 1: "AttributeError: 'int' object has no attribute 'strip'">

Comment 1 jianchen 2012-06-15 06:10:29 UTC
This bug fix in tcms 3.8.0.
Extend the update(0 function to accept user id.

Comment 2 jihu 2012-07-25 09:43:46 UTC
Verify 3.8.0-1 on stage -->PASS

Verify steps:
1.handle.server.TestCase.update(175584, {'default_tester': 2117 })

Actual result:
return user id name as default tester,and the UI display the user mail.


Note You need to log in before you can comment on or make changes to this bug.