Filter/Test Plan results NOT refreshing in Execute Mode
Moderators: Amaradana, TurboPT, TL Developers
Filter/Test Plan results NOT refreshing in Execute Mode
After creating a test plan, defining a build/release and then executing tests, I have noticed that 2 glaring issues occur:
First, Filtering does not work. That is to say, If I am executing a set of tests and want to see ONLY those assigned to me, the filter for that criteria does not work. It returns an empty result set. If I clear the filter cirteria and tell it to show me ALL test cases, it still shows me ZERO
Second, When executing tests, in the left hand pane, it shows number of tests, how many were run, passed, failed etc. I execute a test case and the totals DO NOT update. If I hit refresh, the browser throws me back to the home page. When i do click on EXECUTE TESTS again, the totals are now correct.
These are 2 issues that make using this tool a little more cumbersome than it should be. Does anyone know if there are any fixes for these or any settings I can change in 1.8.5? Will this be addressed in 1.9?
Thanks in advance!
Steve
First, Filtering does not work. That is to say, If I am executing a set of tests and want to see ONLY those assigned to me, the filter for that criteria does not work. It returns an empty result set. If I clear the filter cirteria and tell it to show me ALL test cases, it still shows me ZERO
Second, When executing tests, in the left hand pane, it shows number of tests, how many were run, passed, failed etc. I execute a test case and the totals DO NOT update. If I hit refresh, the browser throws me back to the home page. When i do click on EXECUTE TESTS again, the totals are now correct.
These are 2 issues that make using this tool a little more cumbersome than it should be. Does anyone know if there are any fixes for these or any settings I can change in 1.8.5? Will this be addressed in 1.9?
Thanks in advance!
Steve
Re: Filter/Test Plan results NOT refreshing in Execute Mode
Hello,
I have the same problem as you for the update of the tree. I looked in the configuration file, the color test and the meter are Enabled. Do you have found a solution on your side?
Regards.
I have the same problem as you for the update of the tree. I looked in the configuration file, the color test and the meter are Enabled. Do you have found a solution on your side?
Regards.
Re: Filter/Test Plan results NOT refreshing in Execute Mode
To either poster:
Please check the Events logging and see if there may be any related warnings/errors.
Thanks for using TestLink!
Please check the Events logging and see if there may be any related warnings/errors.
Thanks for using TestLink!

Re: Filter/Test Plan results NOT refreshing in Execute Mode
Thank you for help,
I found this warning :
In common.php, we can see :
I found this warning :
But I don't understand what I have to change...E_WARNING strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead - in C:\wamp\www\Testlink\lib\functions\common.php - Line 540
In common.php, we can see :
Can you help me again please ?/*
function:
args :
$params: used only if you call this from an smarty template
or a wrapper in an smarty function.
$smarty: when not used in an smarty template, pass NULL.
$what: give info about what kind of value is contained in value.
possible values: timestamp_format
date_format
$value: must be a date or time stamp in ISO format
returns:
*/
function localize_dateOrTimeStamp($params,&$smarty,$what,$value)
{
// to supress E_STRICT messages
setlocale(LC_ALL, TL_DEFAULT_LOCALE);
$format = config_get($what);
if (!is_numeric($value))
$value = strtotime($value);
$retVal = strftime($format, $value);
if(isset($params['var']))
$smarty->assign($params['var'],$retVal);
return $retVal;
}
Re: Filter/Test Plan results NOT refreshing in Execute Mode
I resolved the "warning" problem but the color update of the tree menu is not resolved...
Re: Filter/Test Plan results NOT refreshing in Execute Mode
I can't find the solution to my problem, anybody know if we can solve it? Please ... 

Re: Filter/Test Plan results NOT refreshing in Execute Mode
Thanks for the info, Elana.
I'll have to investigate the 'color update' when I get a chance.
I'll have to investigate the 'color update' when I get a chance.
Re: Filter/Test Plan results NOT refreshing in Execute Mode
Thank you very much TurboPT, I hope you can help me 

