Mantis Bugtracker 

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008339TestLinkTest Spec / Test Suite HTML Reportpublic2018-07-24 07:092018-10-06 15:43
Assigned Tofman 
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0008339: Exception with "Can not work with empty build set"
DescriptionFor a new generated TestLink the HTML Report View is not shown. Exception is thrown in tlTestPlanMetrics::helperGetExecCounters.

After little bit of debugging the $id is always 0. If i hardcode the $id variable with a valid testplanid, the report is shown
Steps To ReproduceSetup a new TestLink installation with 1.9.16 or 1.9.17
Create a TestProject
Create a TestPlan
Create a Build
Create a TestCase
Additional InformationFatal error: Uncaught exception 'Exception' with message 'tlTestPlanMetrics::helperGetExecCounters - Can not work with empty build set' in D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\tlTestPlanMetrics.class.php:1590 Stack trace: #0 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\tlTestPlanMetrics.class.php(1866): tlTestPlanMetrics->helperGetExecCounters(0, NULL, Array) #1 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\tlTestPlanMetrics.class.php(1462): tlTestPlanMetrics->helperBuildSQLTestSuiteExecCounters(0, NULL, Array) 0000002 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\ tlTestPlanMetrics->getExecStatusMatrix(0) 0000003 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\ renderTestMatrixForPrinting(Object(database), Array, Array, Array) 0000004 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\results\printDocument.php(235): renderTestSpecTreeForPrinting(Object(database), Array, Array, Object(stdClass), Array, NULL, 1) 0000005 {main} thrown in D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\tlTestPlanMetrics.class.php on line 1590
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserGoogle Chrome
PHP Version5.6.23
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
fman (administrator)
2018-07-24 08:07

For the error posted, do not seems that error can be reproduced with your steps, because creating a test case does not trigger renderTestSpecTreeForPrinting.

can you provide a very detailed test case ?

fman (administrator)
2018-07-24 08:08

just re-reading I see you have missed an step that is explained on description, that makes this report confusing.

When providing steps to reproduce you need to provide ALL needed steps, to simplify analisys
ChuckNorrison (reporter)
2018-07-24 08:43

ah sorry i posted this issue in the html reporting category so i thought to press the button for is not needed ;)
fman (administrator)
2018-07-24 08:46

Still I'm not able to reproduce, need the exact please where you launch this report.

ChuckNorrison (reporter)
2018-07-24 08:51
edited on: 2018-07-24 08:51

- Go to Test specification menu
- Press the Option Button
- Click on the "Test Spec Document (HTML) on new window" Button

The url opened in my case is:

fman (administrator)
2018-07-24 09:06

Tested on latest code from git hub


unable to reproduce

1. create Test Project - TPRJ 01, active+public
2.create Test Plan - TPLAN 01, active+public
3. create Build 1
4. create test suite TS-100
access to Test Suites operation, click on icon 'page'
No issue

5. create TC1 inside TS-100
access to Test Suites operation, click on icon 'page'
No issue
ChuckNorrison (reporter)
2018-07-24 11:19

Thank you for your support, it seems that some file manipulation happened.

You can close this issue, i cant reproduce with current 1.9.16 github code.

- Issue History
Date Modified Username Field Change
2018-07-24 07:09 ChuckNorrison New Issue
2018-07-24 08:07 fman Note Added: 0027727
2018-07-24 08:07 fman Assigned To => fman
2018-07-24 08:07 fman Status new => feedback
2018-07-24 08:08 fman Note Added: 0027728
2018-07-24 08:43 ChuckNorrison Note Added: 0027730
2018-07-24 08:43 ChuckNorrison Status feedback => assigned
2018-07-24 08:46 fman Note Added: 0027731
2018-07-24 08:51 ChuckNorrison Note Added: 0027732
2018-07-24 08:51 ChuckNorrison Note Edited: 0027732 View Revisions
2018-07-24 09:06 fman Note Added: 0027733
2018-07-24 11:19 ChuckNorrison Note Added: 0027735
2018-07-24 12:11 fman QA Team - Task Workflow Status => TBD
2018-07-24 12:11 fman Status assigned => resolved
2018-07-24 12:11 fman Resolution open => unable to reproduce
2018-10-06 15:43 fman Status resolved => closed

Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker