Forum Discussion
NFox
11 years agoOccasional Contributor
Hello and thankyou for getting back to me.
I have been looking through the forum and online for more information on the reporting and data types available within the reports and cant seem to find anything of any real value anywhere.
I have been looking at the following threads:
search.php?st=0&sk=t&sd=d&sr=posts&keywords=custom+report&fid%5B%5D=2&start=45 (search)
viewtopic.php?f=2&t=19478
viewtopic.php?f=2&t=21021&p=47475&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p47475
viewtopic.php?f=2&t=20865&p=47005&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p47005
viewtopic.php?f=2&t=13629&p=33314&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p33314
viewtopic.php?f=2&t=13027&p=31796&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p31796
The only information I can seem to find are links pointing to either Jaspersoft's IReport, or alternatively the SoapUI customising report page here: http://www.soapui.org/Reporting/customizing.html
Unfortunately, none of the above links provide information to anywhere near the depth required for SoapUI Pro users to generate customised reports.
I am currently in the process of writing documentation for our company on how I generated customised reports, and would be happy to share this once I have it finished, but need some help on the paramaters side from SoapUI for it to be of any use.
For my situation, I have created a duplicate of the default ProjectReport.
This has a customised version of the ModelItemListReport as a Subreport to display all the TestSuites in the project.
The ModelItemListReport subreport (SubRep1) then has it's own subreport (another customised version of ModelItemListReport, SubRep2) which is supposed to display all the TestCases within that TestSuite.
Ultimately, SubRep2 will have a subreport showing the list of TestSteps (SubRep3), and that a SubReport showing all the Assertions (SubRep4).
Once I get to that stage, I will have a complete set of reports which will be able to show all the information required.
However, I cannot seem to find the information anywhere which I need to create the datasource for SubRep2, SubRep3 or SubRep4
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}
$P{TestCase}
$P{TestCases}
$P{TestSuiteTestCases}
$F{TestCase}
$F{TestCases}
$F{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
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
which I am guessing means that the datasource does not exist.
(On a side note, if I pass in a field name I know exists, $F{name}, I get the following error:
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'SRSB015 - Register_Create_WithRegistrationData_wMinHeader' with class 'java.lang.String' to class 'net.sf.jasperreports.engine.JRDataSource')
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 SubRep2.
I also anticipate the same issue for SubRep3 and SubRep4 for TestSteps and Assertions respectively.
Please please please could someone get back to me and let me know the field names for the objects SoapUI makes available in a report. This is becoming a big issue for me, and probably many other people too.
Primarily, I need to know the following for a ProjectReport object:
All objects/classes and sub classes available to a report.
I have discovered the following, but need a complete list:
- $P{ReportMetrics}
- $P{TestProperties}
- $P{ProjectRequirements}
- $P{ProjectTestSuites}
- - $P{Type}
- - $F{name}
- - $F{description}
- $P{ProjectMockServices}
- - $P{Type}
- - $F{name}
- - $F{description}
- $P{ProjectResultMetrics}
- $P{ProjectTestSuiteResults}
- - $F{testSuiteName}
- - $F{status}
- - $F{startTime}
- - $F{timeTaken}
- - $F{reason}
- - $F{testProperties}
- - $F{testRunnerResults}
- - - $F{testSuiteName}
- - - $F{status}
- - - $F{startTime}
- - - $F{timeTaken}
- - - $F{reason}
- - - $F{testProperties}
- - - $F{testStepResults}
- - - $F{failedTestSteps}
- $P{ProjectCoverage}
Many thanks
I have been looking through the forum and online for more information on the reporting and data types available within the reports and cant seem to find anything of any real value anywhere.
I have been looking at the following threads:
search.php?st=0&sk=t&sd=d&sr=posts&keywords=custom+report&fid%5B%5D=2&start=45 (search)
viewtopic.php?f=2&t=19478
viewtopic.php?f=2&t=21021&p=47475&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p47475
viewtopic.php?f=2&t=20865&p=47005&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p47005
viewtopic.php?f=2&t=13629&p=33314&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p33314
viewtopic.php?f=2&t=13027&p=31796&hilit=custom+report&sid=e7f4e8fad7d42a5e5fb9a7ee131d344f#p31796
The only information I can seem to find are links pointing to either Jaspersoft's IReport, or alternatively the SoapUI customising report page here: http://www.soapui.org/Reporting/customizing.html
Unfortunately, none of the above links provide information to anywhere near the depth required for SoapUI Pro users to generate customised reports.
I am currently in the process of writing documentation for our company on how I generated customised reports, and would be happy to share this once I have it finished, but need some help on the paramaters side from SoapUI for it to be of any use.
For my situation, I have created a duplicate of the default ProjectReport.
This has a customised version of the ModelItemListReport as a Subreport to display all the TestSuites in the project.
The ModelItemListReport subreport (SubRep1) then has it's own subreport (another customised version of ModelItemListReport, SubRep2) which is supposed to display all the TestCases within that TestSuite.
Ultimately, SubRep2 will have a subreport showing the list of TestSteps (SubRep3), and that a SubReport showing all the Assertions (SubRep4).
Once I get to that stage, I will have a complete set of reports which will be able to show all the information required.
However, I cannot seem to find the information anywhere which I need to create the datasource for SubRep2, SubRep3 or SubRep4
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}
$P{TestCase}
$P{TestCases}
$P{TestSuiteTestCases}
$F{TestCase}
$F{TestCases}
$F{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
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
which I am guessing means that the datasource does not exist.
(On a side note, if I pass in a field name I know exists, $F{name}, I get the following error:
Caused by: org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'SRSB015 - Register_Create_WithRegistrationData_wMinHeader' with class 'java.lang.String' to class 'net.sf.jasperreports.engine.JRDataSource')
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 SubRep2.
I also anticipate the same issue for SubRep3 and SubRep4 for TestSteps and Assertions respectively.
Please please please could someone get back to me and let me know the field names for the objects SoapUI makes available in a report. This is becoming a big issue for me, and probably many other people too.
Primarily, I need to know the following for a ProjectReport object:
All objects/classes and sub classes available to a report.
I have discovered the following, but need a complete list:
- $P{ReportMetrics}
- $P{TestProperties}
- $P{ProjectRequirements}
- $P{ProjectTestSuites}
- - $P{Type}
- - $F{name}
- - $F{description}
- $P{ProjectMockServices}
- - $P{Type}
- - $F{name}
- - $F{description}
- $P{ProjectResultMetrics}
- $P{ProjectTestSuiteResults}
- - $F{testSuiteName}
- - $F{status}
- - $F{startTime}
- - $F{timeTaken}
- - $F{reason}
- - $F{testProperties}
- - $F{testRunnerResults}
- - - $F{testSuiteName}
- - - $F{status}
- - - $F{startTime}
- - - $F{timeTaken}
- - - $F{reason}
- - - $F{testProperties}
- - - $F{testStepResults}
- - - $F{failedTestSteps}
- $P{ProjectCoverage}
Many thanks