CI environment, kwallet & tests that pop windows

Ben Cooksley bcooksley at kde.org
Mon Jan 20 00:23:03 UTC 2014


On Mon, Jan 20, 2014 at 11:02 AM, Valentin Rusu <kde at rusu.info> wrote:
> Hello,

Hi,

>
> kwallet-framework tests now (correctly) work when launched from a KF5 session.
> kwalletd pop-ups password dialogs using KF5/Qt5 (yes!).
>
> I also added SKIP for the case where there's no graphical session, thinking
> that the CI does not have such an environment, but I was wrong :o)

The CI system attempts to emulate a real, full session as much as possible.
It uses Xvfb to provide a graphical screen, Openbox as a window
manager, sets up a D-Bus session bus and launches kdeinit4 /
nepomukserver.

KWin can't be used as we need to be able to launch a WM for kdelibs,
etc - and they can't depend, even at runtime, on anything above them
in the stack.

>
> QTest has a qWaitForWindowActive, but I think that my tests cannot use it, as
> the windows are shown by the kwalletd daemon, which is a separate process,
> launched via dbus activation.
>
> Does somebody has an idea how to detect the KNewPasswordDialog and
> KPasswordDialog instances popping-up from the tests?
>
>
> --
> Valentin Rusu
> irc: valir

Thanks,
Ben

>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>


More information about the Kde-frameworks-devel mailing list