Dear All
I am using Grinder 2.86 and would like to test some https url. Actually I am using java version 1.4.2 and it
seems no need to install JSEE. I have followed
the instruction from web "grinder.sourceforge.net" to set
the classpath, certificate.. however I received
the following error: HTTPClient.ProtocolNotSuppException: Unsupported protocol "https"
Also, when I set my test case to http, I received
the following log:
returned a redirect (302). Ensure the next URL is https://.....
does it mean my test case is successful?
Thanks
Allan
-
Grinder 2.86 with https problem (4 messages)
- Posted by: Thomas Hassler
- Posted on: August 05 2005 02:42 EDT
Threaded Messages (4)
- grinder.properties by brian garcia on August 09 2005 18:11 EDT
- grinder.properties by brian garcia on August 09 2005 18:23 EDT
-
Grinder 2.86 with https problem by Thomas Hassler on August 10 2005 10:30 EDT
- Grinder 2.86 with https problem by brian garcia on August 11 2005 03:38 EDT
-
Grinder 2.86 with https problem by Thomas Hassler on August 10 2005 10:30 EDT
- grinder.properties by brian garcia on August 09 2005 18:23 EDT
-
grinder.properties[ Go to top ]
- Posted by: brian garcia
- Posted on: August 09 2005 18:11 EDT
- in response to Thomas Hassler
make sure the plugin you are using is Https:
grinder.properties:
grinder.plugin=net.grinder.plugin.http.HttpsPlugin -
grinder.properties[ Go to top ]
- Posted by: brian garcia
- Posted on: August 09 2005 18:23 EDT
- in response to brian garcia
scratch that:
returned a redirect (302). Ensure the next URL is https://.....
does it mean my test case is successful?
yes, this is a successful test. setting:
grinder.plugin.parameter.logHTML=true
will display the HTML in <log_dir>/page_<hostname>... which will probably look something like this:
<HTML><HEAD><TITLE>302 Moved</TITLE></HEAD><BODY>
<H1>302 Moved</H1>
The document has moved
here.
</BODY></HTML> -
Grinder 2.86 with https problem[ Go to top ]
- Posted by: Thomas Hassler
- Posted on: August 10 2005 22:30 EDT
- in response to brian garcia
Hi Garcia
Thanks for your suggestion. I tried to use the plugin in class httpHttpsPlugin, however, I received the following
error, is there anything I need to set in order to use
httpHttpsPlugin:
Error initialising grinder process: net.grinder.common.GrinderException: An inst
ance of the specified plug-in class could not be created., nested exception: net.grinder.plugininterface.PluginException: java.lang.IllegalStateException: KeyManagerFactoryImpl is not initialized, nested exception: java.lang.IllegalStateException: KeyManagerFactoryImpl is not initialized
net.grinder.common.GrinderException: An instance of the specified plug-in class
could not be created.
Also, about the redirect question, as you said it is successful but when I add a test case (grinder.test0.parameter.ok)to test whether the page contains a specific string,it fails. So I wonder if I receive" redirect (302)" in the log file, does it mean
the grinder is already accessed to the page successfully or not? Thanks
Allan -
Grinder 2.86 with https problem[ Go to top ]
- Posted by: brian garcia
- Posted on: August 11 2005 15:38 EDT
- in response to Thomas Hassler
an HTTP 302 return will not have the string "ok" like an HTTP 200 would have. for a 302 (redirect), the header will contain something like this:
HTTP/1.1 302 Object Moved
Location: http://localhost/http.html
Server: Apache
Content-Type: text/html
Content-Length: 149
for a 200, the header will look something like this:
HTTP/1.1 200 OK
Server: Apache
Accept-Ranges: bytes
Content-Length: 1259
Connection: close
Content-Type: text/html
notice the OK string in the first line of the output. if you can, try chaning the grinder.test0.parameter.url to a page that you know exists and will not return a 302. the result should be what you expect.