Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Executing test suite outside eclipse
Executing test suite outside eclipse [message #92187] Tue, 06 February 2007 08:29 Go to next message
Eclipse UserFriend
Originally posted by: emilnowak1980.o2.pl

Hi,

I'm trying to execute tptp test suite outside eclipse using .bat script
from org.eclipse.hyades.execution directory placed in eclipse\plugins
folder.
I try to execute test suite in this way (from command line):

automation-client-adapter.bat -eclipse pathToEclipse -workspace
pathToWorkspace -project pathToProject -suite pathAndNameOfSuiteFile

And running this i get an exception:

org.eclipse.core.runtime.CoreException: Plug-in
org.eclipse.hyades.test.tools.core was unable to load class
org.eclipse.hyades.test.tools.core.services
..TestExecutionService.
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:165)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:149)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.hyades.automation.server.ServiceProxy.<init>(ServiceProxy.java:81)
at
org.eclipse.hyades.automation.server.AutomationServer.run(Au tomationServer.java:254)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
org.eclipse.core.runtime.CoreException[1]:
java.lang.ClassNotFoundException:
org.eclipse.hyades.test.tools.core.services.TestExecutionSer vice
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:278)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.hyades.automation.server.ServiceProxy.<init>(ServiceProxy.java:81)
at
org.eclipse.hyades.automation.server.AutomationServer.run(Au tomationServer.java:254)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)

Any ideas ?

Thanks in advance,
EN
Re: Executing test suite outside eclipse [message #98588 is a reply to message #92187] Mon, 14 May 2007 12:04 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi enowak,
You need to add the follow JARs to the classpath (e.g. append to the -cp
VM parameter) for test execution to the automation-client-adapter.bat
script:

<Eclipse installation
directory> /plugins/org.eclipse.hyades.test.tools.core/common.runner.ja r
<Eclipse installation
directory> /plugins/org.eclipse.hyades.test.tools.core/http.hexrecr.jar
<Eclipse installation
directory> /plugins/org.eclipse.hyades.test.tools.core/http.hextgen.jar
<Eclipse installation
directory>/plugins/org.eclipse.hyades.test.tools.core/http.runner.jar
<Eclipse installation
directory>/plugins/org.eclipse.hyades.test.tools.core/java.runner.jar
<Eclipse installation
directory> /plugins/org.eclipse.hyades.test.tools.core/manual.runner.ja r
<Eclipse installation
directory>/plugins/org.eclipse.hyades.test.tools.core/tools-core.jar

Paul
"enowak" <emilnowak1980@o2.pl> wrote in message
news:eq9e8p$o0$1@utils.eclipse.org...
> Hi,
>
> I'm trying to execute tptp test suite outside eclipse using .bat script
> from org.eclipse.hyades.execution directory placed in eclipse\plugins
> folder.
> I try to execute test suite in this way (from command line):
>
> automation-client-adapter.bat -eclipse pathToEclipse -workspace
> pathToWorkspace -project pathToProject -suite pathAndNameOfSuiteFile
>
> And running this i get an exception:
>
> org.eclipse.core.runtime.CoreException: Plug-in
> org.eclipse.hyades.test.tools.core was unable to load class
> org.eclipse.hyades.test.tools.core.services
> .TestExecutionService.
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:165)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:149)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.eclipse.hyades.automation.server.ServiceProxy.<init>(ServiceProxy.java:81)
> at
> org.eclipse.hyades.automation.server.AutomationServer.run(Au tomationServer.java:254)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
> org.eclipse.core.runtime.CoreException[1]:
> java.lang.ClassNotFoundException:
> org.eclipse.hyades.test.tools.core.services.TestExecutionSer vice
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:278)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
> at
> org.eclipse.hyades.automation.server.ServiceProxy.<init>(ServiceProxy.java:81)
> at
> org.eclipse.hyades.automation.server.AutomationServer.run(Au tomationServer.java:254)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:78)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> at org.eclipse.core.launcher.Main.run(Main.java:977)
> at org.eclipse.core.launcher.Main.main(Main.java:952)
>
> Any ideas ?
>
> Thanks in advance,
> EN
Re: Executing test suite outside eclipse [message #99105 is a reply to message #92187] Wed, 23 May 2007 13:09 Go to previous message
Joe Toomey is currently offline Joe ToomeyFriend
Messages: 79
Registered: July 2009
Member
Hi EN,

The command line you describe should work - there should be no need to
add additional jar files to the classpath. If that workaround fixed
your problem, then this is a bug.

Can you please tell us what version of TPTP you are using and how you
installed it? Does the Test perspective load properly in your
workbench, and are you able to run this same test from within the
workbench (using the same workspace and project)?

Here is an example I just tried using TPTP 4.4 i3 and the resulting output:

C:\TPTP_TestPass\4.4i3_testpass1c\eclipse\plugins\org.eclips e.hyades.execution_4.4.0.200705151029 >automation-client-adapter.bat
-eclipse C:\TPTP_TestPass\4.4i3_testpass1c\eclipse -workspace
C:\TPTP_TestPass\4.4i3_testpass1c\eclipse\workspace -project
org.eclipse.tptp.test.testservices.tests -suite
junit\Test.RemoteTestServices.testsuite

C:\TPTP_TestPass\4.4i3_testpass1c\eclipse\plugins\org.eclips e.hyades.execution_4.4.0.200705151029 >java
-cp ./bin;tptp-automation-client.jar
org.eclipse.hyades.automation.client.adapters.shell.Automati onClientAdapter
-eclipse C:\TPTP_TestPass\4.4i3_testpass1c\eclipse -workspace
C:\TPTP_TestPass\4.4i3_testpass1c\eclipse\workspace -project
org.eclipse.tptp.test.testservices.tests -suite
junit\Test.RemoteTestServices.testsuite
Test started!
Test 'junit\Test.RemoteTestServices.testsuite' executing
Waiting.....
Collected results:
'org.eclipse.hyades.models.common.testprofile.impl.TPFExecut ionResultImpl @62ec62ec
(eProxyURI:
platform:/resource/org.eclipse.tptp.test.testservices.tests/ Test.RemoteTestServices_1179925549105.execution#D000D7D12307 6D820C4FA300A73211DA)'
Test 'junit\Test.RemoteTestServices.testsuite' completed
Test completed!


Thanks,
--Joe
Previous Topic:Ant - ResourceException: Resource does not exist - incorrectly creating filepath
Next Topic:running tptp:publication getting java.lang.Exception
Goto Forum:
  


Current Time: Sat Apr 20 02:13:51 GMT 2024

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

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

Back to the top