[Webtest] Re: Webtest problems
Denis N. Antonioli
webtest@lists.canoo.com
Mon, 25 Apr 2005 10:55:09 +0200
Hi
so, webtest fails building the first HTTPS connection.
It looks like webtest itself has been set up correctly for https, as =20
webtest locates at least sun's security implementation.
Let's look at the jsse error with java option javax.net.debug (see =20
<http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/=20
JSSERefGuide.html#Debug> or =20
<http://java.sun.com/products/jsse/INSTALL.html>)
At the place in your ant build file where you're starting java with =20
webtest, adds into the <java ...></java>:
<sysproperty key=3D"javax.net.debug" value=3D"all" />
Best
dna
On 21 avr. 05, at 17:36, Robert Maxwell wrote:
> Set up the debug log level and got the following back from it
>
> [java] [testSpec] DEBUG (HttpsProtocolSupport.java:108) - =20
> HttpsProtocol
> Handler list was =3D null
> [java] [testSpec] DEBUG (HttpsProtocolSupport.java:115) - Https =20
> Protocol
> Handler list now =3D com.sun.net.ssl.internal.www.protocol
> [java] [testSpec] DEBUG (HttpWebResponse.java:244) -
> HttpWebResponse.addHeader
> [java] [testSpec] DEBUG (HttpWebResponse.java:245) - key =3D =20
> CONTENT-LENGTH
> [java] [testSpec] DEBUG (HttpWebResponse.java:246) - field =3D -1
> [java] [testSpec] ERROR (Step.java:333) - Cannot handle unexpected
> exception in step InvokePage at
> C:\Tools\AntHill\AllSDEJ\CuramSDEJ\tests\AutomatedTests\login.xml:3: =20=
> with
> (stepId=3D"get Login Page", url=3D"logon.jsp", stepType=3D"invoke")
> [java] [testSpec] java.net.ConnectException: Connection refused:
> connect
>
> When I went to access the server by hand, all was ok with the service.
> I have attached a log file to this failure with the debug invoked on =20=
> it.
>
> Is it a case that it is trying to access a page that isn't there?
>
> Cheers
> Robert Maxwell
>
> -----Original Message-----
> From: Denis N. Antonioli [mailto:denis.antonioli@canoo.com]
> Sent: 20 April 2005 14:03
> To: webtest@lists.canoo.com
> Cc: Robert Maxwell
> Subject: Re: Webtest problems
>
> [Please use the mailing list for such discussion]
>
> Different errors with the same webtest, but different server
> configurations?
> Are you sure that it isn't a server configuration issue?
> What happens if you access the server by hand, e.g. with your browser?
>
> Otherwise, you can have webtest log more information by changing the
> log level.
> Edit %WEBTEST%\lib\log4j.properties and changes the second line to =
read
> log4j.rootCategoory=3Ddebug.stdout
>
> Best
> dna
>
> On 19 avr. 05, at 13:32, Robert Maxwell wrote:
>
>> =A0
>> Dear Mr. Antonioli,
>> =A0
>> I have posted a bug about the webtest from canoo, I was just =
wondering
>> if anyone was looking into this at the moment, just as it is quite a
>> vital part to our testing system at the moment and most of=A0 our =
main
>> tests are failing due to this?
>> =A0
>> http://webtest-community.canoo.com/jira/browse/WT-40
>> =A0
>> =A0
>> =A0
>> Thanks
>> =A0Robert Maxwell
>
> --=20
> Java is not a product or an OS or a platform, it's just a brand.
> -- Dave Winer
--=20
The proper function of a man is to live, not to exist.
-- J. London