Page 1 of 1
Wrong link in Test Specification word document
Posted: Wed Dec 17, 2008 4:37 am
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]
Posted: Thu Dec 18, 2008 2:34 pm
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?
Posted: Fri Dec 19, 2008 2:52 am
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.
Posted: Mon Dec 22, 2008 6:46 am
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
Posted: Wed Feb 04, 2009 6:55 pm
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.