Wrong link in Test Specification word document

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
quangnp
Advanced user
Posts: 20
Joined: Mon Dec 08, 2008 10:17 am
Contact:

Wrong link in Test Specification word document

Post by quangnp »

Hello,

When I generate a Test Specification word document, the link on the table of content always link to the host that generate the document rather than the right part in document.

How can I configure for the link correct with parts of the document ?

Thanks[/img]
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I tried it with the latest 1.8 code and TOC is linked correctly to a TC in my generated document. The only difference is that I use OpenOffice. Maybe your word is not properly working?
quangnp
Advanced user
Posts: 20
Joined: Mon Dec 08, 2008 10:17 am
Contact:

Post by quangnp »

Hello,

Thanks for your answer.
I have found the problem. If you open it with MS Word, the link is directly link to the host that generate the document. But if you save it in your PC, the link is OK.

Thanks.
quangnp
Advanced user
Posts: 20
Joined: Mon Dec 08, 2008 10:17 am
Contact:

Post by quangnp »

Hello,

The problem is the link of the document.
I compared with a concrete document that created by word application.
- In the TestLink generated document, the link is absolute link
D:\printDocument.doc#cat30
Ctrl + Click to follow link
- In the word created document, the link is relative link
Current document
Ctrl + Click to follow link

How can I change the the link generated by TestLink to relavtive link ?

Thanks
rlp
TestLink user
Posts: 1
Joined: Fri Jan 09, 2009 3:01 pm

Post by rlp »

:?: I believe the problem I am having is similar. When I generate the test specification to the browser in HTML or Word format, or save it to a Word document, the links in the table of contents always link to the main page of TestLink rather than the associated test case in the body of the document. I can fix this in the saved Word document by removing the URL in the HyperLink base field on the properties window, which can be accessed under File -> Properties. I have not been able to determine how to fix it in TestLink. When I view the source, the references look appropriate (e.g., "#tc977"). However, when I look at the properties for the table of content link in the browser, the URL is shown as http://###.##.##.####/testlink/#tc977 - which is not a valid link. Any help would be much appreciated.
Locked