Forum Discussion
NFox
11 years agoOccasional Contributor
Hello,
I was just wondering if there had been any progress with this.
I am in the process of building custom reports, and have made reasonable progress, but am unable to get past a particular sticking point.
I have created a duplicate of the ProjectReport.
This has a customised version of the ModelItemListReport as a Subreport to display all the TestSuites in the project. This subreport then has it's own subreport which is supposed to display all the TestCases within that TestSuite.
However, I cannot seem to find the information anywhere which I need to create the datasource for the last subreport.
I have tried various things such as:
$P{REPORT_DATA_SOURCE}
$P{REPORT_DATA_SOURCE}.cloneDataSource()
$P{REPORT_DATA_SOURCE#TestCases}
$P{REPORT_DATA_SOURCE#TestSuiteTestCases}
$P{REPORT_DATA_SOURCE.TestCases}
$P{REPORT_DATA_SOURCE.TestSuiteTestCases}
$P{REPORT_DATA_SOURCE}.{TestCases}
$P{REPORT_DATA_SOURCE}.{TestSuiteTestCases}
$P{REPORT_DATA_SOURCE}.$P{TestCases}
$P{REPORT_DATA_SOURCE}.$P{TestSuiteTestCases}
etc, but nothing seems to work.
I just get the following error for the middle report:
Mon Mar 31 18:23:11 BST 2014:ERROR:net.sf.jasperreports.engine.JRException: Error loading object from URL : subreport:ModelItemListReport2
I feel like I am very close, but am missing a crucial piece of information to enable me to get the array of TestCases for a TestSuite as a suitable datasource to use in the reports.
Please please please could someone get back to me and let me know, as this is becoming a big issue for me.
Kindest Regards
I was just wondering if there had been any progress with this.
I am in the process of building custom reports, and have made reasonable progress, but am unable to get past a particular sticking point.
I have created a duplicate of the ProjectReport.
This has a customised version of the ModelItemListReport as a Subreport to display all the TestSuites in the project. This subreport then has it's own subreport which is supposed to display all the TestCases within that TestSuite.
However, I cannot seem to find the information anywhere which I need to create the datasource for the last subreport.
I have tried various things such as:
$P{REPORT_DATA_SOURCE}
$P{REPORT_DATA_SOURCE}.cloneDataSource()
$P{REPORT_DATA_SOURCE#TestCases}
$P{REPORT_DATA_SOURCE#TestSuiteTestCases}
$P{REPORT_DATA_SOURCE.TestCases}
$P{REPORT_DATA_SOURCE.TestSuiteTestCases}
$P{REPORT_DATA_SOURCE}.{TestCases}
$P{REPORT_DATA_SOURCE}.{TestSuiteTestCases}
$P{REPORT_DATA_SOURCE}.$P{TestCases}
$P{REPORT_DATA_SOURCE}.$P{TestSuiteTestCases}
etc, but nothing seems to work.
I just get the following error for the middle report:
Mon Mar 31 18:23:11 BST 2014:ERROR:net.sf.jasperreports.engine.JRException: Error loading object from URL : subreport:ModelItemListReport2
I feel like I am very close, but am missing a crucial piece of information to enable me to get the array of TestCases for a TestSuite as a suitable datasource to use in the reports.
Please please please could someone get back to me and let me know, as this is becoming a big issue for me.
Kindest Regards