Copy test case attachments

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
tjosephine
Advanced user
Posts: 23
Joined: Sat Sep 12, 2015 2:01 pm

Copy test case attachments

Post by tjosephine »

Hi,
In TestLink we can export test cases with keywords, custom fields, requirements,...
When test cases are associated with attachments, is there a way to export and re-import in another project the test cases with the same attachments?
If not, is it a possible feature for the next release of the application?
Thanks
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Copy test case attachments

Post by fman »

Not possible.
Not in roadmap, but if your company is willing to contribute (pay for development) can be put on top of new features
MrBricodage
TestLink user
Posts: 14
Joined: Fri Apr 27, 2012 7:57 pm

Re: Copy test case attachments

Post by MrBricodage »

Hi tjosephine,

funny, it seems that we had the same need at the same time : https://github.com/TestLinkOpenSourceTR ... e/pull/123

any feedback is always welcome ;-)

Regards
tjosephine
Advanced user
Posts: 23
Joined: Sat Sep 12, 2015 2:01 pm

Re: Copy test case attachments

Post by tjosephine »

Wonderful! I tested on my local installation and it is working.
Please make this new feature available in 1.9.17. Thanks a lot!

I still have one concern on the export and import of test cases attachments.
Here are the steps that I followed:
1. In project P1 I added an attachment to a test suite and exported the test suite (with 5 test cases) - XML file created successfully
2. I imported the XML file to another project P2. The test suite with attachment and 5 test cases were created successfully
3. In the same test suite from project P1, I added an attachment to the first test case TC1 and exported the test case - XML file created successfully
4. Then I came back to project P2, selected the test suite that was created previously and imported the same test case TC1.
I have chosen to update the test case TC1 if same name. Because the test case was already created in the test suite, I thought that the test case would have been updated with the new attachment.
But I got this message after import

Test Case : TC1 : Attachment "XYZ" has been ignored because it is already linked to the test element

Could you please let me know what does that mean 'test element'?

If I decide to create a new test case if same name, the new test case is created successfully with the attachment.

So, if test cases already exist in a project P2 and we decide to associate some of them with attachments in project P1, we export and re-import the test cases in P2.
How to update them in P2 by adding the attachment?

Regards,
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Copy test case attachments

Post by fman »

@tjosephine => Please make this new feature available in 1.9.17. Thanks a lot!
=> still asking your company to think about contributing to TESTLINK in the way MrBricodage does => developing or buying support or buying custom development.
tjosephine
Advanced user
Posts: 23
Joined: Sat Sep 12, 2015 2:01 pm

Re: Copy test case attachments

Post by tjosephine »

We are a group of people using TestLink inside my company.
In the past I provided some pieces of development for a feature (http://forum.testlink.org/viewtopic.php?f=11&t=8034) that was finally integrated into TestLink. Thanks!
This attachment feature was also requested by some users and it would be really appreciated to see it in TestLink.
Post Reply