Can CustomField (Text Area) be greater than 255 ?

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
mfarooq1
TestLink user
Posts: 2
Joined: Thu Oct 29, 2009 8:48 am

Can CustomField (Text Area) be greater than 255 ?

Post by mfarooq1 »

Hello,
I am testing soap services and would like to record xml request/response in my test case execution. However, the Text Area size limitation (255 chars) is quite limiting and I cannot copy larger xml request/response in these custom field.

Any way to change this?
Maybe have a new custom type SOAP Message / XML/ etc

Thanks
mfarooq1
TestLink user
Posts: 2
Joined: Thu Oct 29, 2009 8:48 am

Post by mfarooq1 »

any ideas anyone :)
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

this can be solved on 1.9, get code from CVS, reading it IMHO you wil be able to increase this limit.
You need to change fields sizes on DB (custom*m tables) and some
lines of code on cfield*.class.php files
larryyang
TestLink user
Posts: 10
Joined: Thu Nov 26, 2009 7:25 am
Location: Guangzhou China
Contact:

Post by larryyang »

I have gotten the method to fix this text length limit,
1. Change DB, cfield_design_values, set the type of value as TEXT.
2. Edit lib\functions\cfield_mgr.class.php
a. Find the follow code

Code: Select all

const TEXTAREA_MAX_SIZE = 255;
Replaced with

Code: Select all

const TEXTAREA_MAX_SIZE = 1000;
here, the max size of text area is 1000,
you can change the max size number you want it to be.
b. Find the following code

Code: Select all

var $max_length_value=255; 
Replaced it with

Code: Select all

var $max_length_value=0; 
c. Find the following code

Code: Select all

var $max_length_possible_values=255;
Replaced it with

Code: Select all

var $max_length_possible_values=0;
All set, you can play with unlimited text area, happy everyday guys.
srpaul
TestLink user
Posts: 1
Joined: Tue Jun 28, 2011 6:05 am

Re: Can CustomField (Text Area) be greater than 255 ?

Post by srpaul »

Hi TestLink Team,
I have created one custom location field with "text" type. Then I have increase the size of textbox from default 255 char to 1000 char. On entering more than 255 char, text are showing in truncated manner(not showing the full text) at the time of executing that particular test case. Is there any way to resolve this problem?

Thanks in Advance !!!!
Locked