Speed up SWTBot tests in org.eclipse.swtbot.eclipse.finder.test package

Instead of waiting for the Welcome view (which can time out) and closing
it if it is found, iterate through all views and close the Welcome view
if it is part of the list.

Instead of waiting for the Window > Open Perspective > Java menu (which
can time out) and clicking it if it is found, check first if the active
perspective is not the Java perspective.

Make all test classes in org.eclipse.swtbot.eclipse.finder.test extend
AbstractSWTBotEclipseTest to reuse its @BeforeClass and @After code.

Change-Id: Ie3aec0d45c6e2ce5ca304ed8f45e21ac7549b226
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
8 files changed
tree: 43183d281c365ae7b8b223da548ec11b7c5e2fb3
  1. artwork/
  2. devtools/
  3. examples/
  4. org.eclipse.swt.examples/
  5. org.eclipse.swtbot/
  6. org.eclipse.swtbot.ant.junit/
  7. org.eclipse.swtbot.e4.finder/
  8. org.eclipse.swtbot.e4.finder.test/
  9. org.eclipse.swtbot.eclipse/
  10. org.eclipse.swtbot.eclipse.core/
  11. org.eclipse.swtbot.eclipse.dsl/
  12. org.eclipse.swtbot.eclipse.finder/
  13. org.eclipse.swtbot.eclipse.finder.test/
  14. org.eclipse.swtbot.eclipse.gef/
  15. org.eclipse.swtbot.eclipse.gef.finder/
  16. org.eclipse.swtbot.eclipse.junit.headless/
  17. org.eclipse.swtbot.eclipse.spy/
  18. org.eclipse.swtbot.eclipse.test.junit/
  19. org.eclipse.swtbot.eclipse.test.junit4/
  20. org.eclipse.swtbot.eclipse.ui/
  21. org.eclipse.swtbot.eclipse.ui.test/
  22. org.eclipse.swtbot.forms/
  23. org.eclipse.swtbot.forms.finder/
  24. org.eclipse.swtbot.forms.finder.test/
  25. org.eclipse.swtbot.generator/
  26. org.eclipse.swtbot.generator.feature/
  27. org.eclipse.swtbot.generator.jdt/
  28. org.eclipse.swtbot.generator.jdt.test/
  29. org.eclipse.swtbot.generator.rules.workbench/
  30. org.eclipse.swtbot.generator.test/
  31. org.eclipse.swtbot.generator.ui/
  32. org.eclipse.swtbot.go/
  33. org.eclipse.swtbot.ide/
  34. org.eclipse.swtbot.junit4_x/
  35. org.eclipse.swtbot.nebula.gallery/
  36. org.eclipse.swtbot.nebula.gallery.finder/
  37. org.eclipse.swtbot.nebula.gallery.finder.test/
  38. org.eclipse.swtbot.releng/
  39. org.eclipse.swtbot.swt.demo/
  40. org.eclipse.swtbot.swt.finder/
  41. org.eclipse.swtbot.swt.finder.test/
  42. org.eclipse.swtbot.swt.finder.test.keyboards/
  43. org.eclipse.swtbot.test/
  44. org.eclipse.swtbot.updatesite/
  45. org.eclipse.ui.forms.examples/
  46. .git-svn-authors
  47. .gitignore
  48. .project
  49. CONTRIBUTING.md
  50. pom.xml
  51. README.md
README.md

SWTBot

SWTBot is a Java API that interacts with SWT by using high-level operations. It is generally use to write UI tests efficiently since the grain of the API is the same grain as UI operation. It makes easier to transform a user scenario to an automated tests.

Documentation & links

http://wiki.eclipse.org/SWTBot

Contributing

GitHub tracker and pull requests are currently not supported by the contribution process.

Please read http://wiki.eclipse.org/SWTBot/Contributing to know how to interact well with the community. For further questions about contributing to SWTBot, please send a mail to swtbot-dev@eclipse.org .