Logo QF-Test

Finding valuable answers
in the Mailing List Archive.

 

Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2014


[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



Videos Downloads Documentation Buy Free Trial