Removing test case id from the treeview

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
Knorrium
TestLink user
Posts: 2
Joined: Tue Jun 02, 2009 7:02 pm

Removing test case id from the treeview

Post by Knorrium »

Hello,

I would like to remove the test case id from the treeview (and other places as well), but I couldn't find my way through the template files.

My idea is to organize the tests like this:

TS01 - Manage Users
--TC01 - Create User
--TC02 - Delete User

TS02 - Manage Roles
--TC01 - Create Role
--TC02 - Delete Role

Using "TC" as the prefix in Test Link does not work because a global, automatically generated ID is used, resulting into something like this:

TS01 - Manage Users
--tc121 TC01 - Create User
--tc134 TC02 - Delete User

Can anyone help me with this?

Thanks in advance,
FK
shm2bk
Advanced user
Posts: 29
Joined: Sun Jun 08, 2008 3:28 pm

Post by shm2bk »

Hello
In the config-file [testlink\config.inc.php] you see the following text

/** show/hide testcase id on tree menu */
$tlCfg->treemenu_show_testcase_id = True;

When you change True to False, the ID-number in the tree view is gone.
Knorrium
TestLink user
Posts: 2
Joined: Tue Jun 02, 2009 7:02 pm

Post by Knorrium »

Thanks! That worked for the test tree.

Is there any easy way to remove the test case ID from the rest of the system as well?

FK
radhoo
Advanced user
Posts: 19
Joined: Wed Jul 28, 2010 12:00 pm
Contact:

Re: Removing test case id from the treeview

Post by radhoo »

@ Knorrium

Yes there is, you have to edit the template file *.tpl. I will write a small tutorial in the next days here.
radhoo
Advanced user
Posts: 19
Joined: Wed Jul 28, 2010 12:00 pm
Contact:

Re: Removing test case id from the treeview

Post by radhoo »

Ok, so to remove the ID from the reports follow this tutorial, it's really short.
raghurams
TestLink user
Posts: 2
Joined: Tue Nov 02, 2010 4:30 pm

Re: Removing test case id from the treeview

Post by raghurams »

I tried to implement the steps mentioned to remove the test case id from the results, but there is no change in it. Is there any more steps that need to be performed to remove test case id (internal) from results section?
Amaradana
Member of TestLink Community
Posts: 398
Joined: Mon Feb 16, 2009 11:19 am
Contact:

Re: Removing test case id from the treeview

Post by Amaradana »

Set this to false

$tlCfg->treemenu_show_testcase_id = false;
Thanks,
TesterWorld
Http://amartester.blogspot.com
raghurams
TestLink user
Posts: 2
Joined: Tue Nov 02, 2010 4:30 pm

Re: Removing test case id from the treeview

Post by raghurams »

Thanks for the reply.

After changing the status to false, I am able to see the change in tree menu of specification and execution tabs for test cases. Please suggest me how to remove internal test case id from the results section as well.
I tried the steps mentioned by radhoo, but not able to see any change in the results(I mean I am able to see both the Internal and External id when i generate a report).
radhoo
Advanced user
Posts: 19
Joined: Wed Jul 28, 2010 12:00 pm
Contact:

Re: Removing test case id from the treeview

Post by radhoo »

raghurams, send me an email to popescuradhoo@yahoo.com in order to give you my files and try them on. if you have 1.8.5.
Locked