On Fri, 10 Dec 2004 17:25:32 +0100,
[EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hello,
> 
> thanks for the reply, i did find out from where jmeter starts
> and i was able to add some of my default parameters before jmeter
> starts.

If you changed NewDriver.java it means you cannot use a new version of
JMeter without reapplying the fix and rebuilding at least that source
file. You'll have to do that for each new release...

JMeter is intended to be extended. 
But the proper way to do this is to create new classes and put them in
a new jar in lib/ext.

> Anyway can u brief what u meant by
> 'So why not use a static section to do the setup?'
> 

class MyNewClass{
    static {
       // This will be invoked when the class is created
    }
 // ... etc
}

> My current project runs like this
> 
> step1.
> jmeter loads some default parameters (i simply read a .log file)
> like URL, some objects (each jmeter thread will
> access that URL and take the object as POST request).

Sounds rather like the Access Log sampler

> 
> step2.
> jmeter GUI starts, I enter the number of threads....other parameters
> for my sampler.
> 

Not sure what you mean by this. 
These can be preset in the test plan, or passed in via properties.

> step3.
> HTTP POST connection is established...I get some response from server.
> 

JMeter can already do HTTP POSTs and handle the response.

> step4. (to be done!!!! my server is down now)
> Try to read those response and display to user, capture the time stamp,
> and all data required for a GUI.....
> 

JMeter can already do this if you use standard sampler techniques.

> bye,
> with regards,
> Deepak.
> 
> [EMAIL PROTECTED]
> 12/08/2004 06:15 PM
> Bitte antworten an jmeter-dev
> 
>         An:     [EMAIL PROTECTED]
>         Kopie:
>         Thema:  Re: From where does Jmeter start?
> 
> On Wed, 08 Dec 2004 17:23:03 +0100,
> [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > 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?????
> 
> Yes.
> 
> It's in NewDriver.java.
> 
> But changing this is a bad idea.
> 
> >
> > 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....
> 
> So why not use a static section to do the setup?
> 
> > 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!!
> 
> Don't change NewDriver.java.
> 
> S.
> 
> ---------------------------------------------------------------------
> 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