Page 1 of 1

Copy test case attachments

PostPosted: Tue Oct 24, 2017 3:29 pm
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

Re: Copy test case attachments

PostPosted: Wed Oct 25, 2017 3:20 pm
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

Re: Copy test case attachments

PostPosted: Mon Oct 30, 2017 8:18 pm
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

Re: Copy test case attachments

PostPosted: Thu Jan 04, 2018 8:50 pm
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,

Re: Copy test case attachments

PostPosted: Fri Jan 05, 2018 10:07 am
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.

Re: Copy test case attachments

PostPosted: Tue Jan 09, 2018 2:51 pm
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 (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.