Hello,
I would like to know from which file exatly does Jmeter starts.
Is there a public static void main(String[] args) to start from?????
because in my project I am using my own sampler
and before I start running the threads, I need to set some
parameters like URL and binary objects which each
thread takes when it access the server. (and these values
have to be set to an array list before any thread is created)
I read these parameters to be read from a binary file
and I want the reading process to be at the beginning
i.e. I want to start Jmeter by reading these values and then
open the GUI etc....
I checked out the start.java in the org.apache.jmeter.gui.action
but could not get what i want.
any help from the developers will be great!!
bye,
with regards,.
Deepak.
[EMAIL PROTECTED]
11/30/2004 09:48 AM
Bitte antworten an jmeter-dev
An: [EMAIL PROTECTED]
Kopie:
Thema: Antwort: Re: Antwort: Re: Antwort: How to access number of
threads?
Hello, thanks for the reply.
I have a simple query. In the already existing project
we have a bat file which upon running, establishes a HTTP
connection and does all thats required.
i have made appropriate changes so that the the o/p from the
HTTP connection is transfered to Jmeter o/p display
(in a simple test case its a html page displaying the www.apache.org home
page)
But the problem here is to make all this process in a single step.
i,e, when I click the 'Run' in a sampler.
The SampleResult sample(Entry e) function is invoked (in the case of FTP
sampler)
or HTTPSampleResult sample(...) - in the case of HTTP sampler.
But in my case I want my .bat file to be invoked when a sample function is
called
or when run is invoked. This .bat file then does the connection
takes the number of threads that I have entered in Jmeter access the
server
and again throws the result back to the jmeter graphical display.
So how can I acess or instruct to run a .bat file from inside a class.
I know its a query on java, still if someone has any answers, it will be
great.....
bye,
with regards,
Deepak.
[EMAIL PROTECTED]
11/26/2004 08:44 PM
Bitte antworten an jmeter-dev
An: [EMAIL PROTECTED]
Kopie:
Thema: Re: Antwort: Re: Antwort: How to access number of threads?
On Fri, 26 Nov 2004 15:12:06 +0100,
[EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> In my project a load tester has already been implemented.
> But the data to the server is sent as java serialised objects
> (binary data). and jmeter alters this binary data before being
> sent to server. (So we cannot use Jmeter in our project)
Which sampler did you try using?
Would it not be simpler just to modify a sampler to support binary upload?
The TCP Sampler might be a good candidate.
Or you could use the BeanShell sampler.
> So my present task is to use jmeter functionalities like
> generating threads, loops and capturing the results from server
> and displaying it while the underlaying logic of establishing connection
> with server etc will be 'not-be-done' by Jmeter.
Connections are not done by the main JMeter code - they are done by the
sampler.
BTW, if you are writing a specialised sampler, I don't see why you
need to know the number or threads etc - just let the main JMeter
engine look after that.
S.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]