Procedural File: treeMenu.inc.php
Source Location: /treeMenu.inc.php
Includes
require_once
(dirname(__FILE__)."/../../config.inc.php")
[line 28]
TestLink Open Source Project - http://testlink.sourceforge.net/ This script is distributed under the GNU General Public License 2 or later.
Filename $RCSfile: _treeMenu.inc.php.html,v $
Information Tags:
| Author: | Martin Havlat This file generates tree menu for test specification and test execution. Rev: 20090328 - franciscom - BUGID 2299 - introduced on 20090308. Added logic to remove Empty Top level test suites (have neither test cases nor test suites inside) when applying test case keyword filtering. BUGID 2296 20090308 - franciscom - generateTestSpecTree() - changes for EXTJS tree 20090211 - franciscom - BUGID 2094 20090202 - franciscom - minor changes to avoid BUGID 2009 20090118 - franciscom - replaced multiple calls config_get('testcase_cfg') added extjs_renderTestSpecTreeNodeOnOpen(), to allow filtering |
| Version: | $Revision: 1.1.2.1 $ |
require_once
(dirname(__FILE__)."/../../third_party/dBug/dBug.php")
[line 29]
Functions
buildKeywordsFilter [line 1146]
void buildKeywordsFilter(
$keywordsId, &$guiObj
)
|
|
buildKeywordsFilter
Parameters:
create_counters_info [line 865]
void create_counters_info(
&$node, $useColors
)
|
|
Parameters:
extjs_renderExecTreeNodeOnOpen [line 905]
void extjs_renderExecTreeNodeOnOpen(
&$node, $node_type, $tcase_node, $tc_action_enabled, $bForPrinting, [ $useCounters = 1], [ $useColors = null], [ $showTestCaseID = 1], $testCasePrefix, [ $showTestSuiteContents = 1]
)
|
|
Parameters:
|
|
&$node: |
|
|
|
$node_type: |
|
|
|
$tcase_node: |
|
|
|
$tc_action_enabled: |
|
|
|
$bForPrinting: |
|
|
|
$useCounters: |
|
|
|
$useColors: |
|
|
|
$showTestCaseID: |
|
|
|
$testCasePrefix: |
|
|
|
$showTestSuiteContents: |
|
extjs_renderTestSpecTreeNodeOnOpen [line 1078]
void extjs_renderTestSpecTreeNodeOnOpen(
&$node, $node_type, $tc_action_enabled, $bForPrinting, $showTestCaseID, $testCasePrefix
)
|
|
Parameters:
|
|
&$node: |
|
|
|
$node_type: |
|
|
|
$tc_action_enabled: |
|
|
|
$bForPrinting: |
|
|
|
$showTestCaseID: |
|
|
|
$testCasePrefix: |
|
filterString [line 39]
string filterString(
string $str
)
|
|
strip potential newlines and other unwanted chars from strings Mainly for stripping out newlines, carriage returns, and quotes that were causing problems in javascript espicially using jtree
Parameters:
API Tags:
| Return: | string with the newlines removed |
filter_by_same_status_for_build_set [line 1022]
void filter_by_same_status_for_build_set(
&$tplan_mgr, &$tcase_set, $tplan_id, $filters
)
|
|
Parameters:
|
|
&$tplan_mgr: |
|
|
|
&$tcase_set: |
|
|
|
$tplan_id: |
|
|
|
$filters: |
|
generateExecTree [line 528]
void generateExecTree(
&$db, &$menuUrl, $tproject_id, $tproject_name, $tplan_id, $tplan_name, $getArguments, $filters, $additionalInfo
)
|
|
Creates data for tree menu used on :
Execution of Test Cases Remove Test cases from test plan 20071002 - jbarchibald - BUGID 1051 - added cf element to parameter list 20070204 - franciscom - changed $bForPrinting -> $bHideTCs operation: string that can take the following values: testcase_execution remove_testcase_from_testplan and changes how the URL's are build. rev : 20080617 - franciscom - return type changed to use extjs tree component 20080305 - franciscom - interface refactoring 20080224 - franciscom - added include_unassigned
Parameters:
|
|
&$db: |
|
|
|
&$menuUrl: |
|
|
|
$tproject_id: |
|
|
|
$tproject_name: |
|
|
|
$tplan_id: |
|
|
|
$tplan_name: |
|
|
|
$getArguments: |
|
|
|
$filters: |
|
|
|
$additionalInfo: |
|
generateTestSpecTree [line 75]
void generateTestSpecTree(
&$db, $tproject_id, $tproject_name, $linkto, [ $bForPrinting = 0], [ $bHideTCs = 0], [ $tc_action_enabled = 1], [ $getArguments = ''], [ $keywordsFilter = null], [ $ignore_inactive_testcases = 0], [ $exclude_branches = null]
)
|
|
generate data for tree menu of Test Specification
20090328 - franciscom - BUGID 2299, that was generated during 20090308 trying to fix another not reported bug. 20090308 - franciscom - changed arguments in str_ireplace() call Due to bug in Test Spec tree when using Keywords filter 20080501 - franciscom - keyword_id can be an array 20071014 - franciscom - $bForPrinting used to choose Javascript function to call when clicking on a tree node 20070922 - franciscom - interface changes added $tplan_id, 20070217 - franciscom - added $exclude_branches 20061105 - franciscom - added $ignore_inactive_testcases ignore_inactive_testcases: if all test case versions are inactive, the test case will ignored. exclude_branches: map key=node_id
Parameters:
|
|
&$db: |
|
|
|
$tproject_id: |
|
|
|
$tproject_name: |
|
|
|
$linkto: |
|
|
|
$bForPrinting: |
|
|
|
$bHideTCs: |
|
|
|
$tc_action_enabled: |
|
|
|
$getArguments: |
|
|
|
$keywordsFilter: |
|
|
|
$ignore_inactive_testcases: |
|
|
|
$exclude_branches: |
|
get_testplan_nodes_testcount [line 806]
void get_testplan_nodes_testcount(
&$db, $tproject_id, $tproject_name, $tplan_id, $tplan_name, [ $keywordsFilter = null]
)
|
|
Parameters:
|
|
&$db: |
|
|
|
$tproject_id: |
|
|
|
$tproject_name: |
|
|
|
$tplan_id: |
|
|
|
$tplan_name: |
|
|
|
$keywordsFilter: |
|
get_testproject_nodes_testcount [line 753]
void get_testproject_nodes_testcount(
&$db, $tproject_id, $tproject_name, [ $keywordsFilter = null]
)
|
|
Parameters:
|
|
&$db: |
|
|
|
$tproject_id: |
|
|
|
$tproject_name: |
|
|
|
$keywordsFilter: |
|
prepareNode [line 257]
void prepareNode(
&$db, &$node, &$decoding_info, &$map_node_tccount, [ $tck_map = null], [ $tplan_tcases = null], [ $bHideTCs = 0], [ $assignedTo = null], [ $status = null], [ $ignore_inactive_testcases = 0], [ $show_tc_id = 1], [ $bGetExternalTcID = 1]
)
|
|
Parameters:
|
|
&$db: |
|
|
|
&$node: |
|
|
|
&$decoding_info: |
|
|
|
&$map_node_tccount: |
|
|
|
$tck_map: |
|
|
|
$tplan_tcases: |
|
|
|
$bHideTCs: |
|
|
|
$assignedTo: |
|
|
|
$status: |
|
|
|
$ignore_inactive_testcases: |
|
|
|
$show_tc_id: |
|
|
|
$bGetExternalTcID: |
|
renderExecTreeNode [line 709]
void renderExecTreeNode(
$level, &$node, &$tcase_node, $getArguments, $hash_id_descr, $tc_action_enabled, $linkto, $bHideTCs, $useCounters, $useColors, $showTestCaseID, $testCasePrefix, $showTestSuiteContents
)
|
|
Parameters:
|
|
$level: |
|
|
|
&$node: |
|
|
|
&$tcase_node: |
|
|
|
$getArguments: |
|
|
|
$hash_id_descr: |
|
|
|
$tc_action_enabled: |
|
|
|
$linkto: |
|
|
|
$bHideTCs: |
|
|
|
$useCounters: |
|
|
|
$useColors: |
|
|
|
$showTestCaseID: |
|
|
|
$testCasePrefix: |
|
|
|
$showTestSuiteContents: |
|
renderTreeNode [line 473]
void renderTreeNode(
$level, &$node, $getArguments, $hash_id_descr, $tc_action_enabled, $linkto, $testCasePrefix, [ $bForPrinting = 0], $showTestCaseID
)
|
|
Parameters:
|
|
$level: |
|
|
|
&$node: |
|
|
|
$getArguments: |
|
|
|
$hash_id_descr: |
|
|
|
$tc_action_enabled: |
|
|
|
$linkto: |
|
|
|
$testCasePrefix: |
|
|
|
$bForPrinting: |
|
|
|
$showTestCaseID: |
|
|
|