MantisBT - TestLink
View Issue Details
0008600TestLinkFilterspublic2019-03-15 16:452019-05-13 06:50
ahn 
 
normalminoralways
newopen 
Windows
1.9.18 (2018 Q3) 
 
10.1.38-MariaDB
Chrome, Firefox
PHP version: 7.3.2
TBD
0008600: Help Needed trying to add Workflow_status filter in execution mode (Custom DEVELOPMENT)
Please see forum post http://forum.testlink.org/viewtopic.php?f=11&t=8186 [^] for graphics.

After enabling the workflow_status filter in config.inc.php and tlTestCaseFilterControl.class.php the field is visible in the GUI, but not functional.
1) Adding $tlCfg->tree_filter_cfg->testcases->execution_mode->filter_workflow_status = ENABLED; to config.inc.php.

2) Adding 'filter_workflow_status' to the array $all_filters in tlTestCaseFilterControl.class.php.

3) Adding 'filter_workflow_status' to the array $mode_filter_mapping in tlTestCaseFilterControl.class.php.

4) Attempt to use filter in execution mode.
I have gone through tlTestCaseFilterControl.class.php and treeMenu.inc.php. The functionality should be there from what I can see.

But I stumbled upon what could be a syntax error on line 1773 in treeMenu.inc.php that appear to place the rest of the file in an sql-query. This might be intentional, but it appears strange given the size of it and the following commentary and code.
Filters
png status field show.png (47,739) 2019-03-25 13:39
http://mantis.testlink.org/file_download.php?file_id=5119&type=bug
png
Issue History
2019-03-15 16:45ahnNew Issue
2019-03-15 16:48ahnTag Attached: Filters
2019-03-16 09:12fmanNote Added: 0028604
2019-03-16 09:13fmanNote Edited: 0028604bug_revision_view_page.php?bugnote_id=28604#r5772
2019-03-16 09:13fmanQA Team - Task Workflow Status => TBD
2019-03-16 09:13fmanSummaryWorkflow_status filter not working in execution mode => Help Needed trying to add Workflow_status filter in execution mode (Custom DEVELOPMENT)
2019-03-25 13:39ahnFile Added: status field show.png
2019-03-25 15:25ahnNote Added: 0028626
2019-03-28 13:15ahnNote Added: 0028630
2019-03-28 13:17ahnNote Edited: 0028630bug_revision_view_page.php?rev_id=5779
2019-03-28 15:24ahnNote Edited: 0028630bug_revision_view_page.php?rev_id=5780
2019-03-28 15:25ahnNote Edited: 0028630bug_revision_view_page.php?rev_id=5781
2019-04-01 14:15ahnNote View State: 0028630: private
2019-04-10 14:31ahnNote Edited: 0028626bug_revision_view_page.php?bugnote_id=28626#r5806
2019-04-10 15:40ahnNote Added: 0028698
2019-04-10 15:41ahnNote Deleted: 0028630
2019-04-11 09:43ahnNote View State: 0028698: private
2019-04-11 09:44ahnNote Edited: 0028698bug_revision_view_page.php?bugnote_id=28698#r5808
2019-04-11 09:44ahnNote View State: 0028698: public
2019-05-13 06:50ahnNote Added: 0028822

Notes
(0028604)
fman   
2019-03-16 09:12   
(edited on: 2019-03-16 09:13)
Have you checked if the queries used the field?

Do the right work and upload here the images that you have uploaded in forum, because nobody is going back and forth between systems to get the info (at least I do not plan absolutely to do this)

provide code in form of Pull request

Summary is WRONG because what is not working is a CHANGE YOU HAVE done, and not a pice of standard supported code.

(0028626)
ahn   
2019-03-25 15:25   
(edited on: 2019-04-10 14:31)
I have attached the image from the forum. It shows what I have been attempting to do visually.

(0028698)
ahn   
2019-04-10 15:40   
(edited on: 2019-04-11 09:44)
I'm trying to add so that one can by configuration use the workflow-status field in execution_mode.

At the moment there is a small bit of code in treeMenu.inc.php that handles the workflow-status field. It is called in the function getTestSpecTree. This function is specific for test specification. And the small bit of code is nested deeply into it. It does not appear to be re-usable to the execution_mode.

However one can create a function to append the required SQL-query to the variable with the SQL-query for execution_mode.

(0028822)
ahn   
2019-05-13 06:50   
SQL-query does not appear to use the field.