Mailingliste - Einträge 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] Check window modality
Hi Paul,a check for modality can either be implemented in a SUT-script or you simply use a wait-for-component for the component "genericModalShell".
"genericModalShell" is located in the qfs.qft standard library and stands for any modal swt shell.
If you want to implement a dedicated check in a SUT-script this script could look like this:
Sample code for SUT script in Jython: win = rc.getComponent("<ID of your shell or dialog>") isModal = rc.engine.helper.isModal(win) if isModal: rc.logMessage("Dialog modal.") else: rc.logError("Dlg not modal.") Best Regards, Martin--On Donnerstag, November 08, 2012 18:20:14 +0400 "????" <pavel.finkelshtein@?.com> wrote:
Hello Everyone, Have new problem here. Sometimes we need to check if appeared window is modal ( on every available OS - Win XP, Win 7, Linux x64, Linux x86 ). I tried to check enablement of other windows, but this check is incorrect. Is there any more correct way to do it? PS Application is written with SWT. Best, Paul Finkelshtein
-- Martin Moser martin.moser@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-14 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 14083