[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] eclipse font chooser
Hi Huawei,unfortunately the dialog-widgets of SWT are native dialogs, so QF-Test can't access them with it's current version. For some dialogs QF-Test has already implemented methods to deal with this dialog, but not for all.
Up-to-now I only know a proper solution on Windows:In such cases you can integrate the "autowin" Python module, which provides functionality to close windows on Windows operating system.
You can find the according module attached to this mail. You have to copy this file to qftest/jython/.
After you've copied this file, you can start QF-Test. When you now want to close the FontDialog, you can create a SUT-script with this content:
import autowin reload (autowin)fontDialogWindow = autowin.findWindow("Font", 0) #Font is the title of the window, if you have another one adapt it accordingly
autowin.closeWindow(fontDialogWindow) Regards, Martin--On Mittwoch, Dezember 20, 2006 16:12:49 -0500 Huawei Luo <hluo@?.com> wrote:
Hi, my application implements a FontDialog widget, but qftest can't sense it, either hot-key or recording. once this dialog is open, there is no way to let qftest tool to close it, except manually. so how to close it automatically? -- Huawei _______________________________________________ qftest-list mailing list qftest-list@?.de http://www.qfs.de/mailman/listinfo/qftest-list
-- Martin Moser Martin.Moser@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 919874 DE-82538 Geretsried Fax: +49 8171 919876