Page 1 of 1
Attachment file to test case does not open but executes
Posted: Fri Sep 12, 2008 1:56 am
by prakash77
Hi,
I tried to attached test data file (xls. doc) to individual test case so that Test engineer can execute with appropriate data. When we are in execution and try to open the file and save it actually it opens in new tab or browser and try to render as html though it should open in MS excel application.
any solution for this??
Regards,
Prakash
Posted: Fri Sep 12, 2008 9:17 am
by fman
seems Browser configuration problem not TL
try with different browsers
Posted: Fri Sep 12, 2008 10:32 pm
by prakash77
Hi,
I have tried in firefox 2.X, 3.0 and IE 6 and 7. Any recommended browsers?
I am running testlink using postgreSQL 8.3.
Posted: Mon Sep 15, 2008 4:33 am
by prakash77
Bellow is the HTTP headers requesting a XLS file. As you see the mime type on the response is not for a XLS but for Plain text file. I believe this is a TestLink issue rather than an Apache or Browser issue. TestLink properly identifies the mime types on Test case view page. It seems that it does not send correct mime type through the attachmentdonwload.php page.
http://10.100.10.121/testlink/lib/attac ... d.php?id=9
GET /testlink/lib/attachments/attachmentdownload.php?id=9 HTTP/1.1
Host: 10.100.10.121
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008072820 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://10.100.10.121/testlink/lib/testc ... case&id=26
Cookie: jira.conglomerate.cookie=; seraph.os.cookie=LabEjfuUSWnRtWqbLKVDUqhLxmFLhifAnB2bZQEv69D6it>0NH8MmKpPHcoOx>z<; seraph.confluence=OtbFpfjFUaRIHkeHeIwLbxqKxiRXBeLuycMx7AzsJ1cL7jEC6aI3kDSCR7hWP6h8; JSESSIONID=FB08B01E7FDDEF2D46E4DEA71D3AA62C; PHPSESSID=n4fbo4o8m84ksofn66n83dmuqjd88hs6
HTTP/1.x 200 OK
Via: 1.1 ISA01
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Transfer-Encoding: chunked
Date: Mon, 15 Sep 2008 01:36:47 GMT
Content-Type: text/html
Server: Apache/2.2.3 (Linux/SUSE)
X-Powered-By: PHP/5.2.5
Keep-Alive: timeout=15, max=100
----------------------------------------------------------
Waiting for your response.
Prakash
P.S. Version we have at present is 1.8 Beta.
Posted: Mon Sep 15, 2008 9:47 am
by fman
create an issue on mantis with this details
Same problem with Testlink 1.8 RC5
Posted: Wed Jul 01, 2009 7:17 am
by jorgesf
Hi friends,
I have the same problem described on this post. When I try to open an upload file/image attached to any test case execution, the browser shows me the content of the file in a new html page.
Do you know if this problem is already fixed in Testlink 1.8.3 version?
Thanks in advance.
Posted: Wed Jan 20, 2010 6:11 pm
by marty
Hello,
We also have this issue (original problem in this post) with our Testlink installation on Linux but NOT on our Windows installation.
Any hint on how to fix this?
On the linux setup we always have binary being opened withing the web browser and no popup to save the attachment locally. This happens to all attachement (MSword, JPG, MSexcel...)
Thanks

Seeing this on many browsers
Posted: Tue Feb 16, 2010 5:00 pm
by mikeylbridges
I am using 1.8.5 and now dont seem to have this problem.
It seems as though if I "reattach" the file, clickin on the old produces the screen "Attachment not found!"
But clicking the new one prompts me to open or save as expected.
Re: Attachment file to test case does not open but executes
Posted: Wed Aug 18, 2010 5:16 am
by hellofawedge
I've noticed that the Linux version of Testlink 1.8.5 doesn't have "/var/www/testlink/third_party/fckeditor/editor/filemanager/upload" directory, while the 1.8.4 Windows version does (xampp\testlink\third_party\fckeditor\editor\filemanager\upload).
In the installation instructions it specifically directs the installer to enable the uploader by modifying "FCKeditor/editor/filemanager/upload/php/config.php", however the Linux install doesn't have this directory.
Is it still required to modify "FCKeditor/editor/filemanager/upload/php/config.php" in a Linux install?