Mailing list - Entries of 2006


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

Re: [QF-Test] eclipse font chooser


  • Subject: Re: [QF-Test] eclipse font chooser
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 23 Dec 2006 11:05:32 +0100

Hi Huawei, 

Martin is correct. The problem for QF-Test here is not so much
accessing the font or color dialogs. They work the same as the others.
The problem is that we need new QF-Test nodes similar to the
FileSelection nodes, one with a font and one with a color to choose as
detail values. The latter could be simulated with a Selection node,
its detail value specifying the selected RGB color or -1 to abort. But
a font... I'll look into it, but it'll take a while.

Please try Martin's autowin suggestion in the meantime.

Best regards,
    Greg

Martin Moser <martin.moser@?.de> writes:

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

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial