Skip to content

Fix automated test suite's "I run ..." step

It fails randomly by sikuli not finding GnomeRunDialog.png.

I suspect the reason is that active? in display_helper.rb isn’t reliable — it’s supposed to only return true when virt-viewer is shown. If it can return true even when that’s not the case, the click we use to focus virt-viewer (in post_vm_start_hook in common_steps.rb) may happen too early, so the focus isn’t on virt-viewer. If “I run …” step is the first interaction (which often is the case) that would result in the Alt+F2 key press being lost which explains this bug.

A more reliable way would be to use xprop -root _NET_ACTIVE_WINDOW to get the focused window, and then make sure that the returned window id is the one used by virt-viewer. Also wmctrl -i -a <window id> may be a more reliable way to focus the window than with a sikuli click.

Feature Branch: bugfix/7060-use-gnome-run-dialog-less

Related issues

Original created by @anonym on 7060 (Redmine)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information