[SOLVED] Custom Requirement Specification Type

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
redpiyo
Advanced user
Posts: 17
Joined: Sat Sep 15, 2012 10:08 am

[SOLVED] Custom Requirement Specification Type

Post by redpiyo »

Hello All, Does anyone know how to insert a custom type into requirement spec, the default one are User and System, i need to include Business Rules, Regulatory Req and Non-Functional Req and Analysis Req
kampo
TestLink user
Posts: 1
Joined: Fri Apr 27, 2012 8:36 pm

[SOLVED] Re: Custom Requirement Specification Type

Post by kampo »

In Testlink 1.9.3 (have not tested it with newer versions):

1.In file <root testlink dir>/cfg/const.inc.php , search for TL_REQ_SPEC_TYPE (around line 790 on a clean install)

2. Add one line with each of your custom spec type:
define('TL_REQ_SPEC_TYPE_custom1','101');
define('TL_REQ_SPEC_TYPE_custom2','102');

3. Add them in the spec types array below $tlCfg->req_spec_cfg->type_labels = array(
TL_REQ_SPEC_TYPE_custom1 =>'req_spec_type_custom1',
TL_REQ_SPEC_TYPE_custom2 =>'req_spec_type_custom2',

4. In order to show your chosen text in the dropdown box (otherwise you would see LOCALIZE: req_spec_type_custom1), define the labels in file
<root testlink dir>/locale/<your testlink language>/custom_strings.txt, by creating an entry for each custom rec spec type:
$TLS_req_spec_type_custom1 = "Your chosen text";
$TLS_req_spec_type_custom2 = "Business Rules";
Post Reply