Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Automated test
Automated test [message #55376] Tue, 28 February 2006 04:50 Go to next message
Eclipse User
Originally posted by: ayesha.ltp.soft.net

Hi all,
I am having a problem setting up automated test.The problem is that the
eclipse classloader is unable to load junit/framework/TestListener class. I
am able to run the test from within the workbench successfully. All plugins
selected while running from workbench is also copied into the
test-application. Additionally, I have plugins, org.eclipse.test,
org.eclipse.ant_1.6.5 and org.junit_3.8.1.
I get the following stack trace:
[java] [java] Exception in thread "WorkbenchTestable"
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NoClassDefFoundError: junit/framework/TestListener)
[java] [java] !ENTRY org.eclipse.ui 4 4 2006-02-28 15:18:10.989
[java] [java] at org.eclipse.swt.SWT.error(SWT.java:3283)
[java] [java] !MESSAGE Unhandled event loop exception
[java] [java] at org.eclipse.swt.SWT.error(SWT.java:3206)

[java] [java] at
org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
[java] [java] !ENTRY org.eclipse.ui 4 0 2006-02-28 15:18:10.989
[java] [java] !MESSAGE Failed to execute runnable
(java.lang.NoClassDefFoundError: junit/framework/TestListener)
[java] [java] at
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
[java] [java] at
org.eclipse.swt.widgets.Display.syncExec(Display.java:3700)
[java] [java] at
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.
java:109)
[java] [java] at
org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:185)
[java] [java] at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.ja
va:68)

