jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luigi Quitadamo" <lquitad...@kion.it>
Subject RE: Use JMeter programmatically
Date Mon, 09 Jul 2007 12:48:44 GMT
Thank for your reply.
I've already used Ant but as a matter of fact I have to write a lot of code to:
- tell Ant which jmx script has to execute
- where result file has to be generated
- generate result filenames with timestamp to avoid overwriting of previous results.
- read result files and save them on Db.
etc...

For my use case, is more useful using JMeter directly but I've seen that JMeter need to run
from /bin directory, looking for /lib directory, /lib/junit and /lib/ext directories and I
cannot only add the jars in classpath, is it true?
So, to run JMeter programmatically I have to configure my application to be compliant for
this requires?
 
Hi,
Luigi Quitadamo



-----Original Message-----
From: sebb [mailto:sebbaz@gmail.com] 
Sent: lunedì 9 luglio 2007 12.56
To: JMeter Users List
Subject: Re: Use JMeter programmatically

On 09/07/07, Luigi Quitadamo <lquitadamo@kion.it> wrote:
> Hi,
>
> we'd like to use JMeter programmatically from java applications to automate tests in
our organization.
>
> I see that there's a possibility to run jmx using ant file but this is a problem for
us because we have to manage temporary files.

If the Ant task can do it, so can you.

But I would suggest you try first using Ant which is quite good at
managing files.

> We would use Jmeter as below adding JMeter's jar to classpath:
>
>
>
> JMeter jm = new JMeter();
>
> //some initialization
>
> InputStream is = .....;
>
> InputStream output;
>
> output = jm.run(is);
>
> .....
>
>
>
>
>
> Is it possibile?
>
> Have you got any example of that?
>
>
>
> Thanks,
>
> Luigi Quitadamo
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 18.32
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 18.32
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/891 - Release Date: 08/07/2007 18.32
 

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message