13 years ago
BUG! exception in phase 'semantic analysis' in source unit
Hello there,
I have a Testsuite within a project which runs perfectly using soapUI (4.5.0). Trying to run it in a JUnit test fails: "java.lang.AssertionError: expected:<FINISHED> but was:<FAILED>".
I Assume its due to the error message i get in the console:
"ERROR [SoapUI] An error occured [BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Invalid index], see error log for details
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Invalid index"
I googled this error message but I found no solution. This error message was discussed in this forum as well but there was no solution given: http://awww.eviware.com/forum/viewtopic.php?f=2&t=2039&p=14890#p14890
This i my code:
First i was using groovy-all-1.8.0 and I also tried it afterwards with 1.8.6. Nothing changed...
I assume I only get this error message because I'm using groovy scripts in my testsuite. Excluding the scripts is no option.
Has anyone an idea how to solve this issue?
I have a Testsuite within a project which runs perfectly using soapUI (4.5.0). Trying to run it in a JUnit test fails: "java.lang.AssertionError: expected:<FINISHED> but was:<FAILED>".
I Assume its due to the error message i get in the console:
"ERROR [SoapUI] An error occured [BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Invalid index], see error log for details
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Invalid index"
I googled this error message but I found no solution. This error message was discussed in this forum as well but there was no solution given: http://awww.eviware.com/forum/viewtopic.php?f=2&t=2039&p=14890#p14890
This i my code:
@Test
public void allTestCases() throws Exception {
WsdlProject project = new WsdlProject("someproject.xml");
List<TestSuite> testSuites = project.getTestSuiteList();
for (TestSuite suite : testSuites) {
List<TestCase> testCases = suite.getTestCaseList();
for (TestCase testCase : testCases) {
TestRunner runner2 = testCase.run(new PropertiesMap(), false);
assertEquals(Status.FINISHED, runner2.getStatus());
}
}
}
First i was using groovy-all-1.8.0 and I also tried it afterwards with 1.8.6. Nothing changed...
I assume I only get this error message because I'm using groovy scripts in my testsuite. Excluding the scripts is no option.
Has anyone an idea how to solve this issue?