Forum Discussion

gk30888's avatar
gk30888
Occasional Contributor
15 years ago

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

3 Replies

  • gk30888's avatar
    gk30888
    Occasional Contributor
    hello,

    can anyone tell which jar file i need to include in ext folder?

    Regards,
    - Karthik
  • gk30888's avatar
    gk30888
    Occasional Contributor
    Hi Ole,

    I'm a pro user, but your are not answering for any ques...
    Try to answer this ques:-
    "The Open Source version of soapUI only supports creation of the basic HTML reports when running from the Command Line"

    how to create report using command line in open source ?

    Regards,
    - Karthik
  • omerabr's avatar
    omerabr
    Occasional Contributor
    I would love to know that too... tried to generate using the "com.eviware.soapui.reporting.engine.junit.JUnitReportEngine" class... but all I got was an empty HTML...

    any assistance is much appreciated