#1  
Old 06-23-2008, 09:11 PM
nsBB nsBB is offline
Junior Member
 
Join Date: Jun 2008
Posts: 15
Talking Attachments

It would be nice to add attachments to a test case, for example, a csv list used to test a distribution list manager. Is this possible?
Reply With Quote
  #2  
Old 06-24-2008, 05:42 AM
TimR's Avatar
TimR TimR is offline
Employee
 
Join Date: Mar 2005
Posts: 724
Default

There are link fields which can be used to add attachments but these are not copied to the database so the link needs to remain valid.

You can also use file:// type links to add links to documents within the text fields.
Reply With Quote
  #3  
Old 06-26-2008, 07:52 AM
testlog testlog is offline
Member
 
Join Date: Mar 2008
Posts: 32
Default

but the attachment doesn't export to report.
???
how to make it real to external user(no database access right,no network for http)?
Reply With Quote
  #4  
Old 06-27-2008, 01:52 AM
TimR's Avatar
TimR TimR is offline
Employee
 
Join Date: Mar 2005
Posts: 724
Default

Currently the link is not exported or copied to the database in any way.

The only workaround to have the attachments available to people without access to a network would be to manually copy the attachments to a folder or place them in the "images" directory which is copied automatically when doing a web export.
Reply With Quote
  #5  
Old 07-01-2008, 01:30 AM
testlog testlog is offline
Member
 
Join Date: Mar 2008
Posts: 32
Default

so, only images folder directory will be exported?
let say,i would like my image appeare at project test case (test description)
which template should i added a column of image command?(<img src="C:\Program Files\TestLog\images\try.gif">)
Reply With Quote
  #6  
Old 07-01-2008, 05:44 AM
TimR's Avatar
TimR TimR is offline
Employee
 
Join Date: Mar 2005
Posts: 724
Default

If you want to add an image to a template file that will be exported you can place it in the image directory and link to it in the template file like <img src="<!--TL_IMAGEPATH-->/try.gif"> (like how other images in the template are linked). When used in the template files they will appear in all items viewed with that template. Linking like this can currently only work for templates.
Reply With Quote
  #7  
Old 07-18-2008, 08:42 AM
testlog testlog is offline
Member
 
Join Date: Mar 2008
Posts: 32
Default

Quote:
Originally Posted by TimR View Post
Currently the link is not exported or copied to the database in any way.

The only workaround to have the attachments available to people without access to a network would be to manually copy the attachments to a folder or place them in the "images" directory which is copied automatically when doing a web export.
I tried to copy my image to C:\Program Files\TestLog\images\try.JPG
then I paste the code
<img src="C:\Program Files\TestLog\images\try.JPG"
to my test descriptions.
then i run report wizart>web page export.
yes, i found the image is export to the report folder (D:\tryreport\try\images).
I open the html report and check the picture link,it is not the D drive point,but it still point to C drive.
So I guess the picture shown is still store in my C drive.
And my customer still can't see any image when I send the HTML folder to them.
Am I right?
correct me if i'm doing in wrong way.
thanks
Reply With Quote
  #8  
Old 07-22-2008, 05:40 AM
TimR's Avatar
TimR TimR is offline
Employee
 
Join Date: Mar 2005
Posts: 724
Default

The problem is that any hard link to an image like c:\... (in normal text fields) can't currently be converted by TestLog when exporting so the link will always remain c:\...

You could use relative linking and change the link manually in the exported report to "../../images/imagename" if your test case is a suite on the first level under Project Test Cases (and an extra ../ for every level under that) which will then link to the correct image location and the exported project can be moved around.

Changing the link to the same thing in TestLog before the export however and the link will not show up in TestLog as the relative link is invalid.
Reply With Quote
  #9  
Old 07-22-2008, 06:49 AM
testlog testlog is offline
Member
 
Join Date: Mar 2008
Posts: 32
Default

ok.too many steps to do that.
so I'll still stick to http server (photobucket/imageshack) to upload n store the images.
Is there any solution on the next testlog change?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright PassMark Software Pty Ltd 2007