Mailingliste - Einträge 2005

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

Re: [qftestJUI] Wait for idle?

  • Subject: Re: [qftestJUI] Wait for idle?
  • From: Karlheinz Kellerer <Karlheinz.Kellerer@?.de>
  • Date: Fri, 18 Feb 2005 08:27:01 -0000

Hi Shiva,

Intellisys <maillist@?.com> writes:

> Hi all,
> In a typical Swing application, time-consuming tasks are performed in a
> background thread (SwingWorker, etc.), and the GUI is updated by the
> event-processing thread when the background thread finishes its operation.
> We are trying to test such an operation by recording events. The problem is
> that after the time-consuming operation is initiated, the recorded sequence
> goes on to the next item while the background operation is executing. There
> is no obvious component that one can "waitForComponent" for, in this case. Is
> there some general way of causing the sequence to wait until the GUI is
> updated?
Is there any kind of change at the GUI, showing the background thread has
finished. You can use a check node (with an apropriate timeout value) to wait
for the change.

If there is no change visible at all, you will need to go down to the scripting level
(via SUT script node) to check an apropriate SUT state.

Best regards,
Karlheinz Kellerer                     Karlheinz.Kellerer@?.de
Quality First Software GmbH