Red Hat Bugzilla – Bug 801110
[FEAT] - Need a way to automate the 'import from XML' files
Last modified: 2016-05-26 09:26:46 EDT
Description of problem:
At present, the user can import multiple test cases from an XML file via the UI. If the user has an XML file for each of several test plans, however, he must either perform the import manually in the UI for each plan, or parse out the XML and create the individual test cases via the XMPRPC API.
Can we add an XMLRPC method to import multiple test cases from an XML file in s single step? Thx!
Version-Release number of selected component (if applicable):
Steps to Reproduce:
This FEAT was added in tcms 3.8.0.
with open('tcms.xml', 'rb') as f:
# 3798 is plan id
print "error "
Verify 3.8.0-1 on stage -->PASS
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())