Hi Dirk,
It's definitely a bug IMO. Please open a bug to help me not forget to fix this.
++
Julien
----- Message d'origine ----
De : Dirk Jerusalem <[EMAIL PROTECTED]>
À : Usage problems for JWebUnit <[email protected]>
Envoyé le : Mercredi, 21 Mars 2007, 16h29mn 45s
Objet : [JWebUnit-users] assertImagePresent and non existent alt-attribute
Hi
folks,
for me
WebTestCase.assertImagePresent seems to be improvable. When you've got image
tags without the attribute "alt" (which is often the case in reality) you will
not be able to find them because of the resulting xpath which is used by
assertImagePresent. Could this please be changed sometimes, so that when
using an empty string as second argument there will only be an xpath like that:
"//[EMAIL PROTECTED]'arg0_string']" ?
junit.framework.AssertionFailedError: Unable to
locate element with xpath "//[EMAIL PROTECTED]"images/etc/warn.gif" and
@alt=""]"
at junit.framework.Assert.fail(Assert.java:47)
at
junit.framework.Assert.assertTrue(Assert.java:20)
at
net.sourceforge.jwebunit.junit.WebTester.assertElementPresentByXPath(WebTester.java:1574)
at
net.sourceforge.jwebunit.junit.WebTester.assertImagePresent(WebTester.java:2494)
at
net.sourceforge.jwebunit.junit.WebTestCase.assertImagePresent(WebTestCase.java:1841)
at
abaxx.admin.track.TrackingScenariosTest.testCreateDefectTimeFilter(TrackingScenariosTest.java:116)
I would be
happy with such a fix.
Greetings,
Dirk.
P.S.: jWebUnit
1.4 = great tool!
[->] Dirk Jerusalem
Quality
Software Engineer & Service Engineer
Research &
Development
[->] abaXX Technology AG
Forststr.
7 · 70174 Stuttgart · Germany
Phone: +49 1805 222-994
Fax: +49 1805
222-993
Mail: [EMAIL PROTECTED]
Surf~In:
support.abaXX.de
Web:
www.abaXX.de
Sitz und
Registergericht: Stuttgart · HRB 21337
Vorstand: Thorsten Schäfer (CEO) ·
Markus Kießling (CSO)
Vorsitzender des Aufsichtsrats: Bernhard Wöbker
abaXX startet Initiative für eXXcellence:
Mit
dieser Initiative stellt die abaXX Technology AG ihr Ziel, signifikante
Beiträge
zur Steigerung der Leistungsfähigkeit und Wettbewerbsstärke von Unternehmen und
Institutionen zu liefern, noch deutlicher in den Mittelpunkt ihres Handelns.
Dazu dienen die innovativen BPM- und Portal-Lösungen von abaXX und ein
umfangreiches Dienstleistungsangebot ergänzt durch ein Netzwerk spezialisierter
Partner. Weitere Informationen finden Sie unter www.abaXX.de/eXXcellence.
Diese E-Mail enthält vertrauliche und/oder rechtlich
geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser E-Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this
e-mail
in error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this e-mail
is strictly forbidden.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users