On Tue, 21 Dec 2004 15:43:02 -0500, Peter Lin <[EMAIL PROTECTED]> wrote:
> ---------- Forwarded message ----------
> From: Anil Philip <[EMAIL PROTECTED]>
> Date: Tue, 21 Dec 2004 14:41:23 -0600
> Subject: how to use JMeter to test a corba server?
> To: Peter Lin <[EMAIL PROTECTED]>, [email protected]
> 
> Peter,
> 
> Can you please post this for me in the jmeter-dev list? I tried to
> subscribe to it but have not gotten any reply from the list daemon.

[Perhaps try again?]

> 
> Hello,
> 
> I am trying to use JMeter to test a corba server. I am wondering
> whether to use a Sampler or JavaRequest or TestBean or some otherâ as
> the corba client.

Samplers do the work of a test; results are returned as test samples
which can then be checked using Assertions or displayed or saved using
Listeners.

A JavaRequest is one example of a Sampler; however it doesn't
communicate externally - it just creates a sample from the data in the
GUI.

Some samplers that communicate externally are:
HTTP Request
FTP Request
Access Log
TCP
etc.

> 
> The actual input data values should be read from property files.
> Methods to be executed should be selected from the gui.
> 
> The documentation is not clear and these terms are unfamiliar eg.
> Logic Controller, Sampler. I have read some of the articles and parts
> of the manual.

See above. It should become clearer when you have read all the manual
and the Wiki and tried some of the examples ...

> 
> The ORB I am using is the one bundled with the Sun jdk. I can write
> the corba client and know some Swing and Java.
> 
> A) What approach is recommended?

You could start by writing a simple standalone client program that
sends a message to the Corba Server and prints out some of the
response. No need for Swing here, just Java.

This could then be turned into a BeanShell script which would
integrate the code into JMeter - there would be no need to write any
Swing code, as the BSH Sampler Gui already exists.

Or you could write your own sampler.

> B) Can anyone give their input as to how to go about the approach
> recommended in A)?

There are some example BeanShell scripts in the extras directory.

I think the simplest sampler to start from is probably the TCP sampler.
Just copy the TCPSampler.java and TCPSamplerGui.java files to new
names, and implement the sample() method by plugging in your client
code.

[You don't need the TCPClient[Impl].java files - they are a way of
decoupling the sampler from the tcp implementation.]

> Thanks,
> 
> Anil
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to