[
https://issues.apache.org/jira/browse/SLING-6231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15629234#comment-15629234
]
Robert Munteanu commented on SLING-6231:
----------------------------------------
Fixed:
* [r1767701 |https://svn.apache.org/r1767701] - Use a specific bot instance
instead of the global one
* [r1767702|https://svn.apache.org/r1767702] - replace hardcoded 1000 ms sleep
with a polling condition
> Sightly SWTBot tests are unstable
> ---------------------------------
>
> Key: SLING-6231
> URL: https://issues.apache.org/jira/browse/SLING-6231
> Project: Sling
> Issue Type: Bug
> Components: IDE
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Fix For: Sling Eclipse IDE 1.1.2
>
> Attachments: sightly-tests-unstable.jpg
>
>
> The Sightly UI tests fail often on Jenkins but also locally. There seems to
> be some kind of timing issue involved.
> The failure is the following:
> {noformat}org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException:
> Could not find widget matching: (of type 'Tree')
> at
> org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:437)
> at
> org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:411)
> at
> org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:399)
> at
> org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:381)
> at
> org.eclipse.swtbot.swt.finder.SWTBotFactory.widget(SWTBotFactory.java:334)
> at org.eclipse.swtbot.swt.finder.SWTBot.tree(SWTBot.java:1283)
> at org.eclipse.swtbot.swt.finder.SWTBot.tree(SWTBot.java:1272)
> at
> org.apache.sling.ide.test.impl.ui.sightly.SightlyAutocompletionTest$AutocompletionCallable.call(SightlyAutocompletionTest.java:110)
> at
> org.apache.sling.ide.test.impl.ui.sightly.SightlyAutocompletionTest.attributeAutocompletion(SightlyAutocompletionTest.java:81){noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)