testlc
11 years agoOccasional Contributor
create PDF report with groovy
Dear All,
Much appreciate if you could help me out,
I am trying to create PDF report via groovy from soapui pro after each security test run, i am using below scripts, I can see the result data in Xml, CSV exported but NOT in the pdf format, please do kindly help:-)
def tc = testRunner.testCase
def st = tc.getSecurityTestList()
def report = new SecurityTestCaseReport(st[0]) // st[0] is the security test case
def AvailableReports = ReportEngineRegistry.getAvailableReports( report ) // get list of all reports for test case
AvailableReports[1].generate( report.getModelItem().getSettings(), (String[])[ "CSV","XML" ], folder)
AvailableReports[0].generate( report.getModelItem().getSettings(), (String[])[ "PDF" ], folder)
AvailableReports[1].release()
AvailableReports[0].release()
Much appreciate if you could help me out,
I am trying to create PDF report via groovy from soapui pro after each security test run, i am using below scripts, I can see the result data in Xml, CSV exported but NOT in the pdf format, please do kindly help:-)
def tc = testRunner.testCase
def st = tc.getSecurityTestList()
def report = new SecurityTestCaseReport(st[0]) // st[0] is the security test case
def AvailableReports = ReportEngineRegistry.getAvailableReports( report ) // get list of all reports for test case
AvailableReports[1].generate( report.getModelItem().getSettings(), (String[])[ "CSV","XML" ], folder)
AvailableReports[0].generate( report.getModelItem().getSettings(), (String[])[ "PDF" ], folder)
AvailableReports[1].release()
AvailableReports[0].release()
HI Rao,
Problem got resolve after including below class
import com.eviware.soapui.reporting.reports.security.*
Thanks for your help
cheers
Shikhar