| Summary: | [FEAT] - Need a way to automate the 'import from XML' files | ||
|---|---|---|---|
| Product: | [Other] TCMS | Reporter: | Len DiMaggio <ldimaggi> |
| Component: | Distribution | Assignee: | Yang Ren <ryang> |
| Status: | VERIFIED --- | QA Contact: | Nobody <nobody> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.6 | CC: | jcai, junzhang, ryang, xkuang, yuwang |
| Target Milestone: | --- | ||
| Target Release: | 3.8.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 3.8.0-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Len DiMaggio
2012-03-07 17:17:02 UTC
This FEAT was added in tcms 3.8.0.
example:
try:
with open('tcms.xml', 'rb') as f:
# 3798 is plan id
proxy.TestPlan.import_case_via_XML(3798, f.read())
except:
print "error "
Thanks.
Verify 3.8.0-1 on stage -->PASS
Verify steps:
1. assume there is a xml file,
>>>fb = open('/home/xin/downloads/tcms-testcases-2012-07-26.xml', 'rb')
2. TestPlan.import_case_via_XML(486, fb.read())
Actual result:
works well
|