Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336150

Summary: BranchAndResetActionTest UI test fails to find shell "New branch"
Product: [Technology] EGit Reporter: Robin Stocker <robin>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

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.