Skip to content

Commit

Permalink
new standard relations type for TEST CASES
Browse files Browse the repository at this point in the history
  • Loading branch information
testlinkDevTeam committed Aug 29, 2023
1 parent c45f410 commit 154ac4d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
3 changes: 3 additions & 0 deletions cfg/const.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,9 @@
define('TL_REL_TYPE_PARENT_CHILD', 1);
define('TL_REL_TYPE_BLOCKS_DEPENDS', 2);
define('TL_REL_TYPE_RELATED', 3);
define('TL_REL_TYPE_AUTOMATION_PARENT_CHILD', 4);
define('TL_REL_TYPE_EXECUTE_TOGETHER',5);



/**
Expand Down
18 changes: 12 additions & 6 deletions config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1272,16 +1272,22 @@
**/

$tlCfg->testcase_cfg->relations->type_labels = array(
TL_REL_TYPE_PARENT_CHILD => array('source' => 'parent_of','destination' => 'child_of'),
TL_REL_TYPE_BLOCKS_DEPENDS => array('source' => 'blocks','destination' => 'depends'),
TL_REL_TYPE_RELATED => array('source' => 'related_to','destination' => 'related_to')
TL_REL_TYPE_PARENT_CHILD => ['source' => 'parent_of','destination' => 'child_of'],
TL_REL_TYPE_BLOCKS_DEPENDS => ['source' => 'blocks','destination' => 'depends'],
TL_REL_TYPE_RELATED => ['source' => 'related_to','destination' => 'related_to'],
TL_REL_TYPE_AUTOMATION_PARENT_CHILD => ['source' => 'automates_also', 'destination' => 'is_automated_by'],
TL_REL_TYPE_EXECUTE_TOGETHER => ['source' => 'executed_me_and_also', 'destination' => 'executed_me_and_also']
);



$tlCfg->testcase_cfg->relations->type_description = array(TL_REL_TYPE_PARENT_CHILD => 'parent_child',
TL_REL_TYPE_BLOCKS_DEPENDS => 'blocks_depends',
TL_REL_TYPE_RELATED => 'related_to');
$tlCfg->testcase_cfg->relations->type_description = [
TL_REL_TYPE_PARENT_CHILD => 'parent_child',
TL_REL_TYPE_BLOCKS_DEPENDS => 'blocks_depends',
TL_REL_TYPE_RELATED => 'related_to',
TL_REL_TYPE_AUTOMATION_PARENT_CHILD => 'automation_script',
TL_REL_TYPE_EXECUTE_TOGETHER => 'executed_me_and_also'
];



Expand Down
8 changes: 8 additions & 0 deletions locale/en_GB/strings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ $TLS_max_size_file_msg = "Max. allowed file size: %s KB";
$TLS_due_since = "Assigned Since (days)";
$TLS_parent_child = 'is Parent or is Child';
$TLS_blocks_depends = 'Blocks or Depends';
$TLS_automation_script = 'Automates or is Automated By (Depends)';

$TLS_unknown_code = 'unknown code: %s';
$TLS_in_percent = "[%]";
$TLS_user_has_no_right_for_action = 'User has not needed right to do requested action';
Expand Down Expand Up @@ -379,6 +381,12 @@ $TLS_child_of = "is child of";
$TLS_blocks = "blocks";
$TLS_depends = "depends on";
$TLS_related_to = "is related to";
$TLS_automates_also = "automates also";
$TLS_is_automated_by = "is automated by";
$TLS_executed_me_and_also = "execute me and also";




$TLS_tcase_relation_hint = "PREFIX-ID";
$TLS_tcase_relation_help = "(if you are linking to a test on same test project, you can write ONLY the ID)";
Expand Down

0 comments on commit 154ac4d

Please sign in to comment.