Squish 7.2.0 Known Issues

Last edited on

Known Issues - Squish 7.2.0 Release

Release Date: Sep 12th, 2023

Recommended Update: 7.2.1

Squish for Qt for WebAssembly

Obscuring text on WebAssembly AUT with Qt 6.5.x

"Enable Screen Reader" text obscures the highlighted object in the picking mode on WebAssembly application(s) that are built with Qt version 6.5.0, 6.5.1 and 6.5.2.

The issue is resolved starting with Qt 6.5.3 ( QTBUG-111896 ).

Workaround: Disable the highlighter in SQUISHDIR/etc/qtwrapper.ini by setting DisplayHighlighter = 0.

Squish on macOS 14.0 Sonoma

Squish IDE splash screen displays Squish graphic upside down on macOS Sonoma

On macOS 14 (Sonoma), the splash screen displayed on Squish IDE start-up initially shows Squish logo and background graphic normally, but quickly flips to show it upside down. This is a known upstream bug in platform-specific Java (SWT) code and affects Eclipse IDE as well as all applications built upon Eclipse framework, such as Squish. There is no known work-around for this issue.

activateItem() hangs when operating menus

This affects both Squish for Mac and Squish for Qt.

When operating macOS's global menu bar from a test script, calls to activateItem() can hang after opening a menu and block further test execution as a result. This happens because a call to the accessibility features of macOS does not return.

Workaround: The part that hangs when invoking menu items is opening the dropdown menu itself. Due to the nature of macOS's accessibility API, it is possible to press menu items while they aren't visible on screen. Given you have this sequence of actions:

activateItem(waitForObject(names.file_NSMenuItem))
activateItem(waitForObject(names.open_NSMenuItem))

...then transforming it like this could work.

activateItem(waitForObjectExists(names.open_NSMenuItem))

The changes are:

  1. Skip traversing the menu
  2. Change the waitForObject call to waitForObjectExists

This way, Squish will try to press even invisible menu items. This will only work if the object name itself doesn't contain visible='1'. Also note that while this makes the test less precise (because human-like menu traversal is missing), it is still not possible to invoke disabled menu items this way.

The AUT starts up unfocused, preventing tests from running

This used to happen occasionally on earlier macOS versions, too, but according to our tests it occurs more frequently on macOS 14.

Workaround: Use nativeMouseClick() to focus the AUT window with a click.

bounds = object.globalBounds(squish.waitForObjectExists("{title='My App' type='NSWindow'}"))
nativeMouseClick(bounds.x + 5, bounds.y + 5, MouseButton.LeftButton)

Documentation

Incorrect documentation of test.vpWithImage

The offline documentation in Squish packages as well as the feature overview in the Squish IDE Welcome Page incorrectly explain that the second argument for the test.vpWithImage function replaces the expected image. The second argument however overrides taking a screenshot of the object and thus provides the actual image for the comparison.

Workaround: Use the online documentation to inform yourself about test.vpWithImage