POSTing serialized Java objects

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

POSTing serialized Java objects

Andrew de Torres
Hi.

I am trying to set up JMeter to load test a server that uses
Java servlets with serialized Java objects for parameters.  Here
is how  the Java applet client calls it:

URL url = new URL (applet.getCodeBase (), spec);
HttpMessage msg = new HttpMessage (url);
InputStream in = msg.sendPostMessage (arg);
ObjectInputStream result = new ObjectInputStream (in);
Object result = result.readObject ();

"arg" is a Serializable object.  HttpMessage is from Jason
Hunter.   It writes arg to the output stream with content type
application/x-java-serialized-object.

Is it possible to set up my test plan to do this?  I haven't
found anything by Googling or in the FAQ about this (for
application/x-java-serialized-object or serialized java object,
etc.).  HTTP Request seems to only be for name/value pairs
(Strings).  Java Request seems to be something completely
unrelated.

Any pointers would be very much appreciated.

-Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: POSTing serialized Java objects

Andrew de Torres
Can anyone comment on this?  Is my question unclear?  Any
pointers at all?

Thanks,

-Andy



---- On Thu, 11 Jan 2007, Andrew de Torres ([hidden email])
wrote:

> Hi.
>
> I am trying to set up JMeter to load test a server that uses
> Java servlets with serialized Java objects for parameters.
Here

> is how  the Java applet client calls it:
>
> URL url = new URL (applet.getCodeBase (), spec);
> HttpMessage msg = new HttpMessage (url);
> InputStream in = msg.sendPostMessage (arg);
> ObjectInputStream result = new ObjectInputStream (in);
> Object result = result.readObject ();
>
> "arg" is a Serializable object.  HttpMessage is from Jason
> Hunter.   It writes arg to the output stream with content type
> application/x-java-serialized-object.
>
> Is it possible to set up my test plan to do this?  I haven't
> found anything by Googling or in the FAQ about this (for
> application/x-java-serialized-object or serialized java
object,
> etc.).  HTTP Request seems to only be for name/value pairs
> (Strings).  Java Request seems to be something completely
> unrelated.
>
> Any pointers would be very much appreciated.
>
> -Andy
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: POSTing serialized Java objects

support@ubikloadpack.com
Hello,
We distribute a commercial JMeter plugin which allows this, see:
http://ubikloadpack.com

To make your tests realistic, you will need to variabilize content in the
serialized objects.

Our Java Serialization plugin has the following features:

- Easy recording of traffic with JMeter Proxy Server, a Test Plan using
custom Sampler will be created

- Easy variabilization of requests (which will appear as XML) through as
easy syntax as for example ${searchedWord} where searchedWord can come from
a CSV or any user defined variable.

- Easy extraction of data from responses using JMeter standard Post
Processors

- Easy debugging of Request/Responses through standard JMeter View Results
Tree element

http://ubikloadpack.com
Ubik Load Pack - professional Plugins for JMeter
Reply | Threaded
Open this post in threaded view
|

Re: POSTing serialized Java objects

support@ubikloadpack.com
Hello,

You can read more details about the new version 3.3.0 of the UbikLoadPack JavaSer plugin released today:

- http://www.ubik-ingenierie.com/blog/load-testing-java-serialization-applications-with-jmeter/

Regards

@UbikLoadPack Team