22 messages in com.canoo.lists.webtest[Webtest] HTTP error 302| From | Sent On | Attachments |
|---|---|---|
| John and Pip | 16 Nov 2006 13:01 | |
| Charlie Kuharski | 16 Nov 2006 14:20 | |
| John and Pip | 16 Nov 2006 14:38 | |
| Charlie Kuharski | 16 Nov 2006 14:49 | |
| Rob Manthey | 16 Nov 2006 15:14 | |
| Rob Manthey | 16 Nov 2006 15:17 | |
| John and Pip | 16 Nov 2006 16:35 | |
| Aarathi Niranjan | 16 Nov 2006 17:48 | |
| Rob Manthey | 16 Nov 2006 17:53 | |
| Michael Habbert | 16 Nov 2006 23:07 | |
| Marc Guillemot | 17 Nov 2006 00:04 | |
| Paul King | 17 Nov 2006 00:28 | |
| John and Pip | 17 Nov 2006 11:55 | |
| John and Pip | 02 Jan 2007 11:10 | |
| John and Pip | 02 Jan 2007 12:00 | |
| John and Pip | 02 Jan 2007 12:37 | |
| Marc Guillemot | 04 Jan 2007 01:24 | |
| John and Pip | 04 Jan 2007 04:32 | |
| John and Pip | 04 Jan 2007 18:38 | |
| Marc Guillemot | 05 Jan 2007 03:08 | |
| John and Pip | 06 Jan 2007 23:09 | |
| Marc Guillemot | 08 Jan 2007 00:39 |
| Subject: | [Webtest] HTTP error 302![]() |
|---|---|
| From: | John and Pip (pipa...@gmail.com) |
| Date: | 11/16/2006 01:01:52 PM |
| List: | com.canoo.lists.webtest |
Hi,
I have a test that is failing to follow a 302 error. I've searched the archives and played around trying to enable redirects but nothing seems to work.
Below is the stripped-down test (just one invoke) and the output. This is a
publicly available page so you can hit
https://flightbookings.airnewzealand.co.nz/isbook_en_NZ/book/initSearchForFlights.dofrom
either IE or Firefox so I'm hoping someone can help me figure out how
to hit this page from WebTest! Note that I've tried an internal page that is
http rather than https and get the same problem so it isn't related to SSL.
I am using Java 1.5.0.6, HTMLUnit 1.10 and WebTest R_1393 (I think! How can I verify this?).
Regards,
John
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "WebTest.dtd">
<project name="OLH" basedir="." default="main">
<property name="webtest.home" location="..\.."/>
<import file="${webtest.home}/lib/taskdef.xml"/>
<target name="main">
<webtest name="ISIS SFF NZ Search">
<steps>
<invoke description="ISIS
SFF NZ search page" url="
https://flightbookings.airnewzealand.co.nz/isbook_en_NZ/book/initSearchForFlights.do"
/>
</steps>
</webtest>
</target>
</project>
Here is the output:
<?xml version="1.0" encoding="UTF-8"?>
<summary Implementation-Title="Canoo Webtest" Implementation-Version="R_1389">
<testresult endtime="Fri Nov 17 09:25:42 NZDT 2006"
location="F:\WebTest\doc\ISIS\tempTest.xml:7: " starttime="Fri Nov 17 09:25:40 NZDT 2006"
successful="no" testspecname="ISIS SFF NZ Search">
<config>
[snipped because I give the full URL below – get same result if set up config properly including port 443]
</config>
<results>
<step>
<parameter name="description" value="ISIS SFF NZ search page"/>
<parameter name="method" value="GET"/>
<parameter name="resultFilename" value="response_1163708742276_invoke.html"/>
<parameter name="taskName" value="invoke"/>
<parameter name="url" value="
https://flightbookings.airnewzealand.co.nz/isbook_en_NZ/book/initSearchForFlights.do
"/>
<result>
<failed duration="1469"/>
</result>
<htmlparser>
<error col="1" line="1" url="
https://flightbookings.airnewzealand.co.nz/isbook_en_NZ/book/initSearchForFlights.do">Empty
document.</error>
</htmlparser>
</step>
<failure message="com.canoo.webtest.engine.StepFailedException:
Step[invoke "ISIS SFF NZ search page" (1/1)]: HTTP error 302, at:
invoke, Step: InvokePage at F:\WebTest\doc\ISIS\tempTest.xml:9: with
(description="ISIS SFF NZ search page", method="GET",
resultFilename="response_1163708742276_invoke.html",
taskName="invoke",
url="https://flightbookings.airnewzealand.co.nz/isbook_en_NZ/book/initSearchForFlights.do")"/>
</results>
</testresult>
</summary>




