Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005298TestLinkContribution Maintained BY USERpublic2012-10-22 23:292017-03-02 19:41
Assigned To 
PrioritynormalSeverityfeature requestReproducibilityN/A
PlatformLinuxOSDebianOS VersionSQUEEZE
Product Version1.9.4 (2012 Q3 - bug fixing) 
Fixed in Version 
Summary0005298: Export and importing of executions results IN CUSTOM FORMAT (not standard TestLink format)
DescriptionThis file contains code I wrote to export and import executions.
There was no export and there was a line in the import code that said it wasn't finished.

Requirements: Test project AND test plan must be in place.
If platform is missing a warning will occur.
If build is missing the import script will make one.
If user is missing the import will fail.
If the test cannot be found import will fail. (uses external ID so as long as the project is intact it should work)
If the custom field cannot be found it will be added to the notes section (if possible)
The bug ID will be stored, however, no checking is made to determine if the correct bug tracker is enabled.
This script will assume the attachments are in the upload_area folder.

Other known issue:
I had some trouble with the xml parser so I sent bug_id, custom field data, and attachments as a string deliminated by ';;;'.
There is most likely a better way of doing this.
Steps To ReproduceThe tpl files go in the executions file under the GUI.
the php files go in the lib/execution directory.

I have altered setExec.tpl ONLY to allow for my buttons to appear.
Right now they are labeled exportBTC and importBTC (There is probably a better name for them).
Additional InformationI know I changed the format a little bit on the custom fields, but I couldn't get it to parse out more than one custom field.
Export -> Import works nicely.
test plan's do not matter, but the import will respect the tcversion.

I just thought I would give back to the community.
Thanks again, testlink has been a fun project to work on so far.
TagsNo tags attached.
Database (MySQL,Postgres,etc)mysql
Browserfirefox, chrome
PHP Version5
QA Team - Task Workflow StatusTBD
Attached Filesgz file icon IMPORTEXPORT.tar.gz [^] (12,782 bytes) 2012-10-22 23:29

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-10-22 23:29 btowle New Issue
2012-10-22 23:29 btowle File Added: IMPORTEXPORT.tar.gz
2012-10-23 05:16 fman View Status public => private
2012-10-23 19:29 fman Task Workflow Status READY FOR TESTING => TBD
2012-10-23 19:29 fman Category New Feature => Contribution Maintained BY USER
2012-10-23 19:29 fman View Status private => public
2012-10-23 19:29 fman Summary Export and importing of executions results. => Export and importing of executions results IN CUSTOM FORMAT (not standard TestLink format)

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker