Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

BUG: export to XML from closed TestRun

Got a problem with export results to XML from closed tesrun:
We have a testRun with ~46 testcases in some sections structure
While tesrun is open there is no problem with export to XML.
But after we closed it, TestRail export to XML not all testcases.

There are 2 xml-files to show the difference:

  1. export_in_xml_test.xml (export from opened tesrun)
export_in_xml_test.xml

< ?xml version=“1.0” encoding=“UTF-8”? >
< run >
< id >R1000< /id >
< name >Export in XML Test< /name >
< description/ >
< config/ >
< createdon >2019-11-27T08:42:51Z< /createdon >
< completed >false< /completed >
< milestone/ >
< stats >
< passed >
< percent >100< /percent >
< count >46< /count >
< /passed >

< /stats >
< sections >
< section >
< name >Sec1< /name >
< description/ >
< tests >
< test >
< id >T32093< /id >
< title >Case05< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43594< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32094< /id >
< title >Case06< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43595< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32095< /id >
< title >Case07< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43596< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32096< /id >
< title >Case08< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43597< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32097< /id >
< title >Case09< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43598< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< /tests >
< sections >
< section >
< name >SubSec1< /name >
< description/ >
< tests >
< test >
< id >T32067< /id >
< title >Case1< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43532< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32068< /id >
< title >Case2< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43533< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32069< /id >
< title >Case3< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43534< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32070< /id >
< title >Case4< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43535< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32077< /id >
< title >Case5< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43552< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32078< /id >
< title >Case6< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43553< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32079< /id >
< title >Case7< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43554< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32080< /id >
< title >Case8< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43555< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32081< /id >
< title >Case9< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43556< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32082< /id >
< title >Case10< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43557< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32083< /id >
< title >Case11< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43558< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32084< /id >
< title >Case12< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43559< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32085< /id >
< title >Case13< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43560< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32086< /id >
< title >Case14< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43561< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32087< /id >
< title >Case15< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43562< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32088< /id >
< title >Case16< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43563< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32089< /id >
< title >Case17< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43564< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32090< /id >
< title >Case18< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43565< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32091< /id >
< title >Case19< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43566< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32092< /id >
< title >Case20< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43567< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32098< /id >
< title >Case21< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43599< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32099< /id >
< title >Case22< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43600< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32100< /id >
< title >Case23< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43601< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32101< /id >
< title >Case24< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43602< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32102< /id >
< title >Case25< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43603< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32103< /id >
< title >Case26< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43604< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32104< /id >
< title >Case27< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43605< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32105< /id >
< title >Case28< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43606< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32106< /id >
< title >Case29< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43607< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32107< /id >
< title >Case30< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43608< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32108< /id >
< title >Case31< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43609< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32109< /id >
< title >Case32< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43610< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32110< /id >
< title >Case33< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43611< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32111< /id >
< title >Case34< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43612< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32112< /id >
< title >Case35< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43613< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< /tests >
< /section >
< /sections >
< /section >
< section >
< name >Sec2< /name >
< description/ >
< tests >
< test >
< id >T32071< /id >
< title >Case21< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43536< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32072< /id >
< title >Case22< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43537< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32073< /id >
< title >Case23< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43538< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< /tests >
< /section >
< section >
< name >Sec3< /name >
< description/ >
< tests >
< test >
< id >T32074< /id >
< title >Case31< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43539< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32075< /id >
< title >Case32< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43540< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< test >
< id >T32076< /id >
< title >Case33< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43541< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< /tests >
< /section >
< /sections >
< /run >

  1. export_in_xml_test_closed.xml (export from closed tesrun)
export_in_xml_test_closed.xml

< ?xml version=“1.0” encoding=“UTF-8”? >
< run >
< id >R1000< /id >
< name >Export in XML Test< /name >
< description/ >
< config/ >
< createdon >2019-11-27T08:42:51Z< /createdon >
< completed >true< /completed >
< completedon >2019-11-27T08:43:29Z< /completedon >
< milestone/ >
< stats >
< passed >
< percent >100< /percent >
< count >46< /count >
< /passed >
< blocked >
< percent >0< /percent >
< count >0< /count >
< /blocked >
< untested >
< percent >0< /percent >
< count >0< /count >
< /untested >
< retest >
< percent >0< /percent >
< count >0< /count >
< /retest >
< failed >
< percent >0< /percent >
< count >0< /count >
< /failed >
< will_not_tested >
< percent >0< /percent >
< count >0< /count >
< /will_not_tested >
< passed_with_comments >
< percent >0< /percent >
< count >0< /count >
< /passed_with_comments >
< /stats >
< sections >
< section >
< name >Sec1< /name >
< description/ >
< /section >
< section >
< name >Sec1< /name >
< description/ >
< tests >
< test >
< id >T32093< /id >
< title >Case05< /title >
< template >Test Case (Steps)< /template >
< type >Functional< /type >
< priority >Medium< /priority >
< estimate/ >
< references/ >
< caseid >C43594< /caseid >
< status >Passed< /status >
< assignedto/ >
< inprogress/ >
< changes >

< /changes >
< /test >
< /tests >
< sections >
< section >
< name >SubSec1< /name >
< description/ >
< /section >
< /sections >
< /section >
< section >
< name >Sec2< /name >
< description/ >
< /section >
< section >
< name >Sec3< /name >
< description/ >
< /section >
< /sections >
< /run >

Tell me what I’m doing wrong or if it’s realy a BUG, fix it, please.

Hey there,

Thanks for the report. There was a known issue with closing test runs triggering the run to display in a compact view, which was affecting the details included in exports. In our testing in the latest TestRail version (6.1) this should now be fixed. If you are using a TestRail server instance, please make sure you are using the current version. If you are on TestRail Cloud or are still seeing this issue occur after updating to TestRail 6.1, please reach out to us directly at contact@gurock.com with your instance details and we’ll be happy to take a deeper look.

Thanks for your reply. We are using the current version of TestRail server, but we still have this problem. So I’d mailed to contact@gurock.com

1 Like