This message was sent from Geocrawler.com by "Henrik" <[EMAIL PROTECTED]>
Be sure to reply to that address.
Hi,
I´m currently developing a Java servlet-based web-
application.
What I would like to do is the following:
Given a couple of servlets (.class-files) I want
to make a application (maybe another servlet)
that calls the servlets over and over again for a
period of time. For every run of a servlet I
would like to measure and store information (for
example the execution-time). This test shall be
automated!
My problem is:
How do I call a servlets doPost(...) or doGet
(...)-methods from another servlet? The doPost
(...) and doGet(...) requires a
HttpServletRequest, witch the normally gets from
a browser. Can I construct a HttpServletRequest-
object myself? If I can, where can I find that
information? Is there another way of reciving a
HttpServletRequest-object?
(Calling the methods USED inside the doGet(...)
or doPost(..)-methods, of a servlet, is out of
the question. I WANT this test to be as exact as
it can be)
Maybe anyone has a better idea of making a
automated test of a a couple of servlets?
Regards,
Henrik Widenfors
[EMAIL PROTECTED]
Geocrawler.com - The Knowledge Archive
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]