2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

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: Mon, 12 Nov 2012 09:11:50 +0100

Hi Paul,

rc.engine is a QF-Test internal command, which you normally don't need.
But in your specific case there might be a use-case for that as that script makes the implementation a lot easier.

If you insert a script with Jython code you can always make something like

print dir(rc)
print dir(rc.engine)


The dir command in Jython always prints the public methods etc.


Best Regards,
Martin

--On Freitag, November 09, 2012 21:15:36 +0400 "????" <pavel.finkelshtein@?.com> wrote:

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@?.de>

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




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