List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie aber über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren
Newsletter abonnieren

Um aktuell die Informationen zu jeder Release - auch Minor Releases - zu bekommen, können Sie den
RSS-Feed abonnieren oder uns in sozialen Medien folgen.
Alternativ bietet QF-Test auch selbst eine Versionsinformation an.

Eine weitere Informationsquelle ist unser Blog, in dem es aktuelle Beiträge zu allgemeinen Themen, zur Firma QFS und auch diverse "How-Tos" gibt:
Blog abonnieren


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

Re: [QF-Test] Mouse events with QF-Test


  • Subject: Re: [QF-Test] Mouse events with QF-Test
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Wed, 02 Aug 2017 16:22:37 +0200
  • Delivered-to: qftest-list@?.net

Hello Cedric,

I suggest you try to replay hard MOUSE_MOVED events. Soft events might
work as well but that depends on how the mouse coordinates listener is
implemented.

To get the event, just record a mouse click, change its event type to
MOUSE_MOVED and possibly activate 'Replay as hard event'). Make X and
Y coordinate variable and put the event in a procedure.

If you need to use screen coordinates instead of coordinates relative
to some target component it may be easier to use a 'Server script'
based on the AWT Robot. Here's a Jython example:

from java.awt import Robot
robot = Robot()
robot.mouseMove(rc.getInt("x"), rc.getInt("y"))

This assumes that you place the script into a procedure with
parameters x and y for the screen coordinates.

Best regards,
    Greg

BENHAROUS Cedric <cedric.benharous@?.com> writes:

> Hi all,
>
> We are using QF-Test to test a Java application that is displaying mouse coordinates in a status bar.
>
> We would like to be able to move the mouse using QF-Test, at least inside this java application.
>
> How can we do this ? Is there any internal QF-Test Jython API for that ?
>
> Best regards,
>
> Cédric
>
> [@@ THALES GROUP INTERNAL @@]
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> https://movement.qfs.de/mailman/listinfo/qftest-list

-- 
Gregor Schmid

E: gregor.schmid@?.de
T: +49 8171 38648-11
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833