Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Check window modality

  • Subject: Re: [QF-Test] Check window modality
  • From: Martin Moser <martin.moser@?.de>
  • Date: Fri, 09 Nov 2012 17:27:08 +0100

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.")
   rc.logError("Dlg not modal.")

Best Regards,

--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.

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

Videos Downloads Documentation Buy Free Trial