Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] Good First Bug

Hi ,

 

Any help on below please?

 

Hi,

 

I tried to develop a SWTBotTest (attached) after seeing a introductory video (http://download.eclipse.org/technology/swtbot/docs/videos/beginners/SWTBotGettingStartedIn5Minutes/ ) on SWTBot wiki page. I ran into some errors , which I think are mostly due to dependencies. The video added a dependency called org.hamcrest to the JUnit test plugin. However, for me the plugin doesn’t get listed. So I added the rest of the 4 hamcrest plugins :

 

org.hamcrest.core.source;bundle-version="1.1.0",

org.hamcrest.integration;bundle-version="1.1.0",

org.hamcrest.library;bundle-version="1.1.0",

org.hamcrest.text;bundle-version="1.1.0"

 

However, when I run the test it shows errors related to constraint resolution . I have attached the console output in the email as well.

 

Any tips on how to resolve this?

 

Thanks,

Rohit

 

From: swtbot-dev-bounces@xxxxxxxxxxx [mailto:swtbot-dev-bounces@xxxxxxxxxxx] On Behalf Of Mickael Istria
Sent: Thursday, April 11, 2013 11:26 PM
To: swtbot-dev@xxxxxxxxxxx
Subject: Re: [swtbot-dev] Good First Bug

 

On 04/11/2013 05:07 PM, #ROHIT AGRAWAL# wrote:

Hi,

Hi,

Is there any easy bug recommended for newbies that you could assign to me so I could get a better understanding of  the project?

I don't have an immediate idea. Here is the full list of open bugs/requests: https://bugs.eclipse.org/bugs/buglist.cgi?list_id=5073778&classification=Technology&query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=SWTBot
Are you already an SWTBot user? If not, I'd recommend that you first start by creating a small project that uses SWTBot. Then, when you've succeeded to write some UI scenarios with SWTBot API, you can have a look at the list and choose one that you think is easy enough and provide some value. And if you have some other idea of improvement, feel free to open new bugs.

Cheers,

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Attachment: MyFirstTestCase.java
Description: MyFirstTestCase.java

!SESSION 2013-04-13 03:02:00.290 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_15
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -version 3 -port 51922 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames MyFirstTestCase -application org.eclipse.swtbot.eclipse.core.swtbottestapplication -product org.eclipse.sdk.ide -testpluginname com.eclipse.swtbot.example1
Command-line arguments:  -os win32 -ws win32 -arch x86 -consoleLog -version 3 -port 51922 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames MyFirstTestCase -application org.eclipse.swtbot.eclipse.core.swtbottestapplication -product org.eclipse.sdk.ide -data E:\SWTtestingWorkspace/../junit-workspace -dev file:E:/SWTtestingWorkspace/.metadata/.plugins/org.eclipse.pde.core/pde-junit/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -testpluginname com.eclipse.swtbot.example1

!ENTRY org.eclipse.osgi 2 0 2013-04-13 03:02:04.549
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-13 03:02:04.549
!MESSAGE Bundle reference:file:/E:/SWTtestingWorkspace/com.eclipse.swtbot.example1/ was not resolved.
!SUBENTRY 2 com.eclipse.swtbot.example1 2 0 2013-04-13 03:02:04.552
!MESSAGE Missing required bundle org.hamcrest.core.source_1.1.0.

!ENTRY org.eclipse.osgi 2 0 2013-04-13 03:02:04.556
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-04-13 03:02:04.556
!MESSAGE Bundle com.eclipse.swtbot.example1_1.0.0.qualifier [5] was not resolved.
!SUBENTRY 2 com.eclipse.swtbot.example1 2 0 2013-04-13 03:02:04.557
!MESSAGE Missing required bundle org.hamcrest.core.source_1.1.0.
Exception in thread "WorkbenchTestable" java.lang.IllegalArgumentException: No Classloader found for plug-in com.eclipse.swtbot.example1
	at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getClassLoader(RemotePluginTestRunner.java:79)
	at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.getTestClassLoader(RemotePluginTestRunner.java:73)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
	at org.eclipse.swtbot.eclipse.core.RemotePluginTestRunner.main(RemotePluginTestRunner.java:64)
	at org.eclipse.swtbot.eclipse.core.UITestApplication.runTests(UITestApplication.java:117)
	at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
	at java.lang.Thread.run(Unknown Source)

Back to the top