Page 1 of 1
[SOLVED] Custom Requirement Specification Type
Posted: Thu Nov 29, 2012 10:12 am
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
[SOLVED] Re: Custom Requirement Specification Type
Posted: Fri Dec 14, 2012 11:25 am
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";