there's several ways to test API level functionality. 1. use beanshell 2. write a JUnit test and use the JUnitSampler 3. write a custom sampler
depending on your test requirements, you'll need to weigh the pros/cons. Using beanshell allows you write some quick code, which is generally good for quick and dirty tests. If someone else is going to use these tests, beanshell might create a learning curve. using junit makes it so you can run it within JMeter and from ANT. if you have a QA department, they can then use the unit test to run performance and stress testing. a customer sampler has the highest overhead, but it allows you to make it exactly what you need. hope that helps peter On 12/8/05, Chetana Anand <[EMAIL PROTECTED]> wrote: > > > Hi, > > In fact I can put it in this way, I have an API which has to be tested > through jmeter. So I think I would have to create a java program or a > beanshell script which just makes calls to the API and it is being tested. > So how do I automate this process. > > For example: > > Login() is an API of an Application. If I have to test this then how > do > I write a java or if possible a Beanshell script to invoke this with > suitable ramp-up and no. of threads using JMeter(either by JMeter java > code). > > Thanks in advance, > > Regards, > Aditya > > > > -----Original Message----- > From: Peter Lin [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 08, 2005 8:15 PM > To: JMeter Users List > Subject: Re: Integrating JMeter > > one simple way is to use ANT to start jmeter. What kinds of intergration > are > you thinking of? > > peter > > > On 12/8/05, Chetana Anand <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > > > How can we integrate JMeter with other applications.... Ok let me be > > clear... I want to have a framework where in I want to integrate various > > test tools for our own projects. > > > > So to start of with I would like to know how I can get to integrate > JMeter > > with another Java Program... > > > > > > > > Thanks and Regards, > > > > Aditya > > > > > > > > > > > > ********************************************************** > > > > The information contained in, or attached to, this e-mail, contains > > confidential information and is intended solely for the use of the > > individual or entity to whom they are addressed and is subject to legal > > privilege. If you have received this e-mail in error you should notify > the > > sender immediately by reply e-mail, delete the message from your system > and > > notify your system manager. Please do not copy it for any purpose, or > > disclose its contents to any other person. The views or opinions > presented > > in this e-mail are solely those of the author and do not necessarily > > represent those of the company. The recipient should check this e-mail > and > > any attachments for the presence of viruses. The company accepts no > > liability for any damage caused, directly or indirectly, by any virus > > transmitted in this email > > > > ************************************************************ > > > > > > ********************************************************** > > The information contained in, or attached to, this e-mail, contains > confidential information and is intended solely for the use of the > individual or entity to whom they are addressed and is subject to legal > privilege. If you have received this e-mail in error you should notify the > sender immediately by reply e-mail, delete the message from your system and > notify your system manager. Please do not copy it for any purpose, or > disclose its contents to any other person. The views or opinions presented > in this e-mail are solely those of the author and do not necessarily > represent those of the company. The recipient should check this e-mail and > any attachments for the presence of viruses. The company accepts no > liability for any damage caused, directly or indirectly, by any virus > transmitted in this email > > ************************************************************ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >

