Forum Discussion

ShikharSaxena's avatar
ShikharSaxena
Occasional Contributor
8 years ago

unable to resolve class SecurityTestCaseReport

HI All,

 

While Creating PDF Security report using Groovy script , encounter  unable to resolve class error below is my code

 

import com.eviware.soapui.reporting.ReportEngineRegistry
import com.eviware.soapui.reporting.reports.testcase.*
def tc = testRunner.testCase
def st = tc.getSecurityTestList()

def report = new SecurityTestCaseReport(st[0])
def AvailableReports = ReportEngineRegistry.getAvailableReports( report )// get list of all reports for test case
log.info "reports"+AvailableReports

 

 

But While executing above code getting below exception

 

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script4.groovy: 8: unable to resolve class SecurityTestCaseReport
@ line 8, column 14.
def report = new SecurityTestCaseReport(st[0])
^
org.codehaus.groovy.syntax.SyntaxException: unable to resolve class SecurityTestCaseReport
@ line 8, column 14.
at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:148)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:229)
at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:239)
at org.codehaus.groovy.control.ResolveVisitor.transformConstructorCallExpression(ResolveVisitor.java:1069)
at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:754)
at org.codehaus.groovy.control.ResolveVisitor.transformDeclarationExpression(ResolveVisitor.java:1110)

 

Please let me know which import statement or jar I need to use here to resolve the exception.

 

Thanks In advance

Shikhar saxena

No RepliesBe the first to reply