Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008121TestLinkExport/Importpublic2017-10-29 23:502017-10-30 21:21
ReporterMr.Bricodage 
Assigned Tofman 
PrioritynormalSeverityfeature requestReproducibilityN/A
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.9.16 (2016 Q4) 
Fixed in Version1.9.17 (2017 Q2) 
Summary0008121: Handle attachments in Req - Req Specs - TestSuites - TestCases XML export / import
DescriptionAttachments are not present in XML Export / Import for Req and TestCases elements.
It is needed to export dataset from one testlink instance to import it in other instance.
Steps To ReproduceN/A
Additional InformationPR to follow.

XML format for attachments :
<attachments>
    <attachment>
        <id><![CDATA[(int)attachment_id]]></id>
        <name><![CDATA[(string)attachment_name]]></name>
        <file_type><![CDATA[(string)attachment_file_type]]></file_type>
        <title><![CDATA[(string)attachment_title]]></title>
        <date_added><![CDATA[(string)attachement_date_added]]></date_added>
        <content><![CDATA[((string)BASE64(attachement_content)]]></content>
    </attachment>
    <attachment>
        <id><![CDATA[(int)attachment_id]]></id>
        <name><![CDATA[(string)attachment_name]]></name>
        <file_type><![CDATA[(string)attachment_file_type]]></file_type>
        <title><![CDATA[(string)attachment_title]]></title>
        <date_added><![CDATA[(string)attachement_date_added]]></date_added>
        <content><![CDATA[((string)BASE64(attachement_content)]]></content>
    </attachment>
</attachments>

User can choose if attachments have to be exported (disabled by default to reduce XML file size).

To avoid adding the same attachment each time a XML is uploaded (if Req/TC update through XML with attachments data present), a filter is applied when importing attachments : import each attachment only if it is not already linked to the element in database (compare attachment ID + target Req/TC ID couple).
TagsNo tags attached.
Database (MySQL,Postgres,etc)Any
Browser
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships
child of 0007817new Availables hot-fixes for 1.9.16 & How To get full fixed package from GitHub 

-  Notes
(0026972)
Mr.Bricodage (updater)
2017-10-29 23:55

PR : https://github.com/TestLinkOpenSourceTRMS/testlink-code/pull/123 [^]
(0026975)
fman (administrator)
2017-10-30 21:16

thanks a lot

- Issue History
Date Modified Username Field Change
2017-10-29 23:50 Mr.Bricodage New Issue
2017-10-29 23:55 Mr.Bricodage Note Added: 0026972
2017-10-30 21:16 fman Note Added: 0026975
2017-10-30 21:19 fman QA Team - Task Workflow Status => TBD
2017-10-30 21:21 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2017-10-30 21:21 fman Status new => resolved
2017-10-30 21:21 fman Fixed in Version => 1.9.17 (2017 Q2)
2017-10-30 21:21 fman Resolution open => fixed
2017-10-30 21:21 fman Assigned To => fman
2017-10-30 21:21 fman Relationship added child of 0007817



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker