William,
That looks like exactly what I need.
Thank you.
David Klima
-----Original Message-----
From: Soula, William [mailto:[EMAIL PROTECTED]
Sent: Fri 2/8/2008 9:10 PM
To: [email protected]; Klima, David
Cc:
Subject: RE: [Webtest] Is there a way for webtest to verify title text
and page text of an expected 404 page produced by an expected and desired
failed URL invoke step?
This one intrigued me and I first tried to use the <not> step around
the <invoke..> and while this avoided the invoke failing I couldn't perform
steps on the response as the failure reported to me was "No current response
available! Is previous invoke missing?" which I found kinda amusing :) Then I
went to the nabble page for the mailing list and searched "404 Not Found" and
found Marc's reply to your exact question.
http://www.nabble.com/How-to-test---verify-content-of-the-404-redirection-to12183398.html#a12183398
Nabble is your best friend :)
William Soula
QA Analyst
Pointserve, Inc.
110 Wild Basin Road
Suite 300
Austin, Texas 78746
O: 512.617.5311
F: 512.617.0466
_____
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klima,
David
Sent: Friday, February 08, 2008 9:27 AM
To: [email protected]
Cc: Klima, David
Subject: [Webtest] Is there a way for webtest to verify title text and
page text of an expected 404 page produced by an expected and desired failed
URL invoke step?
Hi,
As part of a test, I invoke a valid URL that is supposed to produce a
404 page not found error page because the logged-in user does not have
privileges to view the specified URL. When I run the test, webtest records the
invoke as a failing test, and my 2 subsequent steps to verify the title text
and page text of the expected 404 page are apparently ignored, and not run, or
do not get the passing results they should get. The last two steps have yellow
bars next to them on the results page.
Is there a way for webtest to verify title text and page text of an
expected 404 page produced by an expected and desired failed URL invoke step?
I would welcome any advice anyone may provide:
Thanks Much,
David Klima::
FROM MY XML FILE:
<invoke url="https://pretendurl.htm <https://pretendurl.htm/>
"
description="school case preparer cannot access FSA
manage cycle page" />
<verifyTitle text="HTTP 404 Not Found" />
<verifyText text="The page cannot be found" />
END: FROM MY FILE: