You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2015/07/13 20:58:04 UTC

[jira] [Updated] (GROOVY-5467) catch Exception from loading from a jar to avoid BUG! message and do proper error reporting

     [ https://issues.apache.org/jira/browse/GROOVY-5467?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pascal Schumacher updated GROOVY-5467:
--------------------------------------
    Priority: Minor  (was: Major)

> catch Exception from loading from a jar to avoid BUG! message and do proper error reporting
> -------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-5467
>                 URL: https://issues.apache.org/jira/browse/GROOVY-5467
>             Project: Groovy
>          Issue Type: Bug
>          Components: xforms
>    Affects Versions: 1.8.6
>         Environment: Windows 7, 64 bit
>            Reporter: Juljan May
>            Priority: Minor
>
> I have a testsuite within a soapui project which runs perfectly using soapUI (4.5.0). Trying to run the testsuite 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"
> This i my code:
> {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());
>     }
>   }
> }
> {code}
> At first i was using groovy-all-1.8.0 and I also tried it with 1.8.6. afterwards.Nothing changed...
> I only get this error message when I'm using groovy scripts in my testsuite.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)