Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot launch error
SWTBot launch error [message #508511] Tue, 19 January 2010 04:44 Go to next message
tomek is currently offline tomek
Messages: 12
Registered: July 2009
Junior Member
Hi everybody i want run swtbot application and I
have a problem i got error :

!SESSION 2010-01-19 10:41:08.353 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
Framework arguments: test -version 3 -port 49508 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames pl.com.oands.solar.testy.client.TestClient -application org.eclipse.swtbot.eclipse.core.swtbottestapplication -product pl.com.oands.solar.client.SolarClient test -testpluginname pl.com.oands.solar.testy
Command-line arguments: -os win32 -ws win32 -arch x86 test -version 3 -port 49508 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames pl.com.oands.solar.testy.client.TestClient -application org.eclipse.swtbot.eclipse.core.swtbottestapplication -product pl.com.oands.solar.client.SolarClient -data D:\dokumenty\Programowanie\Eclipse\workspaceGalileo\workspac e3/../junit-workspace -dev file:D:/dokumenty/Programowanie/Eclipse/workspaceGalileo/wor kspace3/.metadata/.plugins/org.eclipse.pde.core/pde-junit/de v.properties -os win32 -ws win32 -arch x86 test -testpluginname pl.com.oands.solar.testy

!ENTRY org.eclipse.osgi 4 0 2010-01-19 10:41:28.878
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe stApplication.java:50)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)

LCould someone please help me?Thanks by advance!!!

Re: SWTBot launch error [message #508544 is a reply to message #508511] Tue, 19 January 2010 06:44 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan Padegaonkar
Messages: 873
Registered: July 2009
Senior Member
Hi,

You need to specify a -testApplication in addition to the -product argument.

-- Ketan

On 1/19/10 1:44 AM, tomek wrote:
> Hi everybody i want run swtbot application and I have a problem i got
> error :
>
> !SESSION 2010-01-19 10:41:08.353
> -----------------------------------------------
> eclipse.buildId=unknown
> java.version=1.6.0_15
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL
> Framework arguments: test -version 3 -port 49508 -testLoaderClass
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
> -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames
> pl.com.oands.solar.testy.client.TestClient -application
> org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
> pl.com.oands.solar.client.SolarClient test -testpluginname
> pl.com.oands.solar.testy
> Command-line arguments: -os win32 -ws win32 -arch x86 test -version 3
> -port 49508 -testLoaderClass
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader
> -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames
> pl.com.oands.solar.testy.client.TestClient -application
> org.eclipse.swtbot.eclipse.core.swtbottestapplication -product
> pl.com.oands.solar.client.SolarClient -data
> D:\dokumenty\Programowanie\Eclipse\workspaceGalileo\workspac
> e3/../junit-workspace -dev
> file:D:/dokumenty/Programowanie/Eclipse/workspaceGalileo/wor
> kspace3/.metadata/.plugins/org.eclipse.pde.core/pde-junit/de
> v.properties -os win32 -ws win32 -arch x86 test -testpluginname
> pl.com.oands.solar.testy
>
> !ENTRY org.eclipse.osgi 4 0 2010-01-19 10:41:28.878
> !MESSAGE Application error
> !STACK 1
> org.eclipse.core.runtime.AssertionFailedException: null argument:
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
> at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
> at org.eclipse.swtbot.eclipse.core.UITestApplication.start(UITe
> stApplication.java:50)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips
> eAppHandle.java:194)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher
> .start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:368)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS
> tarter.java:179)
> 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.equinox.launcher.Main.invokeFramework(Main.java: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
>
> LCould someone please help me?Thanks by advance!!!
>
Re: SWTBot launch error [message #508549 is a reply to message #508544] Tue, 19 January 2010 07:17 Go to previous messageGo to next message
tomek is currently offline tomek
Messages: 12
Registered: July 2009
Junior Member
Thanks for the quick reply,
but I don't understand what I have to do ?

Can You be more precise ?
Re: SWTBot launch error [message #508571 is a reply to message #508511] Tue, 19 January 2010 08:25 Go to previous message
tomek is currently offline tomek
Messages: 12
Registered: July 2009
Junior Member
Hi I have solution !
The error was because I want run very old application which has been written in eclipse 3.1 and there was class Application implements interface IPlatformRunnable.
When I change interface to IApplication everything is ok.
Previous Topic:How to find the matches in Build Console View
Next Topic:test org.rcpmail using ant not work
Goto Forum:
  


Current Time: Sat Aug 30 00:38:52 EDT 2014

Powered by FUDForum. Page generated in 0.01678 seconds