Re: Filter/Test Plan results NOT refreshing in Execute Mode
I have this configuration :
In "C:\wamp\www\Testlink\config.inc.php" :
In "C:\wamp\www\Testlink\third_party\jtree\tree.js" :
I tried removing the slashes but it did not change my result. I also changed the configuration "$ tlCfg-> treemenu_type = 'ExtJS';" in "$ tlCfg-> treemenu_type = 'JTree';".
Can you help me please ?
In "C:\wamp\www\Testlink\config.inc.php" :
Code: Select all
$tlCfg->treemenu_type = 'EXTJS';
$tlCfg->exec_cfg->enable_tree_testcases_colouring = ENABLED;
$tlCfg->exec_cfg->enable_tree_counters_colouring = ENABLED;
$tlCfg->exec_cfg->show_testsuite_contents = DISABLED;
$tlCfg->exec_cfg->enable_tree_testcase_counters = ENABLED;
$g_spec_cfg->show_tsuite_filter = ENABLED;
$g_spec_cfg->automatic_tree_refresh = ENABLED;
Code: Select all
function item_upstatus (b_clear) {
// Schlundus removed this because of HTML code in the tree items it causing multiple problems but has no benefits
// window.setTimeout('window.status="' + (b_clear ? '' : this.a_config[0] + (this.a_config[1] ? ' ('+ this.a_config[1] + ')' : '')) + '"', 10);
}
Can you help me please ?

Re: Filter/Test Plan results NOT refreshing in Execute Mode
sorry for the delayed response.
I do see the automatic_tree_refresh, but according to the comment associated to that, it seems to be related to the specification area.
Anyway, I did find a way to work around this [sort of a 'hack', really], but I do need to add my typical disclaimer:
Note: this is a CUSTOM work-around.
I did find that adding a small piece of code helps with the refreshing, but there is one minor side-affect [explained below]
Suggestion REMOVED. There were other unanticipated side-affects.
The 'side-affect' is that the left tree perform a 2nd refresh when a particular testcase is initially selected, but appears to be ok otherwise.
Try it out, and see what you think.

I do see the automatic_tree_refresh, but according to the comment associated to that, it seems to be related to the specification area.
Anyway, I did find a way to work around this [sort of a 'hack', really], but I do need to add my typical disclaimer:
Note: this is a CUSTOM work-around.
I did find that adding a small piece of code helps with the refreshing, but there is one minor side-affect [explained below]
Suggestion REMOVED. There were other unanticipated side-affects.
The 'side-affect' is that the left tree perform a 2nd refresh when a particular testcase is initially selected, but appears to be ok otherwise.
Try it out, and see what you think.
Re: Filter/Test Plan results NOT refreshing in Execute Mode
Thank you very much for your help
it is running ! I'm so happy !

Re: Filter/Test Plan results NOT refreshing in Execute Mode


There is a new problem with this solution. In Testlink => Results => Failed Test Cases (or another) => Click on the concerned test case in the table.
You have to see the failed test case, but with the tree update, we can see anything... Can you help me please ?
I'm searching to modify the action of the Save Button in Testlink because I need the update only after a click on the button. Do you know where the code of this action is ?
Re: Filter/Test Plan results NOT refreshing in Execute Mode
I think it is this function to represent the click on the Save Execution :
in Testlink\gui\templates_c\%%32^32D^32D747AD%%execSetResults.tpl.php
Can you help me please ?
Code: Select all
function checkSubmitForStatus($statusCode)
{
var button_clicked;
var access_key;
var isChecked;
button_clicked=document.getElementById(\'save_button_clicked\').value;
access_key=\'status_\'+button_clicked+\'_\'+$statusCode;
isChecked = document.getElementById(access_key).checked;
if(isChecked)
{
alert_message(alert_box_title,warning_nothing_will_be_saved);
return false;
}
return true;
}
</script>
'; ?>
Can you help me please ?

Re: Filter/Test Plan results NOT refreshing in Execute Mode
Sorry that there were other side-affects. I'll have to investigate what you have found. [that's why I added "...appears to be ok..." earlier
]
Yes, the function you found IS part of the execution result save.
Within execSetResults.tpl.php, is a nested template: inc_exec_controls.tpl where that is used.
I tried using the previous 'parent' call around that area, but there were mixed results.

Yes, the function you found IS part of the execution result save.
Within execSetResults.tpl.php, is a nested template: inc_exec_controls.tpl where that is used.
I tried using the previous 'parent' call around that area, but there were mixed results.