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] Vaadin check readonly status of TextField


  • Subject: Re: [QF-Test] Vaadin check readonly status of TextField
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Fri, 11 Jul 2014 11:06:01 +0200

Hi Henrik,

looks like that's a check we missed. We'll add that for QF-Test 4.0
final.

Meanwhile you can use the following SUT script:

node = rc.getComponent("QF-Test ID of your node")
# IE, Firefox and Chrome all have different representations for the
# readonly Attribute, but at Javscript level the handling is uniform
# Note that this call is case sensitive
editable = not node.getJS("readOnly")

Now editable is either false or true and you can use rc.check or
rc.checkEqual as you see fit.

But as I said, we're going to add the editable check to QF-Test 4.0.0.

Best regards,
    Greg

Henrik.Horneber@?.de writes:

> Hi,
>
> I'm trying to check the readonly status of a Vaadin TextField using QF.Test 4.0.0-rc1.
>
> Right-clicking in 'record checks' mode does not offer the readonly property.
>
> How would I go about implementing one? I already wrote a couple of custom checkers for Swing GUIs,
> so I understand the basic principles, but I'm stuck on transferring that knowledge to the web
> engine.
>
> I'm using the Vaadin Resolver, so my recorded component is of class TextField, so I cannot use
> getProperty, which would have been my best guess,
>
> Any hints?
>
> 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@?.de
> Phone: +49-511-976 / 41 93 9
> Fax:   +49 511 976 36723
>
> http://www.continental-corporation.com
> _____________________________________________
> 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
> Koeller
> 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.
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list

--
Gregor Schmid

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

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