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

Bug 420121

Summary: SWTBotTree.select(String...) does not fail if item does not exist
Product: [Technology] SWTBot Reporter: Kristine Jetzke <kristine.jetzke>
Component: SWTBotAssignee: Project Inbox <swtbot-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mistria
Version: 2.1.1   
Target Milestone: 2.2.0   
Hardware: PC   
OS: Windows 8   
Whiteboard:

Description Kristine Jetzke CLA 2013-10-22 17:19:55 EDT
SWTBotTree.select(String...) does not fail if item does not exist. If it is used in a unit test, the unit test either needs to assert that all items were selected or retrieve and select each item separately. It would be better if an exception were thrown if an item does not exist.
Comment 1 Kristine Jetzke CLA 2013-10-22 17:45:28 EDT
Pushed fix to gerrit: https://git.eclipse.org/r/17667/
Comment 2 Mickael Istria CLA 2013-10-23 05:04:25 EDT
Thanks. Please see comments on the Gerrit review.
Comment 3 Mickael Istria CLA 2013-10-25 05:22:42 EDT
Thanks Kristine for this fix.