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: Паша <pavel.finkelshtein@?.com>
  • Date: Fri, 9 Nov 2012 21:15:36 +0400

Hi Martin,

Thank you for tour help. I'll try it.
Where did you find information about rc.engine?

Best,
Paul

Финкельштейн П.М.



2012/11/9 Martin Moser <martin.moser@xxxxxx>
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