Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » button.click() => IndexOutOfBoundsException
button.click() => IndexOutOfBoundsException [message #497068] Thu, 12 November 2009 12:38 Go to next message
Andre Kullmann is currently offline Andre KullmannFriend
Messages: 33
Registered: September 2009
Member
Hi,

I try to write an simple testcase. An 'yes no' dialog is shown, after the yes button was clicked an IndexOutOfBoundsException is thown Sad

Does anyone known whats going wrong ?

Here's the complet stacktrace.

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.get(ArrayList.java:321)
at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE xec(UIThreadRunnable.java:173)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe c(AbstractSWTBot.java:475)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify( AbstractSWTBot.java:139)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify( AbstractSWTBot.java:127)
at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify( AbstractSWTBot.java:117)
at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT BotButton.java:73)
at com.company.my.TwoTest.doSomething(TwoTest.java:67)
at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:350)
at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .run(EclipseTestRunner.java:208)
at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .runTests(UITestApplication.java:115)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.java:68)
at java.lang.Thread.run(Thread.java:595)

Thanks,
André
Re: button.click() => IndexOutOfBoundsException [message #497354 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497355 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497358 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497359 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497372 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497382 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497404 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497410 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497411 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497413 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497414 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497416 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497420 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497421 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497432 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497433 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497434 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497444 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497453 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497454 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497464 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497468 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497475 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497476 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497483 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497488 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497493 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497494 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497501 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497511 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497526 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497528 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497533 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497541 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497542 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497546 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497551 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497553 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497556 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497563 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497564 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497565 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497573 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497577 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497588 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497591 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497592 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497604 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497612 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497625 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497633 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497636 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497641 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497646 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497654 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497660 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497664 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497669 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497670 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497682 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497695 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497696 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497701 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497708 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497711 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497725 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497734 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497738 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497743 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497760 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497765 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497768 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497772 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497775 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497778 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497792 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497804 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497811 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497813 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497821 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497829 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497830 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497831 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497834 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497851 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497853 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497858 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497859 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497862 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497871 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497890 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497891 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497894 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497899 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497909 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497915 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497918 is a reply to message #497899] Fri, 13 November 2009 14:48 Go to previous message
Andre Kullmann is currently offline Andre KullmannFriend
Messages: 33
Registered: September 2009
Member
Hi Ketan,

here's the simple code

ApplicationWorkbenchAdvisor {
       [...]
	@Override
	public boolean preShutdown() {		
		Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
		String dialogBoxTitle = "Hello";
		String question = "World";
		return MessageDialog.openQuestion(shell, dialogBoxTitle, question);
	}
}


ApplicationActionBarAdvisor {
    [...]
    protected void makeActions(IWorkbenchWindow window) {
		exitAction = ActionFactory.QUIT.create(window);
		register(exitAction);

    }

    protected void fillMenuBar(IMenuManager menuBar) {    	
		MenuManager fileMenu = new   MenuManager("Datei",IWorkbenchActionConstants.M_FILE);		
		menuBar.add( fileMenu );
		fileMenu.add(exitAction);
    }
}


And the Testcase
SwtbotTest {
	private final SWTWorkbenchBot bot = new SWTWorkbenchBot();
	
	@Test
	public void doSomethine() throws Exception {
		
		System.out.println("+++ SwtbotTest.doSomethine()");
		
		Thread.sleep(1000);
		
		bot.menu("Datei").menu("Beenden").click();
		
		Thread.sleep(1000);
		
                // Hack to find the right button
		try {
			for( int i=0; ;i++ ) {
				if( "&Ja".equals( bot.button(i).getText() ) )
					bot.button(i).click();
			}
		} catch( ArrayIndexOutOfBoundsException e ) { }
		
		System.out.println("--- SwtbotTest.doSomethine()");
	}
}


Re: button.click() => IndexOutOfBoundsException [message #497926 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497930 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Re: button.click() => IndexOutOfBoundsException [message #497939 is a reply to message #497068] Fri, 13 November 2009 03:36 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Could you provide more information like a snippet of code that clicks on
the button, a slightly more detailed description of the dialog ?

-- Ketan

Andre Kullmann wrote:
> Hi,
>
> I try to write an simple testcase. An 'yes no' dialog is shown, after
> the yes button was clicked an IndexOutOfBoundsException is thown :(
>
> Does anyone known whats going wrong ?
>
> Here's the complet stacktrace.
>
> java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
> at java.util.ArrayList.RangeCheck(ArrayList.java:546)
> at java.util.ArrayList.get(ArrayList.java:321)
> at org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncE
> xec(UIThreadRunnable.java:173)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.syncExe
> c(AbstractSWTBot.java:475)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:139)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:127)
> at org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(
> AbstractSWTBot.java:117)
> at org.eclipse.swtbot.swt.finder.widgets.SWTBotButton.click(SWT
> BotButton.java:73)
> at com.company.my.TwoTest.doSomething(TwoTest.java:67)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:350)
> at org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner
> .run(EclipseTestRunner.java:208)
> at org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication
> .runTests(UITestApplication.java:115)
> at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work
> benchTestable.java:68)
> at java.lang.Thread.run(Thread.java:595)
>
> Thanks,
> André
Previous Topic:Support of MessageDialog
Next Topic:expandNode with 0 delays
Goto Forum:
  


Current Time: Tue Mar 19 11:08:58 GMT 2024

Powered by FUDForum. Page generated in 0.07170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top