how can i change the length of the test case title field?

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
linus09
TestLink user
Posts: 3
Joined: Fri May 09, 2008 3:18 am

how can i change the length of the test case title field?

Post by linus09 »

I am trying to increase the length of the test case title field and cant find the correct table in the database. can anyone help me out?
linus09
TestLink user
Posts: 3
Joined: Fri May 09, 2008 3:18 am

change length of the test case field in the ui

Post by linus09 »

So extra information:
I'm using mysql and I found the table and was able to change it. i tested by doing some inserts using sql cmds. i verified the changes worked by looking at TL's UI.

the problem comes when i open the test case with the new longer title, the ui only shows a specific number of char and when you open it to edit the test case, it truncates the title back to it's original (shortened length).

so i need to find how to change length of the test case field in the ui.

does anyone know how to do that?
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

Reconsider if you definitely need to extend the field. Maybe you can copy full name into summary and use truncated one.
Otherwise you could have problems in future with upgrades.

We applies some checks on GUI level. So it could be your case. Smarty templates component allows modifiers for passed variables. See a template for the page.
linus09
TestLink user
Posts: 3
Joined: Fri May 09, 2008 3:18 am

Smarty Template

Post by linus09 »

thanks for the reply...

I have a couple of questions.

what is a smarty template?

is there a way to set up a template with predefined text in 'summery' section?

where are the checks on the gui level done? what file?
tmacdevitt
TestLink user
Posts: 4
Joined: Thu Aug 21, 2008 12:01 am

Little help please

Post by tmacdevitt »

I am also trying to increase the length of the test case title field, but I can not find it in the schema. Which field in which table is it?

Basically I've noticed that when I import test cases in with a script, the title can be longer, then when I enter test cases using test link.

Thanks for the assist.

Tom
tmacdevitt
TestLink user
Posts: 4
Joined: Thu Aug 21, 2008 12:01 am

Post by tmacdevitt »

Ok my coworker and I came up with the answers, so here they are for future generations of testlink pioneers!

The field is "name" and its in the "nodes_hierarchy" table. That field is set to 2K chars so the limit is actually enforced by the input_dimensions.conf file, which is a smarty config file, used for the templates which drive the gui of testlink.

In the section labled [tcNew] in this .conf file increase the parameter TESTCASE_NAME_MAXLEN from its default of 75 to your desired amount.

I set it to 2000 to be consistent with the db.

Test link is a great tool and I appreciate the work you guys do!
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

>> I set it to 2000 to be consistent with the db.
1. standard tl definition
name` varchar(100)

not 2000

Using a title of 2000 is IMHO an overkill, because seems more a note.
You will have a lot of problems (Ugly look & feel) at User Interface level if you allow this kind of lenght.
Post Reply