CI environment, kwallet & tests that pop windows

David Faure faure at kde.org
Mon Jan 20 11:32:04 UTC 2014


On Sunday 19 January 2014 23:02:09 Valentin Rusu wrote:
> Hello,
> 
> 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)
> 
> 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?

You can't do that, at least not portably nor easily.

It would be better to have a mode where the server replies "prepared answers"
*instead* of popping up a dialog.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list