[Webtest] RE : [Webtest] Click-O-Mat - Recording fails
Philippe IMOUCHA
webtest@lists.canoo.com
Fri, 27 Aug 2004 07:43:38 +0200
every thing was done with Click-O-Mat and I get the 412 HTTP error
Without Click-O-Mat there is no pb
Phil
________________________________
De: webtest-admin@lists.canoo.com de la part de Dierk Koenig
Date: jeu. 26/08/2004 17:51
À: webtest@lists.canoo.com
Objet : RE: [Webtest] Click-O-Mat - Recording fails
how do you see the static pages in your browser:
- with Click-O-Mat
- without Click-O-Mat
?
-----Original Message-----
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com]On Behalf Of Philippe IMOUCHA
Sent: Donnerstag, 26. August 2004 16:46
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Click-O-Mat - Recording fails
Here is the script I record with static html pages:
1/ Request url http://localhost:9090/eshopp4/page1.html
2/ On the page 2 you just get clicks on hyperlink "goto page3"
3/ On page 3 you just get clicks on button "goto page1"
Here on the Third action I get an error HTTP Status 412
Here is the debug trace of Click-O-Mat
DEBUG (WebTestCodeGenerator.java:346) - name = goto value = goto+page1
DEBUG (WebTestCodeGenerator.java:357) - full url: http://localhost:9090/eshopp4/page1.html?goto=goto+page1
DEBUG (WebTestCodeGenerator.java:280) - names.toString() = [goto]
DEBUG (WebTestCodeGenerator.java:281) - keys.toString() = [goto]
DEBUG (ConnectionPipe.java:120) - request handler finished.
DEBUG (HttpMessage.java:46) - cannot read content length 'null'- setting to 0
DEBUG (HttpRequestCleaner.java:20) - raw client request :
GET http://localhost:9090/eshopp4/page2.html HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Host: localhost:9090
If-None-Match: W/"169-1093530580866"
Proxy-Connection: Keep-Alive
If-Modified-Since: Thu, 26 Aug 2004 14:29:40 GMT
Accept-Language: en-us
DEBUG (ConnectionPipe.java:271) - url.toExternalForm() = http://localhost:9090/eshopp4/page2.html
DEBUG (ConnectionPipe.java:273) - con.getClass() = class sun.net.www.protocol.http.HttpURLConnection
DEBUG (ConnectionPipe.java:142) - connection to host created.
DEBUG (HttpMessage.java:46) - cannot read content length 'null'- setting to 0
DEBUG (ConnectionPipe.java:266) - Request prepared:
GET http://localhost:9090/eshopp4/page2.html HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Host: localhost:9090
If-None-Match: W/"169-1093530580866"
If-Modified-Since: Thu, 26 Aug 2004 14:29:40 GMT
Accept-Language: en-us
DEBUG (ConnectionPipe.java:145) - response code: 412
DEBUG (HttpResponse.java:82) - header string from response:
HTTP/1.1 412 Precondition Failed
Date: Thu, 26 Aug 2004 14:33:34 GMT
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 965
Content-Language: en-US
Here is what have been recorded by Click-O-Mat
<invoke url="page1.html" stepid="" />
&commonVerification;
<verifytitle text="Page 1" />
<invoke url="page2.html" stepid="" />
&commonVerification;
<verifytitle text="Page 2" />
<clicklink label="GOTO App" stepid="" />
&commonVerification;
<verifytitle text="Page 3" />
<clickbutton label="goto page1" stepid="" />
&commonVerification;
<verifytitle text="Page 1" />
File "page1.html"
<html>
<head>
<meta http-equiv="refresh" content="0;URL=page2.html">
<title>Page 1</title>
</head>
<body>
<p align="center"><b><i>Accessing application ..</i></b></p>
</body>
</html>
File "page2.html"
<html>
<head>
<title>Page 2</title>
</head>
<body>
<A HREF="page3.html">goto page3</A>
</body>
</html>
File "page3.html"
<html>
<head>
<title>Page 3</title>
</head>
<body>
<form name="simpleform" method="get" action="page1.html">
<input type="submit" name="goto" value="goto page1">
</form>
</body>
</html>
Phil
________________________________
From: webtest-admin@lists.canoo.com [mailto:webtest-admin@lists.canoo.com] On Behalf Of Dierk Koenig
Sent: Thursday, August 26, 2004 13:18
To: webtest@lists.canoo.com
Subject: RE: [Webtest] Click-O-Mat - Recording fails
ok, it's hard to see what's wrong here.
Let's try something else in order to narrow down the possible failure area :
- Try to request a static html page from you Server.
- Try to use some other web application that would otherwise
be accessible to you without proxy/firewall.
cheers
Mittie