[jbosstools-issues] [JBoss JIRA] (JBIDE-22699) BrowserUtilTest.testCreateBrowser failure

Ilya Buziuk (JIRA) issues at jboss.org
Fri Jul 8 08:12:00 EDT 2016


    [ https://issues.jboss.org/browse/JBIDE-22699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263178#comment-13263178 ] 

Ilya Buziuk commented on JBIDE-22699:
-------------------------------------

[~akazakov], This test works just fine locally on ubuntu. What is more, all tests are passing on:
- https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-base_master/
- https://jenkins.mw.lab.eng.bos.redhat.com/hudson/job/jbosstools-base_master_otherOS/

My assumption is that the test is failing on https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/jbosstools-base-Pull-Request/ due to the fact that on the linux slave there is no  *libwebkitgtk-1.0-0* installed. Basically, the test is designed the following way:

{code}
// trying to create webkit browser
b = new BrowserUtility().createBrowser(new Shell(), SWT.WEBKIT);
.
.
} catch (SWTError e) {
// if creating webkit browser failed for some reason (no libwebkitgtk) trying to create default browser
return new Browser(parent, style | SWT.NONE);
}
{code}
As I recall, this will fail on linux due to the fact that SWT.NONE = SWT.WEBKIT on this OS. I think that either installing *libwebkitgtk-1.0-0* on the slave or skipping this test on linux should fix the problem

[~nickboldt] I have tried to rebuild base manually from https://dev-platform-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/jbosstools-base-Pull-Request/ but got failure. 
{code}
ERROR: Couldn't find any revision to build. Verify the repository and branch 
{code}
As I understand this jenkins instance is tuned for building stuff against PRs and one can not simply perform "Rebuild last" on it

> BrowserUtilTest.testCreateBrowser failure
> -----------------------------------------
>
>                 Key: JBIDE-22699
>                 URL: https://issues.jboss.org/browse/JBIDE-22699
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: common/jst/core
>    Affects Versions: 4.4.1.AM1
>            Reporter: Alexey Kazakov
>            Assignee: Ilya Buziuk
>             Fix For: 4.4.1.AM2
>
>
> org.jboss.tools.foundation.ui.test.BrowserUtilTest.testCreateBrowser
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertNotNull(Assert.java:712)
> 	at org.junit.Assert.assertNotNull(Assert.java:722)
> 	at org.jboss.tools.foundation.ui.test.BrowserUtilTest.testCreateBrowser(BrowserUtilTest.java:32)



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list