Forum Discussion

mgupta1405's avatar
mgupta1405
Occasional Contributor
13 years ago

MultipleCompilationErrorsException: startup failed

I tried to execute the following code


def project = context.testCase.testSuite.project
def testSuite = project.getTestSuiteAt(0)
def testCase = testSuite.getTestCaseAt(0)
def sourceTestStep = context.expand( ‘${#TestCase#FindEvent}’ ) //FindEvent is a SOAP request
def targetTestStep = context.expand( ‘${#TestCase#TestRequest}’ ) //TestRequest is a SOAP request


but I got the following stacktrace

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script6.groovy: 5: unexpected char: '#' @ line 5, column 41. TestStep = context.expand( ‘${#TestCase# ^ org.codehaus.groovy.syntax.SyntaxException: unexpected char: '#' @ line 5, column 41.


Can anyone tell me the problem in this and the possible solution for this?

Thanks
Mohit

2 Replies