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

Can CustomField (Text Area) be greater than 255 ?

Postby mfarooq1 » Thu Oct 29, 2009 8:58 am

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

Postby mfarooq1 » Wed Nov 11, 2009 5:32 am

any ideas anyone :)
mfarooq1
TestLink user
 
Posts: 2
Joined: Thu Oct 29, 2009 8:48 am

Postby fman » Wed Nov 18, 2009 10:39 pm

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
fman
Member of TestLink Community
 
Posts: 3010
Joined: Tue Nov 15, 2005 7:19 am

Postby larryyang » Thu Nov 26, 2009 7:34 am

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.
larryyang
TestLink user
 
Posts: 10
Joined: Thu Nov 26, 2009 7:25 am
Location: Guangzhou China

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

Postby srpaul » Tue Jun 28, 2011 6:17 am

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 !!!!
srpaul
TestLink user
 
Posts: 1
Joined: Tue Jun 28, 2011 6:05 am


Return to TestLink 1.8 (OBSOLETE => EOL)[LOCKED]



Who is online

Users browsing this forum: No registered users and 5 guests