Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336150 - BranchAndResetActionTest UI test fails to find shell "New branch"
Summary: BranchAndResetActionTest UI test fails to find shell "New branch"
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 15:45 EST by Robin Stocker CLA
Modified: 2011-02-05 05:11 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Stocker CLA 2011-02-02 15:45:04 EST
Build Identifier: egit master (8201f78bed1882428b3f08b24790cb9b8776a4b0)

BranchAndResetActionTest fails here with the following stack trace:


Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find shell matching: with text 'New branch'
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:398)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:372)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:360)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:346)
	... 31 more

testRenameBranch(org.eclipse.egit.ui.test.team.actions.BranchAndResetActionTest)  Time elapsed: 5.452 sec  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget.
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:348)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.shells(SWTBotFactory.java:112)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.shell(SWTBotFactory.java:102)
	at org.eclipse.swtbot.swt.finder.SWTBotFactory.shell(SWTBotFactory.java:93)
	at org.eclipse.egit.ui.test.team.actions.BranchAndResetActionTest.testRenameBranch(BranchAndResetActionTest.java:354)


When I run the test I can see that the "New branch" dialog is open, then nothing happens for 5 seconds (the timeout) and then the test proceeds.

Other tests don't seem to have problems finding shells. Here's the summary:

Tests run: 105, Failures: 0, Errors: 2, Skipped: 1

Is it possible that the problem is that it's a dialog of a dialog?

Reproducible: Always

Steps to Reproduce:
1. Run "mvn integration-test" in egit/org.eclipse.egit.ui.test
2. Look at test results
Comment 1 Robin Stocker CLA 2011-02-05 05:11:57 EST
With egit commit 4c879313cd1332e594b1ad20b1485bdff9533034, this is fixed.