Skip to content
Permalink
Browse files

0008465: Delete Keyword - Configuration options related to Executed T…

…est Case Versions

0008464: Delete Keyword - Configuration options related to frozen Test Case Versions
  • Loading branch information...
fmancardi committed Nov 10, 2018
1 parent a943cac commit 9c59486b5cc82487b1c8ff4ba6fa8248cd900e01
@@ -62,6 +62,12 @@
$tlCfg->reqTCLinks = new stdClass();
$tlCfg->keywords = new stdClass();
$tlCfg->keywords->onDeleteCheckFrozenTCVersions = TRUE;
$tlCfg->keywords->onDeleteCheckExecutedTCVersions = TRUE;
/** @uses database access definition (generated automatically by TL installer) */
@include_once('config_db.inc.php');
if( !defined('DB_TABLE_PREFIX') ) {
@@ -1206,24 +1212,61 @@
// attachment on test case spec can not be added/removed
//
// FALSE
//
// This means that at GUI Level, will not be possible:
// add a new attachment to an Executed Test Case Version
// delete an attachment from Executed Test Case Version
$tlCfg->testcase_cfg->downloadOnlyAfterExec = TRUE;
// This means that at GUI Level, will not be possible:
// add a new req version link to an Executed Test Case Version
// delete a req version link from Executed Test Case Version
$tlCfg->testcase_cfg->reqLinkingDisabledAfterExec = TRUE;
// Effects on Linked Requirements Version after
// execution of a Test Case Version
$tlCfg->testcase_cfg->freezeReqVersionAfterExec = TRUE;
// Effects on TCVersion N when TCVersion N+1 is created
$tlCfg->testcase_cfg->freezeTCVersionOnNewTCVersion = TRUE;
$tlCfg->testcase_cfg->freezeTCVRelationsOnNewTCVersion = TRUE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVDelAttachtments = FALSE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVAddAttachtments = FALSE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVAddTCVRel = FALSE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVDelTCVRel = FALSE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVAddREQVLink = FALSE;
$tlCfg->testcase_cfg->frozenNotExecutedTCVDelREQVLink = FALSE;
// Effects on Req Version to TCVersion LINK
// when a new version of a linked Test Case is created
$tlCfg->reqTCLinks->freezeeLinkOnNewTCVersion = TRUE;
// Effects on Req Version to TCVersion LINK
// when a new version of a linked Req Version is created
$tlCfg->reqTCLinks->freezeeLinkOnNewREQVersion = TRUE;
// Effects on BOTH ends of Req Version to TCVersion LINK
// when a new version of a linked TC Version is created
$tlCfg->reqTCLinks->freezeeBothEndsOnNewTCVersion = TRUE;
// Effects on BOTH ends of Req Version to TCVersion LINK
// when a new version of a linked REQ Version is created
$tlCfg->reqTCLinks->freezeeBothEndsOnNewREQVersion = TRUE;
// Effects on REQ Version N when REQ Version N+1 is created
$tlCfg->req_cfg->freezeREQVersionOnNewREQVersion = TRUE;
/** text template for a new items:
Test Case: summary, steps, expected_results, preconditions
@@ -9,7 +9,7 @@ TestLink Open Source Project - http://testlink.sourceforge.net/
{lang_get var='labels'
s='th_notes,th_keyword,th_delete,btn_import,btn_export,
menu_assign_kw_to_tc,btn_create_keyword,
menu_manage_keywords,alt_delete_keyword'}
menu_manage_keywords,alt_delete_keyword,tcvqty_with_kw'}

{lang_get s='warning_delete_keyword' var="warning_msg" }
{lang_get s='delete' var="del_msgbox_title" }
@@ -37,25 +37,44 @@ var del_action = fRoot+'lib/keywords/keywordsEdit.php?tproject_id={$gui->tprojec
{/if}
</tr>
{section name=kwx loop=$gui->keywords}
{$kwID=$gui->keywords[kwx]->dbID}
<tr>
<td>
{if $gui->canManage != ""}
<a href="{$gui->editUrl}&doAction=edit&id={$gui->keywords[kwx]->dbID}">
{/if}
{$gui->keywords[kwx]->name|escape}

{if $gui->canManage != ""}
</a>
{/if}
<span title="{$labels.tcvqty_with_kw}">({$gui->kwOnTCV[$kwID]['tcv_qty']})</span>
</td>
<td>{$gui->keywords[kwx]->notes|escape:htmlall|nl2br}</td>
{if $gui->canManage != ""}
{$yesDel = 1}
<td class="clickable_icon">

{if $gui->kwExecStatus != '' &&
isset($gui->kwExecStatus[$kwID]) &&
$gui->kwExecStatus[$kwID]['exec_or_not'] == 'EXECUTED'}
{$yesDel = 0}
{/if}

{if $gui->kwFreshStatus != '' &&
isset($gui->kwFreshStatus[$kwID]) &&
$gui->kwFreshStatus[$kwID]['fresh_or_frozen'] == 'FROZEN'}
{$yesDel = 0}
{/if}

{if $yesDel == 1}
<img style="border:none;cursor: pointer;"
alt="{$labels.alt_delete_keyword}" title="{$labels.alt_delete_keyword}"
src="{$tlImages.delete}"
onclick="delete_confirmation({$gui->keywords[kwx]->dbID},
'{$gui->keywords[kwx]->name|escape:'javascript'|escape}',
'{$del_msgbox_title}','{$warning_msg}');" />
{/if}
</td>
{/if}
</tr>

0 comments on commit 9c59486

Please sign in to comment.
You can’t perform that action at this time.