List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
But if you want to stay informed about news about QF-Test, you can simply
Subscribe to Newsletter  

To get up-to-date information about each release - including minor releases - you can
subscribe to the RSS feed or follow us on social media.
Alternatively, QF-Test also provides release information itself.

Another source of information is our blog, where there are current articles on general topics, on the company QFS and also various "how-tos"
subscribe to blog


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

Re: [QF-Test] Unable to get the state of a checkbox


  • Subject: Re: [QF-Test] Unable to get the state of a checkbox
  • From: Martin Moser <martin.moser@?.de>
  • Date: Wed, 31 Aug 2016 12:28:19 +0200

Hi Michael,

your web-page is a good sample how you could extend QF-Test to recognize
custom HTML objects.

The short answer:
Insert a procedure call to qfs.web.ajax.installCustomWebResolver from
the qfs.qft as last step of your Setup node.
Then set the parameter "genericClasses" to checkbox=CheckBox.

In case you have already such a call or a call to
qfs.web.ajax.installToolkitResolver, please replace that call with the
new one.


The long explanation:
As HTML as no clear definition which object represent a button or a
checkbox there are lots of toolkits around which create whatever they
want to create. In order to make a generic tool like QF-Test working
with such a flexible and generic infrastructure, it's required to
"translate" the custom HTML structure to the vocabulary of QF-Test
generic classes.

Let's take a look at your case:
If you analyze that checkbox with any developer tools for web-pages you
will see that this checkbox has the following HTML code:

<div class="checkbox c-checkbox">
	<label>
		<input ...>
		<span....
	</label>
</div>

Whenever you record clicks the "span" node get all clicks, because this
node is drawn over the actual input node.

So now we need to find a way how we can translate that structure to the
QF-Test generic classes.
This translation happens via the "qfs.web.ajax.installCustomWebResolver"
procedure from the qfs.qft.
At this call you have the parameter "genericClasses" which you can use
to translate the css-classes of your application to QF-Test generic classes.
In your case the <div> node actually represents the entire checkbox and
it has a meaningful class attribute, so I translated this into a QF-Test
"CheckBox". That's why the short reply has checkbox=CheckBox in the
parameter.

You can find more information about this in the manual:
Chapter "38.3 Customizing Qf-Test for your AJAX toolkit".

BTW: In November there will be a special webinar dealing with this topic.

Best Regards,
Martin

Am 30.08.2016 um 13:00 schrieb Michael.Gruenenwald@?.ch:
Hello,



I'm trying to get the state of a checkbox on a website. I can tick and
untick the checkbox using the "mouse event" node, but I cannot read its
state. I tried the "check boolean" node and the procedures at
qfs.web.checkbox.deselect and qfs.web.checkbox.select. No success, I
always get this error message: "This kind of check is not possible for a
component of class 'de.qfs.apps.qftest.client.web.dom.DomNode'.". I'm
using QF-Test 4.0.11.



Any suggestions to get it work? In order to reproduce the issue, please
go to:
https://advancedtomato.com/demo/status-overview.asp#basic-time.asp and
choose the checkbox at "Auto Daylight Savings Time".



Thanks in advance for your feedback.



Best regards,

Michael

Securiton AG, Alarm- und Sicherheitssysteme
*Michael Grünenwald*, Testingenieur ELS
Hauptsitz, Alpenstrasse 20, CH-3052 Zollikofen
Tel. +41 31 910 17 35, Fax +41 31 910 13 03
michael.gruenenwald@?.ch | www.securiton.ch
<http://www.securiton.ch/>




---------------------------------------------------------------------------------------------------------
This e-mail is confidential and may contain privileged information. It
is intended only for the addressees. If you have received this e-mail in
error, kindly notify us immediately by telephone or e-mail and delete
the message from your system.
---------------------------------------------------------------------------------------------------------



_______________________________________________
qftest-list mailing list
qftest-list@?.de
https://archive.qfs.de/mailman/listinfo/qftest-list

--
Martin Moser

E: martin.moser@?.de
T: +49 8171 38648-14
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