Ayesha
Re: Automated test [message #55646 is a reply to message #55376] Tue, 28 February 2006 15:12 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 404
Registered: July 2009
Senior Member
Is this an Automated GUI test that you are running or a JUnit plug-in test?
If it's a GUI test, then make sure that you have correctly defined the
dependecies of your plug-in under
the manifest file.

"Ayesha" <ayesha@ltp.soft.net> wrote in message
news:du15pf$l3q$1@utils.eclipse.org...
> Hi all,
> I am having a problem setting up automated test.The problem is that
the
> eclipse classloader is unable to load junit/framework/TestListener class.
I
> am able to run the test from within the workbench successfully. All
plugins
> selected while running from workbench is also copied into the
> test-application. Additionally, I have plugins, org.eclipse.test,
> org.eclipse.ant_1.6.5 and org.junit_3.8.1.
> I get the following stack trace:
> [java] [java] Exception in thread "WorkbenchTestable"
> org.eclipse.swt.SWTException: Failed to execute runnable
> (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> [java] [java] !ENTRY org.eclipse.ui 4 4 2006-02-28 15:18:10.989
> [java] [java] at
org.eclipse.swt.SWT.error(SWT.java:3283)
> [java] [java] !MESSAGE Unhandled event loop exception
> [java] [java] at
org.eclipse.swt.SWT.error(SWT.java:3206)
>
> [java] [java] at
> org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
> [java] [java] !ENTRY org.eclipse.ui 4 0 2006-02-28 15:18:10.989
> [java] [java] !MESSAGE Failed to execute runnable
> (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> [java] [java] at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
> [java] [java] at
> org.eclipse.swt.widgets.Display.syncExec(Display.java:3700)
> [java] [java] at
>
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.
> java:109)
> [java] [java] at
> org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:185)
> [java] [java] at
>
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.ja
> va:68)
>
> Ayesha
>
>
Re: Automated test [message #55753 is a reply to message #55646] Wed, 01 March 2006 00:21 Go to previous messageGo to next message
Eclipse User
Originally posted by: ayesha.ltp.soft.net

This an automated UI Test that I am running using build scripts written in
test.xml. I have added the dependencies in my manifest.mf. Running the
test from within workbench as a Junit-Plugin test works fine. The test fails
with the ClassDefNotFoundError for junit/framework/TestListener when run
using test.xml.

Ayesha

"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:du2as2$gqk$1@utils.eclipse.org...
> Is this an Automated GUI test that you are running or a JUnit plug-in
test?
> If it's a GUI test, then make sure that you have correctly defined the
> dependecies of your plug-in under
> the manifest file.
>
> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> news:du15pf$l3q$1@utils.eclipse.org...
> > Hi all,
> > I am having a problem setting up automated test.The problem is that
> the
> > eclipse classloader is unable to load junit/framework/TestListener
class.
> I
> > am able to run the test from within the workbench successfully. All
> plugins
> > selected while running from workbench is also copied into the
> > test-application. Additionally, I have plugins, org.eclipse.test,
> > org.eclipse.ant_1.6.5 and org.junit_3.8.1.
> > I get the following stack trace:
> > [java] [java] Exception in thread "WorkbenchTestable"
> > org.eclipse.swt.SWTException: Failed to execute runnable
> > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > [java] [java] !ENTRY org.eclipse.ui 4 4 2006-02-28
15:18:10.989
> > [java] [java] at
> org.eclipse.swt.SWT.error(SWT.java:3283)
> > [java] [java] !MESSAGE Unhandled event loop exception
> > [java] [java] at
> org.eclipse.swt.SWT.error(SWT.java:3206)
> >
> > [java] [java] at
> > org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
> > [java] [java] !ENTRY org.eclipse.ui 4 0 2006-02-28
15:18:10.989
> > [java] [java] !MESSAGE Failed to execute runnable
> > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > [java] [java] at
> > org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
> > [java] [java] at
> > org.eclipse.swt.widgets.Display.syncExec(Display.java:3700)
> > [java] [java] at
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.
> > java:109)
> > [java] [java] at
> > org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:185)
> > [java] [java] at
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.ja
> > va:68)
> >
> > Ayesha
> >
> >
>
>
Re: Automated test [message #56110 is a reply to message #55753] Thu, 02 March 2006 11:21 Go to previous messageGo to next message
No real name is currently offline No real name
Messages: 404
Registered: July 2009
Senior Member
Hi Ayesha,

So here's what I gather from your post:

- You have an automated GUI test suite that you are attempting to launch via
an ANT script
- I'm assuming that the automated GUI test suite launches fine when you
launch it normally in your workbench

Now does the ANT script launch when you launch it using the ANT launch
configuration under "External Tools" in your workbench?
Your problem doesn't sound like there is any issue with the automated gui
recorder or the automatable service framework. It's seems like a classical
classpath problem.

"Ayesha" <ayesha@ltp.soft.net> wrote in message
news:du3aeg$eiq$1@utils.eclipse.org...
> This an automated UI Test that I am running using build scripts written in
> test.xml. I have added the dependencies in my manifest.mf. Running the
> test from within workbench as a Junit-Plugin test works fine. The test
fails
> with the ClassDefNotFoundError for junit/framework/TestListener when run
> using test.xml.
>
> Ayesha
>
> "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> news:du2as2$gqk$1@utils.eclipse.org...
> > Is this an Automated GUI test that you are running or a JUnit plug-in
> test?
> > If it's a GUI test, then make sure that you have correctly defined the
> > dependecies of your plug-in under
> > the manifest file.
> >
> > "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > news:du15pf$l3q$1@utils.eclipse.org...
> > > Hi all,
> > > I am having a problem setting up automated test.The problem is
that
> > the
> > > eclipse classloader is unable to load junit/framework/TestListener
> class.
> > I
> > > am able to run the test from within the workbench successfully. All
> > plugins
> > > selected while running from workbench is also copied into the
> > > test-application. Additionally, I have plugins, org.eclipse.test,
> > > org.eclipse.ant_1.6.5 and org.junit_3.8.1.
> > > I get the following stack trace:
> > > [java] [java] Exception in thread "WorkbenchTestable"
> > > org.eclipse.swt.SWTException: Failed to execute runnable
> > > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > > [java] [java] !ENTRY org.eclipse.ui 4 4 2006-02-28
> 15:18:10.989
> > > [java] [java] at
> > org.eclipse.swt.SWT.error(SWT.java:3283)
> > > [java] [java] !MESSAGE Unhandled event loop exception
> > > [java] [java] at
> > org.eclipse.swt.SWT.error(SWT.java:3206)
> > >
> > > [java] [java] at
> > > org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
> > > [java] [java] !ENTRY org.eclipse.ui 4 0 2006-02-28
> 15:18:10.989
> > > [java] [java] !MESSAGE Failed to execute runnable
> > > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > > [java] [java] at
> > >
org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
> > > [java] [java] at
> > > org.eclipse.swt.widgets.Display.syncExec(Display.java:3700)
> > > [java] [java] at
> > >
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.
> > > java:109)
> > > [java] [java] at
> > >
org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:185)
> > > [java] [java] at
> > >
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.ja
> > > va:68)
> > >
> > > Ayesha
> > >
> > >
> >
> >
>
>
Re: Automated test [message #56270 is a reply to message #56110] Fri, 03 March 2006 03:32 Go to previous message
Eclipse User
Originally posted by: ayesha.ltp.soft.net

Thanks for the help. I copied the fragment
org.eclipse.ant.optional.junit_2.1.0 and it started working.

Ayesha

"Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
news:du7633$vkl$1@utils.eclipse.org...
> Hi Ayesha,
>
> So here's what I gather from your post:
>
> - You have an automated GUI test suite that you are attempting to launch
via
> an ANT script
> - I'm assuming that the automated GUI test suite launches fine when you
> launch it normally in your workbench
>
> Now does the ANT script launch when you launch it using the ANT launch
> configuration under "External Tools" in your workbench?
> Your problem doesn't sound like there is any issue with the automated gui
> recorder or the automatable service framework. It's seems like a
classical
> classpath problem.
>
> "Ayesha" <ayesha@ltp.soft.net> wrote in message
> news:du3aeg$eiq$1@utils.eclipse.org...
> > This an automated UI Test that I am running using build scripts written
in
> > test.xml. I have added the dependencies in my manifest.mf. Running the
> > test from within workbench as a Junit-Plugin test works fine. The test
> fails
> > with the ClassDefNotFoundError for junit/framework/TestListener when run
> > using test.xml.
> >
> > Ayesha
> >
> > "Ali Mehregani" <amehrega@ca.ibm.com> wrote in message
> > news:du2as2$gqk$1@utils.eclipse.org...
> > > Is this an Automated GUI test that you are running or a JUnit plug-in
> > test?
> > > If it's a GUI test, then make sure that you have correctly defined the
> > > dependecies of your plug-in under
> > > the manifest file.
> > >
> > > "Ayesha" <ayesha@ltp.soft.net> wrote in message
> > > news:du15pf$l3q$1@utils.eclipse.org...
> > > > Hi all,
> > > > I am having a problem setting up automated test.The problem is
> that
> > > the
> > > > eclipse classloader is unable to load junit/framework/TestListener
> > class.
> > > I
> > > > am able to run the test from within the workbench successfully. All
> > > plugins
> > > > selected while running from workbench is also copied into the
> > > > test-application. Additionally, I have plugins, org.eclipse.test,
> > > > org.eclipse.ant_1.6.5 and org.junit_3.8.1.
> > > > I get the following stack trace:
> > > > [java] [java] Exception in thread "WorkbenchTestable"
> > > > org.eclipse.swt.SWTException: Failed to execute runnable
> > > > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > > > [java] [java] !ENTRY org.eclipse.ui 4 4 2006-02-28
> > 15:18:10.989
> > > > [java] [java] at
> > > org.eclipse.swt.SWT.error(SWT.java:3283)
> > > > [java] [java] !MESSAGE Unhandled event loop exception
> > > > [java] [java] at
> > > org.eclipse.swt.SWT.error(SWT.java:3206)
> > > >
> > > > [java] [java] at
> > > > org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.j ava:178)
> > > > [java] [java] !ENTRY org.eclipse.ui 4 0 2006-02-28
> > 15:18:10.989
> > > > [java] [java] !MESSAGE Failed to execute runnable
> > > > (java.lang.NoClassDefFoundError: junit/framework/TestListener)
> > > > [java] [java] at
> > > >
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchroniz er.java:28)
> > > > [java] [java] at
> > > > org.eclipse.swt.widgets.Display.syncExec(Display.java:3700)
> > > > [java] [java] at
> > > >
> > >
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable.runTest(Wo rkbenchTestable.
> > > > java:109)
> > > > [java] [java] at
> > > >
> org.eclipse.test.UITestApplication.runTests(UITestApplicatio n.java:185)
> > > > [java] [java] at
> > > >
> > >
> >
>
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work benchTestable.ja
> > > > va:68)
> > > >
> > > > Ayesha
> > > >
> > > >
> > >
> > >
> >
> >
>
>
Previous Topic:JWizardDialog text input
Next Topic:TPTP 4.2 i1 / Callisto M5 Milestone Available
Goto Forum:
  


Current Time: Sat Aug 23 09:35:51 EDT 2014

Powered by FUDForum. Page generated in 0.06464 seconds