[Webtest] Click-o-matic issues

Dierk Koenig webtest@lists.canoo.com
Mon, 13 Sep 2004 15:25:20 +0200


ok, this seems to be a different issue.

the server sends
304 Not Modified
meaning, see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

We may need to suppress the
If-Modified-Since
header.

You can go to
Click-O-Mat.jar and edit the file
configuration.properties.
It only contains the line:
clickomat.remove.request.headers=Accept-Encoding, Referer, Proxy-Connection

Add the above header such that it reads:
clickomat.remove.request.headers=Accept-Encoding, Referer, Proxy-Connection,
If-Modified-Since

(the mail client may have broken the line,
do everything on one line.)

hope that helps
Mittie

> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Philippe IMOUCHA
> Sent: Montag, 13. September 2004 14:36
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] Click-o-matic issues
>
>
> More detailed log about the last image
>      [java] DEBUG (ConnectionPipe.java:227) - Replace Response Content
> ..
>      [java] DEBUG (ConnectionPipe.java:231) - ... finished in 0
> millisecs
>      [java] DEBUG (ConnectionPipe.java:233) - send Response ...
>      [java] DEBUG (ConnectionPipe.java:239) - ... finished in 0
> millisecs
>      [java] DEBUG (ConnectionPipe.java:220) - sent responseBody:
>
>      [java]  WARN (CodeGeneratingProxyObserver.java:35) - response with
> code 304 not processed.
>      [java] DEBUG (ConnectionPipe.java:119) - roundtrip processed
>      [java] DEBUG (ConnectionPipe.java:127) - request handler finished.
>      [java] DEBUG (HttpRequest.java:88) - cannot read content length
> 'null'- setting to body length 0
>      [java] DEBUG (HttpMessage.java:62) - header string:
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.1
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] Proxy-Connection: keep-alive
>      [java] Accept-Encoding: gzip,deflate
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>      [java] Referer: http://localhost:9090/eshopp4/pages/pageimages.html
>
>
>      [java] DEBUG (HttpRequestCleaner.java:20) - raw client request :
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.1
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] Proxy-Connection: keep-alive
>      [java] Accept-Encoding: gzip,deflate
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>      [java] Referer: http://localhost:9090/eshopp4/pages/pageimages.html
>
>
>      [java] DEBUG (HttpMessage.java:62) - header string:
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.0
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>
>
>      [java] DEBUG (HttpRequestCleaner.java:26) - cleaned client request
> :
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.0
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>
>
>      [java] DEBUG (ConnectionPipe.java:290) - url.toExternalForm() =
> http://localhost:9090/eshopp4/components/img/construction_4.gif
>      [java] DEBUG (ConnectionPipe.java:292) - con.getClass() = class
> sun.net.www.protocol.http.HttpURLConnection
>      [java] DEBUG (ConnectionPipe.java:143) - connection to host
> created.
>      [java] DEBUG (HttpRequest.java:88) - cannot read content length
> 'null'- setting to body length 0
>      [java] DEBUG (HttpMessage.java:62) - header string:
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.0
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>
>
>      [java] DEBUG (ConnectionPipe.java:285) - Request prepared:
>      [java] GET
> http://localhost:9090/eshopp4/components/img/construction_4.gif HTTP/1.0
>      [java] Cache-Control: max-age=0
>      [java] If-Modified-Since: Mon, 06 Sep 2004 07:56:23 GMT
>      [java] Host: localhost:9090
>      [java] Accept: image/png,*/*;q=0.5
>      [java] User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
> rv:1.7) Gecko/20040803 Firefox/0.9.3
>      [java] Keep-Alive: 300
>      [java] Accept-Language: en-us,en;q=0.5
>      [java] If-None-Match: W/"12305-1094457383033"
>      [java] Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>
>
>      [java] DEBUG (ConnectionPipe.java:146) - response code: 304
>      [java] DEBUG (ConnectionPipe.java:247) - reading Response Body...
>      [java] DEBUG (ConnectionPipe.java:251) - ... finished in 0
> millisecs
>      [java] DEBUG (HttpMessage.java:62) - header string:
>      [java] HTTP/1.1 304 Not Modified
>      [java] Date: Mon, 13 Sep 2004 12:33:59 GMT
>      [java] Server: Apache-Coyote/1.1
>      [java] Content-Length: 0
>
>
>      [java] DEBUG (ConnectionPipe.java:227) - Replace Response Content
> ..
>      [java] DEBUG (ConnectionPipe.java:231) - ... finished in 0
> millisecs
>      [java] DEBUG (ConnectionPipe.java:233) - send Response ...
>      [java] DEBUG (ConnectionPipe.java:239) - ... finished in 0
> millisecs
>      [java] DEBUG (ConnectionPipe.java:220) - sent responseBody:
>
>      [java]  WARN (CodeGeneratingProxyObserver.java:35) - response with
> code 304 not processed.
>      [java] DEBUG (ConnectionPipe.java:119) - roundtrip processed
>      [java] DEBUG (ConnectionPipe.java:127) - request handler finished.
>
> ------------------------------------
> Netonomy
> Philippe IMOUCHA
> Application Group - Progam Management Director
> phil@netonomy.com
> 49-51, rue Ganneron
> 75018 PARIS
> France
> tel: +33 (0) 1 74 30 74 03
> fax: +33 (0) 1 74 30 74 41
> mobile: +33 (0) 6 11 48 35 34
> ------------------------------------
>
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com] On Behalf Of Dierk Koenig
> Sent: Monday, September 13, 2004 13:08
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] Click-o-matic issues
>
> any log output on the console?
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of Philippe IMOUCHA
> > Sent: Montag, 13. September 2004 11:07
> > To: webtest@lists.canoo.com
> > Subject: RE: [Webtest] Click-o-matic issues
> >
> >
> > As you mention I have added the mime mapping to my tomcat
> configuration
> > ad restart the application
> > Nothing change same pb
> >
> > Here is a little test case that I try to record but the browser
> doesn't
> > show the images while using the proxy while without the proxy it's
> fine!
> >
> > <html>
> > <head>
> >   <meta http-equiv="content-type" content="text/html;
> > charset=ISO-8859-1">
> >   <title>Click on a button</title>
> > </head>
> > <body>
> >   <IMG SRC="../components/img/construction_1.gif"><br>
> >   <IMG SRC="../components/img/construction_2.gif"><br>
> >   <IMG SRC="../components/img/construction_3.gif"><br>
> >   <IMG SRC="../components/img/construction_4.gif"><br>
> > </body>
> > </html>
> >
> > Phil
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>