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 über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren

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

[QF-Test] Antwort: Recording Tooltip Text

  • Subject: [QF-Test] Antwort: Recording Tooltip Text
  • From: Henrik.Horneber@?.de
  • Date: Mon, 11 Aug 2014 10:23:43 +0200


We faced the same issue,
You can write a custom checker script as detailed in the manual.
It's pretty straight-forward.

I registered the checker for javax.swing.JComponent and all it does differently to the examples in the manual is that it is calling com.getToolTipText() to get the text.

Best Regards / Mit freundlichen Grüßen

Henrik Horneber
Software Engineering

Continental Reifen Deutschland GmbH
Jädekamp 30, 30419 Hannover, Germany
Postbox 169, 30001 Hannover, Germany

Email: henrik.horneber@xxxxxxxx
Phone: +49-511-976 / 41 93 9
Fax:   +49 511 976 36723
Continental Reifen Deutschland GmbH, Vahrenwalder Str. 9, D-30165 Hannover
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Nikolai 
Setzer; Geschaeftsfuehrer/Managing Director: Bernd Guenther, Burkhardt 
Sitz der Gesellschaft/Registered Office: Hannover, 
Registergericht/Registered Court: Amtsgericht Hannover HRB 204239, 
USt.-ID-Nr./VAT-ID-No. DE264920698
Proprietary and confidential. Distribution only by express authority of 
Continental AG or its subsidiaries.

Von:        Ron Britzius <britziusr@xxxxxxxxxxx>
An:        qftest-list@xxxxxx,
Datum:        10.08.2014 20:56
Betreff:        [QF-Test] Recording Tooltip Text
Gesendet von:        qftest-list-bounces@xxxxxx


I am developing QF-Test Suites for simulation software that, among other things, simulates air missions. When an air mission fails, the user can mouse-over the GUI element that represents the mission and a tooltip will appear that details the reason the mission failed. I would like to be able to fetch the text from this tooltip to include it in our test-reports, but my direct attempt at doing so (creating a fetch-text node for the tooltip component) resulted in an exception stating that: This operation is not possible for a component of class 'javax.swing.JToolTip'. Is there an "outside-the-box" method for extracting text from components when this issue is encountered or will this be impossible to do.

Thank you,
qftest-list mailing list