Issue with creating links to test cases in Testlink

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
unixadmin007
Advanced user
Posts: 18
Joined: Thu Jan 29, 2009 5:24 pm

Issue with creating links to test cases in Testlink

Post by unixadmin007 »

Hello All
we upgraded from 1.7.4 version to Testlink 1.8 version 2 months back. that time test link number display was changed so i ran this command to fix the problem
UPDATE tcversions a SET a.tc_external_id = (SELECT b.parent_id from nodes_hierarchy b where a.id = b.id);

I was trying to create some test cases with links to other test cases but somehow with any test case that have tags in the front, e.g. “EMo-5838”, using the following link syntax does not link to the correct test case:


http://testlink-1.com/testlink/lib/test ... low_edit=0



However, for the older test cases ( which were in 1.7 version ), the same syntax used for link works:



http://testlink1.com/testlink/lib/testc ... low_edit=0


please let me know if there's any solution exists for this.
amkhullar
Advanced user
Posts: 54
Joined: Wed Apr 23, 2008 5:36 am

Post by amkhullar »

id is just a number e.g. 5838 and not EMO , we prefix it before displaying it.
unixadmin007
Advanced user
Posts: 18
Joined: Thu Jan 29, 2009 5:24 pm

Post by unixadmin007 »

but it is not working either way
amkhullar
Advanced user
Posts: 54
Joined: Wed Apr 23, 2008 5:36 am

Post by amkhullar »

then itmeans the id you are using is incorect you need to have the correct internal id

amit
unixadmin007
Advanced user
Posts: 18
Joined: Thu Jan 29, 2009 5:24 pm

Post by unixadmin007 »

but how can i find the correct id's
amkhullar
Advanced user
Posts: 54
Joined: Wed Apr 23, 2008 5:36 am

Post by amkhullar »

Just a pointer in your case if the TCase id shown on screen is EMO-5838
then 5838 here is your tc_external_id field in tcversions table.

Also if you need the link to edit the tc it should have the parent id from the nodes hierarchy table and not the id from the tcversions table.



so for your case say if the tcversions.id for this test cases is say 1001
then if you match it with the id field in nodes_hierarchy table and get the parent_id field (say 1000) then 1000 should be present in the link
http://testlink1.com/testlink/lib/testc ... low_edit=0


Hope this clears your doubt.

I have a question why do you need to do all this. (that time test link number display was changed so i ran this command to fix the problem - what was the problem). If you would have just upgraded the system as perthe scripts everything should work fine.

Amit
Locked