Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008600TestLinkFilterspublic2019-03-15 16:452019-04-11 09:44
Reporterahn 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSWindowsOS Version
Product Version1.9.18 (2018 Q3) 
Fixed in Version 
Summary0008600: Help Needed trying to add Workflow_status filter in execution mode (Custom DEVELOPMENT)
DescriptionPlease 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.
Steps To Reproduce1) 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.
Additional InformationI 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.
TagsFilters
Database (MySQL,Postgres,etc)10.1.38-MariaDB
BrowserChrome, Firefox
PHP VersionPHP version: 7.3.2
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Filespng file icon status field show.png [^] (47,739 bytes) 2019-03-25 13:39

- Relationships

-  Notes
(0028604)
fman (administrator)
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 (reporter)
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 (reporter)
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.


- Issue History
Date Modified Username Field Change
2019-03-15 16:45 ahn New Issue
2019-03-15 16:48 ahn Tag Attached: Filters
2019-03-16 09:12 fman Note Added: 0028604
2019-03-16 09:13 fman Note Edited: 0028604 View Revisions
2019-03-16 09:13 fman QA Team - Task Workflow Status => TBD
2019-03-16 09:13 fman Summary Workflow_status filter not working in execution mode => Help Needed trying to add Workflow_status filter in execution mode (Custom DEVELOPMENT)
2019-03-25 13:39 ahn File Added: status field show.png
2019-03-25 15:25 ahn Note Added: 0028626
2019-03-28 13:15 ahn Note Added: 0028630
2019-03-28 13:17 ahn Note Edited: 0028630 View Revisions
2019-03-28 15:24 ahn Note Edited: 0028630 View Revisions
2019-03-28 15:25 ahn Note Edited: 0028630 View Revisions
2019-04-01 14:15 ahn Note View State: 0028630: private
2019-04-10 14:31 ahn Note Edited: 0028626 View Revisions
2019-04-10 15:40 ahn Note Added: 0028698
2019-04-10 15:41 ahn Note Deleted: 0028630
2019-04-11 09:43 ahn Note View State: 0028698: private
2019-04-11 09:44 ahn Note Edited: 0028698 View Revisions
2019-04-11 09:44 ahn Note View State: 0028698: public



Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker