Bug 843847
| Summary: | TestCase extra_link field cannot be set upon test case creation | ||
|---|---|---|---|
| Product: | [Other] TCMS | Reporter: | Petr Šplíchal <psplicha> |
| Component: | XMLRPC | Assignee: | Yang Ren <ryang> |
| Status: | VERIFIED --- | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.7.0 | CC: | ohudlick, ryang |
| Target Milestone: | --- | ||
| Target Release: | 3.8.1 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Petr Šplíchal
2012-07-27 14:45:42 UTC
Hi Petr,
I run those two methods(TestCase.create(), TestCase.update) on env production just now, they worked well for me. detail steps are as follows,
1. create a new testcase providing extra_link field:
>>> content = {
'category': 240,
'product': 243,
'summary': 'testsooooooooooooo',
'extra_link': "http://some.host.com/",
'priority': 3}
>>> TestCase.create(content)
=======result==============
{'alias': '',
'arguments': '',
'attachment': [],
'author': 'xgao',
'author_id': 2923,
'case_id': 204932,
'case_status': 'PROPOSED',
'case_status_id': 1,
'category': '--default--',
'category_id': 240,
'component': [],
'create_date': '2012-09-24 13:39:45',
'default_tester': None,
'default_tester_id': None,
'estimated_time': '00:00:00',
'extra_link': 'http://some.host.com/',
'is_automated': 0,
'is_automated_proposed': False,
'notes': '',
'plan': [],
'priority': 'P3',
'priority_id': 3,
'requirement': '',
'reviewer': None,
'reviewer_id': None,
'script': '',
'summary': 'testsooooooooooooo',
'tag': [],
'text': {'action': '',
'author': 'xgao',
'author_id': 2923,
'breakdown': '',
'case': 'testsooooooooooooo',
'case_id': 204932,
'case_text_version': 1,
'create_date': '2012-09-24 13:39:45',
'effect': '',
'id': 298802,
'setup': ''}}
===========================
2. update above testcase's extra_link field,
>>> TestCase.update(204932 ,{'extra_link': 'http://www.baidu.com'})
================result==================
[{'alias': '',
'arguments': '',
'attachment': [],
'author': 'xgao',
'author_id': 2923,
'case_id': 204932,
'case_status': 'PROPOSED',
'case_status_id': 1,
'category': '--default--',
'category_id': 240,
'component': [],
'create_date': '2012-09-24 13:39:45',
'default_tester': None,
'default_tester_id': None,
'estimated_time': '00:00:00',
'extra_link': 'http://www.baidu.com/',
'is_automated': 0,
'is_automated_proposed': False,
'notes': '',
'plan': [],
'priority': 'P3',
'priority_id': 3,
'requirement': '',
'reviewer': None,
'reviewer_id': None,
'script': '',
'summary': 'testsooooooooooooo',
'tag': []}]
=======================================
So, could you check your script, trying to run it again? See whether it works well now? And if you still get error, pls give us your detail info, and tell us how to reproduce your problem.
Thanks very much.
Xin
This bug has been fixed in tcms3.8.0. The xmlrpc reference doc will be updated in tcms3.8.1. Verify 3.8.1 on tcms-test -->PASS Verify steps: check doc Actual result: doc is updated. |