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): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
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