Discussions

Performance and scalability: Grinder 2.86 with https problem

  1. Grinder 2.86 with https problem (4 messages)

    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

    Threaded Messages (4)

  2. grinder.properties[ Go to top ]

    make sure the plugin you are using is Https:

    grinder.properties:
    grinder.plugin=net.grinder.plugin.http.HttpsPlugin
  3. grinder.properties[ Go to top ]

    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>
  4. Grinder 2.86 with https problem[ Go to top ]

    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
  5. Grinder 2.86 with https problem[ Go to top ]

    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.