4 messages in com.canoo.lists.webtestRe: [Webtest] verifyxpath error : Can...| From | Sent On | Attachments |
|---|---|---|
| rxh...@regence.com | 20 Dec 2004 11:51 | |
| rxh...@regence.com | 20 Dec 2004 14:20 | |
| Marc Guillemot | 21 Dec 2004 02:18 | |
| rxh...@regence.com | 21 Dec 2004 12:17 |
| Subject: | Re: [Webtest] verifyxpath error : Canoo v1.7 build 593, HtmlUnit![]() |
|---|---|
| From: | rxh...@regence.com (rxh...@regence.com) |
| Date: | 12/20/2004 02:20:13 PM |
| List: | com.canoo.lists.webtest |
Looking at the class VerifyXPath, method verifyXPath, it looks like Canoo v1.6 (w/HttpUnit) uses the org.dom4j.io.DOMReader and v1.7 (w/HtmlUnit) uses org.jaxen.dom.DOMXPath, but it looks like jaxen should accept the same xpath syntax as the dom4j.
Are there differences in what xpath syntax they accept?
rxh...@regence.com Sent by: webt...@lists.canoo.com 12/20/2004 11:52 AM Please respond to webtest
To: webt...@lists.canoo.com cc: Subject: [Webtest] verifyxpath error : Canoo v1.7 build 593, HtmlUnit
I'm using Canoo v1.7 build 593 and I'm getting a verifyxpath error on a test step that has always worked in the past (builds using HttpUnit), so I went back to Canoo v1.6 build 544 (using HttpUnit) and ran the same test and it passed. What's the difference on how HttpUnit and HtmlUnit implements the verifyxpath test step? Or is this a bug with Canoo v1.7 build 593?
Thanks, Richard
---------------- Test Step: ---------------- <verifyxpath stepid="Row 1: Verify 'Medication Name' from detail table" xpath="//table[@id='printFriendly']/tr[2]/td/table/tr[2]/td[1]" text="${text.medication.lipitor}"/>
-----------------------
Error Message:
-----------------------
com.canoo.webtest.engine.StepFailedException: xpath test:
//table[@id='printFriendly']/tr[2]/td/table/tr[2]/td[1] evaluates to: ,
expected value is: LIPITOR, Step: VerifyXPath at
C:\Development\sandbox\canoo_1.7_593\tests\rxpriceguide\cst\HalfTabletProgram.xml:55:
with (text="LIPITOR", stepId="Row 1: Verify 'Medication Name' from detail
table", xpath="//table[@id='printFriendly']/tr[2]/td/table/tr[2]/td[1]",
regex="false", stepType="verifyxpath")
============================================================================== IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature. ============================================================================== ============================================================================== IMPORTANT NOTICE: This communication, including any attachment, contains information that may be confidential or privileged, and is intended solely for the entity or individual to whom it is addressed. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message is strictly prohibited. Nothing in this email, including any attachment, is intended to be a legally binding signature. ==============================================================================
==============================================================================
IMPORTANT NOTICE: This communication, including any attachment, contains
information that may be confidential or privileged, and is intended solely for
the entity or individual to whom it is addressed. If you are not the intended
recipient, you should delete this message and are hereby notified that any
disclosure, copying, or distribution of this message is strictly prohibited.
Nothing in this email, including any attachment, is intended to be a legally
binding signature.
==============================================================================




