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.
Issue with creating links to test cases in Testlink
Moderators: Amaradana, TurboPT, TL Developers
-
- Advanced user
- Posts: 18
- Joined: Thu Jan 29, 2009 5:24 pm
-
- Advanced user
- Posts: 18
- Joined: Thu Jan 29, 2009 5:24 pm
-
- Advanced user
- Posts: 18
- Joined: Thu Jan 29, 2009 5:24 pm
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
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