Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008339TestLinkTest Spec / Test Suite HTML Reportpublic2018-07-24 07:092018-07-24 12:11
ReporterChuckNorrison 
Assigned Tofman 
PrioritynormalSeveritycrashReproducibilityalways
StatusresolvedResolutionunable 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\print.inc.php(2075): tlTestPlanMetrics->getExecStatusMatrix(0) 0000003 D:\PRG\xampp\htdocs\Testlink\BMW-RTS\lib\functions\print.inc.php(1094): 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
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Files

- Relationships

-  Notes
(0027727)
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 ?

thanks
(0027728)
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
(0027730)
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 ;)
(0027731)
fman (administrator)
2018-07-24 08:46

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

thanks
(0027732)
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:
/lib/results/printDocument.php?type=testspec&level=testproject&allOptionsOn=1&format=0&id=1&form_token=0

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

Tested on latest code from git hub

url
/lib/results/printDocument.php?type=testspec&level=testsuite&allOptionsOn=1&format=0&id=441&form_token=1788077669

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
(0027735)
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



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker