gk30888
15 years agoOccasional Contributor
Creating report with groovy
Hi ,
I tried ur groovy code to create report
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
import com.eviware.soapui.reporting.ReportEngineRegistry
import com.eviware.soapui.reporting.reports.testcase.*
//def report = new WsdlTestCaseReport(context.testCase)
def availableReports = ReportEngineRegistry.getAvailableReports( report ) // get list of all reports for test case
// generate 2nd , format PDF ( here you can add other formats ), at location "/home/robert/Documents/soapui-projects"
availableReports[1].generate( report.getModelItem().getSettings(), (String[])[ "PDF" ], "D://" )
availableReports[1].release()
But i'm not able to create report. I'm getting unable to resolve class error.
Kindly help me on this .
Regards,
- Karthik
I tried ur groovy code to create report
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
import com.eviware.soapui.reporting.ReportEngineRegistry
import com.eviware.soapui.reporting.reports.testcase.*
//def report = new WsdlTestCaseReport(context.testCase)
def availableReports = ReportEngineRegistry.getAvailableReports( report ) // get list of all reports for test case
// generate 2nd , format PDF ( here you can add other formats ), at location "/home/robert/Documents/soapui-projects"
availableReports[1].generate( report.getModelItem().getSettings(), (String[])[ "PDF" ], "D://" )
availableReports[1].release()
But i'm not able to create report. I'm getting unable to resolve class error.
Kindly help me on this .
Regards,
- Karthik