cancel
Showing results for 
Search instead for 
Did you mean: 

@PluginSubReport

NDyukov
Occasional Contributor

@PluginSubReport

judging by the documentation: https://support.smartbear.com/readyapi/docs/configure/plugins/dev/annotations/misc/subreport.html

SubReport creates a custom SubReport data source to provide custom data for reporting.

I created the plugin (I used the Maven archetype and an example from the documentation), successfully connected it ReadyAPI.

displayed in Reporting

But I can not use it in jrxml because of the error that occurs when generating the report:

 

Caused by: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :1. Parameter not found : MySubReport

 

in the report script on the testcase, executed the report.getSubReports (). each {log.info it}.
List of objects created subreport:

 

com.eviware.soapui.reporting.reports.common.ModelItemPropertiesSubReportFactory$ModelItemPropertiesSubReport@37bc45c9
com.eviware.soapui.reporting.reports.common.TestPropertiesSubReportFactory$TestPropertiesSubReport@204df4f8
com.eviware.soapui.reporting.reports.common.MetricsSubReportFactory$MetricsSubReport@4921f480
com.eviware.soapui.reporting.reports.common.ReportPropertiesSubReportFactory$ReportPropertiesSubReport@7e70c878
com.eviware.soapui.reporting.reports.testcase.TestStepsSubReportFactory$TestStepsSubReport@2b375872
com.eviware.soapui.reporting.reports.testcase.TestCaseRequirementsSubReportFactory$TestCaseRequirementsSubReport@649293d8
com.eviware.soapui.reporting.reports.testcase.TestStepResultsSubReport@22d1fe3e
com.eviware.soapui.reporting.reports.testcase.FailedTestStepsSubReportFactory$FailedTestStepsSubReport@5a1ac114
com.eviware.soapui.reporting.reports.testcase.TestCaseJUnitSubReportFactory$TestCaseJUnitSubReport@4bffe6ed
com.eviware.soapui.reporting.reports.testcase.TestCaseResultSubReportFactory$TestCaseResultMetricsSubReport@3b83a019
com.eviware.soapui.reporting.reports.testcase.TestCaseDataSinkSubReportFactory$DataSinkStepsSubReport@160e9959
com.eviware.soapui.reporting.reports.coverage.TestCaseCoverageSubReportFactory$TestCaseCoverageSubReport@1a10e8ed
com.smartbear.ready.reporting.reports.testcase.TestStepParametersSubReport@2eecadcc

 

MySubReport is not in the list, accordingly the object of my plugin is not initialized. Because of what it can be?

1 REPLY 1
NDyukov
Occasional Contributor

Re: @PluginSubReport

MySubRepot found in com.eviware.soapui.plugins.auto.factories.AutoSubReportFactory:

SubReportFactoryRegistry.getFactories()[56].getName()  

 

but it is not initialized at the TestCase level

New Here?
Join us and watch the welcome video:
Building with the Collaborator API

Help Documenation
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:


Sample Plugins
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:


We list all the great plugins our network has already built on this page on the SmartBear website.