Skip to content

Releases: alyssaruth/swing-test

v4.0.0

28 Jul 16:08
aed8501
Compare
Choose a tag to compare

💥 Breaking changes 💥

  • Changed all interactions to take place on the Event thread, using invokeAndWait by default.
  • awaitCondition replaced with waitForAssertion. This now expects an assertion to be passed in rather than a boolean method, for better logging on failure.

🔧 Other changes 🔧

  • New findWindow helper, along with README guidance on testing with windows and modals.
  • Added component trees for debugging - these are automatically logged for various failed assertions
  • Added a few other convenience methods like clickOk() and clickCancel()

v3.1.0

20 Apr 07:08
226219d
Compare
Choose a tag to compare

🔧 Changes 🔧

  • Reduce targetCompatibility from 17 -> 1.8, so projects on older java versions can use swing-test without having to upgrade.

v3.0.0

17 Apr 20:29
a33dec4
Compare
Choose a tag to compare

🔧 Changes 🔧

  • Pulled in image-comparison for snapshot testing to allow tolerances and more helpful diagnostics on failure

v2.0.0

22 Feb 12:38
b946c57
Compare
Choose a tag to compare

💥 Breaking changes 💥

  • Dropped support for toolTipText in finders, in favour of Component.name
  • Packages renamed from com.github.alexburlton -> com.github.alyssaburlton

🔧 Other changes 🔧

  • Icon.shouldMatch helper
  • Bumped all dependency versions

v1.0.0

28 Dec 22:41
abeeb69
Compare
Choose a tag to compare

💥 Breaking changes 💥

  • Screenshot tests now look for system properties rather than environment variables (updateScreenshots and screenshotOs)
  • Ported to JUnit5, meaning test skipping for wrong screenshot OS won't work for JUnit4 projects

🔧 Other changes 🔧

  • Make helper extensions work on generic Component, rather than JComponent
  • Couple of specific helpers for JCheckBox
  • awaitCondition helper - more useful in "E2E" type scenarios, e.g. click a button and then tell the test to wait until a certain screen state is achieved before continuing.

Initial release

14 May 17:38
Compare
Choose a tag to compare

First release to jcenter. Pretty basic offering to get this started, including:

  • Container.findChild<T>, Container.getChild<T>, Container.clickChild<T>
  • Component.shouldBeEnabled, Component.shouldBeVisible
  • Component.doubleClick(), Component.doClick(), Component.doHover(), ...
  • Snapshot testing (PNG files)