Forum Discussion

Chuck_Micklavzi's avatar
Chuck_Micklavzi
Occasional Contributor
16 years ago

java.lang.IndexOutOfBoundsException While running tests

I am getting this exception often while running Test Request Test Steps sequentially.  If I have 11 Test Request Test Steps the error seems to occur after the 11th executes and I see the results of the test.

Exception in thread "Thread-11" java.lang.IndexOutOfBoundsException: Index: 16,
Size: 16
        at java.util.ArrayList.RangeCheck(Unknown Source)
        at java.util.ArrayList.get(Unknown Source)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.getTestStepAt(WsdlTestCase.java:344)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.run(WsdlTestCaseRunner.java:233)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.start(WsdlTestCaseRunner.java:81)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:534)
        at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.run(WsdlTestCase.java:50)
        at com.eviware.soapui.impl.coverage.actions.ProjectCoverageBuilder.run(S
ourceFile:126)
        at java.lang.Thread.run(Unknown Source)

Any help is appreciated.

Chuck
  • Hello,

    Are TestRequest the only type of TestSteps in your TestCase? If not, what other types of steps do you have? Also could you tell us how, exactly, you are running the tests?

    Regards,
    Dain
    eviware support
  • Chuck_Micklavzi's avatar
    Chuck_Micklavzi
    Occasional Contributor
    I have 1 Groovy Script Test Step, and 2 Properties Test Steps.

    My sequence is
    Soap Request Test Step - default created by SoapUI tool
    Groovy Script Test Step
    Properties Test Step
    Properties Test Step
    12 Soap Request Test Steps (created by Groovy Script Test Step)

    The issue occurs when I run the entire Project or Test Suite or Test Case.

    The exception is thrown after the 12th Soap Request Test Step(16th overal test step).

    Thanks,

    Chuck
  • Hi!

    ok thanks.. this is somehow related to your dynamic creation of request teststeps, although I can't exactly figure out what's going on. The upcoming nightly-build will improve on the range check her, so the error should be gone then.. let me know!

    regards,

    /Ole
    eviware.com
  • Chuck_Micklavzi's avatar
    Chuck_Micklavzi
    Occasional Contributor
    I may have issues with the build.  I will figure it out by early next week.