You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Toufik HAMDANI <to...@gmail.com> on 2010/03/31 10:56:38 UTC
JMeter in console mode
Hello ! i'm a newbie in JMeter and I've created a test plan that uses
external jars for accessing JMS queues. the creator of this jar added an ORB
variable to JMeter.bat to specify the class to be used for the connection
Factory (i think) and initialized it like this :
set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
then added it to the args of the jmeter.jar
when I run my test plan using JMeter GUI, everything seem to work (green
arrows in the result tree).
Now i wanted to automate the tests using Ant task. the problem is that when
I ran the same test plan that worked well with the GUI, I got this error :
[jmeter] javax.jms.JMSException: Failed to initialize the ORB
anyone can help me please ?
Thanks.
Re: JMeter in console mode
Posted by sebb <se...@gmail.com>.
You cannot define JVM args in jmeter.properties.
For info on configuring JMeter, please read:
http://jakarta.apache.org/jmeter/usermanual/get-started.html#configuring_jmeter
On 31/03/2010, Toufik HAMDANI <to...@gmail.com> wrote:
> Thank you for this second solution. Can you give me an example on how to
> define Jvm args in jmeter.properties because I have never used it before.
>
> regards
>
>
> On Wed, Mar 31, 2010 at 12:35 PM, sebb <se...@gmail.com> wrote:
>
> > You could also have put the definition in the file
> >
> > system.properties
> >
> > This is a better solution as it works for all JMeter invocations - no
> > need to modify any scripts.
> >
> > On 31/03/2010, Toufik HAMDANI <to...@gmail.com> wrote:
> > > sorry for my previous mail. the tip of Tushar Joshi worked.
> > > I put the line into the jmeter task. The problem is solved now.
> > >
> > > Many thanks for your help.
> > >
> > > regards
> > >
> > > On Wed, Mar 31, 2010 at 11:51 AM, Toufik HAMDANI
> > >
> > > <to...@gmail.com>wrote:
> > >
> > > > Thank you for your reactivity. But I don't know where to put this line
> > in
> > > > my ant script. this is how I call Jmeter inside my ant script :
> > > > <taskdef name="jmeter"
> > > >
> > classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> > > >
> > > > <jmeter
> > > > jmeterhome="${dossierjmeter}"
> > > > resultlog="${repracine}\tmp\JMeterResults.jtl">
> > > > <testplans dir="${repracine}\projects\${env}\jmeter"
> > > > includes="*.jmx"/>
> > > > </jmeter>
> > > >
> > > > I tried to pu it inside but it didn't work.
> > > >
> > > > Thanks
> > > >
> > > >
> > > > On Wed, Mar 31, 2010 at 11:12 AM, Tushar Joshi <
> > tusharvjoshi@gmail.com>wrote:
> > > >
> > > >> Please try using jvmarg element in the Ant build file as follows:
> > > >>
> > > >> <jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
> > > >>
> > > >> You will have to ensure that the required classes are also in the
> > path,
> > > >> and
> > > >> that may mean adding them to JMeter lib folder as documented on
> > Jmeter
> > > >> site
> > > >>
> > > >> with regards
> > > >> Tushar
> > > >>
> > > >> ==============================================
> > > >> Tushar Joshi, Nagpur
> > > >> MCSD_NET C#, SCJP, RHCE, ZCE, PMP
> > > >> Software Architect @ Infospectrum India Private Limited, JUGNagpur
> > Leader
> > > >> http://www.info-spectrum.com
> > > >> http://www.tusharvjoshi.com
> > > >> http://www.jugnagpur.com
> > > >>
> > > >>
> > > >> On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <
> > toufik.hamdani@gmail.com
> > > >> >wrote:
> > > >>
> > > >> > Hello ! i'm a newbie in JMeter and I've created a test plan that
> > uses
> > > >> > external jars for accessing JMS queues. the creator of this jar
> > added an
> > > >> > ORB
> > > >> > variable to JMeter.bat to specify the class to be used for the
> > > >> connection
> > > >> > Factory (i think) and initialized it like this :
> > > >> > set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
> > > >> > then added it to the args of the jmeter.jar
> > > >> > when I run my test plan using JMeter GUI, everything seem to work
> > (green
> > > >> > arrows in the result tree).
> > > >> >
> > > >> > Now i wanted to automate the tests using Ant task. the problem is
> > that
> > > >> when
> > > >> > I ran the same test plan that worked well with the GUI, I got this
> > error
> > > >> :
> > > >> > [jmeter] javax.jms.JMSException: Failed to initialize the ORB
> > > >> >
> > > >> > anyone can help me please ?
> > > >> >
> > > >> > Thanks.
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: JMeter in console mode
Posted by Toufik HAMDANI <to...@gmail.com>.
Thank you for this second solution. Can you give me an example on how to
define Jvm args in jmeter.properties because I have never used it before.
regards
On Wed, Mar 31, 2010 at 12:35 PM, sebb <se...@gmail.com> wrote:
> You could also have put the definition in the file
>
> system.properties
>
> This is a better solution as it works for all JMeter invocations - no
> need to modify any scripts.
>
> On 31/03/2010, Toufik HAMDANI <to...@gmail.com> wrote:
> > sorry for my previous mail. the tip of Tushar Joshi worked.
> > I put the line into the jmeter task. The problem is solved now.
> >
> > Many thanks for your help.
> >
> > regards
> >
> > On Wed, Mar 31, 2010 at 11:51 AM, Toufik HAMDANI
> >
> > <to...@gmail.com>wrote:
> >
> > > Thank you for your reactivity. But I don't know where to put this line
> in
> > > my ant script. this is how I call Jmeter inside my ant script :
> > > <taskdef name="jmeter"
> > >
> classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> > >
> > > <jmeter
> > > jmeterhome="${dossierjmeter}"
> > > resultlog="${repracine}\tmp\JMeterResults.jtl">
> > > <testplans dir="${repracine}\projects\${env}\jmeter"
> > > includes="*.jmx"/>
> > > </jmeter>
> > >
> > > I tried to pu it inside but it didn't work.
> > >
> > > Thanks
> > >
> > >
> > > On Wed, Mar 31, 2010 at 11:12 AM, Tushar Joshi <
> tusharvjoshi@gmail.com>wrote:
> > >
> > >> Please try using jvmarg element in the Ant build file as follows:
> > >>
> > >> <jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
> > >>
> > >> You will have to ensure that the required classes are also in the
> path,
> > >> and
> > >> that may mean adding them to JMeter lib folder as documented on
> Jmeter
> > >> site
> > >>
> > >> with regards
> > >> Tushar
> > >>
> > >> ==============================================
> > >> Tushar Joshi, Nagpur
> > >> MCSD_NET C#, SCJP, RHCE, ZCE, PMP
> > >> Software Architect @ Infospectrum India Private Limited, JUGNagpur
> Leader
> > >> http://www.info-spectrum.com
> > >> http://www.tusharvjoshi.com
> > >> http://www.jugnagpur.com
> > >>
> > >>
> > >> On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <
> toufik.hamdani@gmail.com
> > >> >wrote:
> > >>
> > >> > Hello ! i'm a newbie in JMeter and I've created a test plan that
> uses
> > >> > external jars for accessing JMS queues. the creator of this jar
> added an
> > >> > ORB
> > >> > variable to JMeter.bat to specify the class to be used for the
> > >> connection
> > >> > Factory (i think) and initialized it like this :
> > >> > set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
> > >> > then added it to the args of the jmeter.jar
> > >> > when I run my test plan using JMeter GUI, everything seem to work
> (green
> > >> > arrows in the result tree).
> > >> >
> > >> > Now i wanted to automate the tests using Ant task. the problem is
> that
> > >> when
> > >> > I ran the same test plan that worked well with the GUI, I got this
> error
> > >> :
> > >> > [jmeter] javax.jms.JMSException: Failed to initialize the ORB
> > >> >
> > >> > anyone can help me please ?
> > >> >
> > >> > Thanks.
> > >> >
> > >>
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: JMeter in console mode
Posted by sebb <se...@gmail.com>.
You could also have put the definition in the file
system.properties
This is a better solution as it works for all JMeter invocations - no
need to modify any scripts.
On 31/03/2010, Toufik HAMDANI <to...@gmail.com> wrote:
> sorry for my previous mail. the tip of Tushar Joshi worked.
> I put the line into the jmeter task. The problem is solved now.
>
> Many thanks for your help.
>
> regards
>
> On Wed, Mar 31, 2010 at 11:51 AM, Toufik HAMDANI
>
> <to...@gmail.com>wrote:
>
> > Thank you for your reactivity. But I don't know where to put this line in
> > my ant script. this is how I call Jmeter inside my ant script :
> > <taskdef name="jmeter"
> > classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
> >
> > <jmeter
> > jmeterhome="${dossierjmeter}"
> > resultlog="${repracine}\tmp\JMeterResults.jtl">
> > <testplans dir="${repracine}\projects\${env}\jmeter"
> > includes="*.jmx"/>
> > </jmeter>
> >
> > I tried to pu it inside but it didn't work.
> >
> > Thanks
> >
> >
> > On Wed, Mar 31, 2010 at 11:12 AM, Tushar Joshi <tu...@gmail.com>wrote:
> >
> >> Please try using jvmarg element in the Ant build file as follows:
> >>
> >> <jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
> >>
> >> You will have to ensure that the required classes are also in the path,
> >> and
> >> that may mean adding them to JMeter lib folder as documented on Jmeter
> >> site
> >>
> >> with regards
> >> Tushar
> >>
> >> ==============================================
> >> Tushar Joshi, Nagpur
> >> MCSD_NET C#, SCJP, RHCE, ZCE, PMP
> >> Software Architect @ Infospectrum India Private Limited, JUGNagpur Leader
> >> http://www.info-spectrum.com
> >> http://www.tusharvjoshi.com
> >> http://www.jugnagpur.com
> >>
> >>
> >> On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <toufik.hamdani@gmail.com
> >> >wrote:
> >>
> >> > Hello ! i'm a newbie in JMeter and I've created a test plan that uses
> >> > external jars for accessing JMS queues. the creator of this jar added an
> >> > ORB
> >> > variable to JMeter.bat to specify the class to be used for the
> >> connection
> >> > Factory (i think) and initialized it like this :
> >> > set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
> >> > then added it to the args of the jmeter.jar
> >> > when I run my test plan using JMeter GUI, everything seem to work (green
> >> > arrows in the result tree).
> >> >
> >> > Now i wanted to automate the tests using Ant task. the problem is that
> >> when
> >> > I ran the same test plan that worked well with the GUI, I got this error
> >> :
> >> > [jmeter] javax.jms.JMSException: Failed to initialize the ORB
> >> >
> >> > anyone can help me please ?
> >> >
> >> > Thanks.
> >> >
> >>
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: JMeter in console mode
Posted by Toufik HAMDANI <to...@gmail.com>.
sorry for my previous mail. the tip of Tushar Joshi worked.
I put the line into the jmeter task. The problem is solved now.
Many thanks for your help.
regards
On Wed, Mar 31, 2010 at 11:51 AM, Toufik HAMDANI
<to...@gmail.com>wrote:
> Thank you for your reactivity. But I don't know where to put this line in
> my ant script. this is how I call Jmeter inside my ant script :
> <taskdef name="jmeter"
> classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
>
> <jmeter
> jmeterhome="${dossierjmeter}"
> resultlog="${repracine}\tmp\JMeterResults.jtl">
> <testplans dir="${repracine}\projects\${env}\jmeter"
> includes="*.jmx"/>
> </jmeter>
>
> I tried to pu it inside but it didn't work.
>
> Thanks
>
>
> On Wed, Mar 31, 2010 at 11:12 AM, Tushar Joshi <tu...@gmail.com>wrote:
>
>> Please try using jvmarg element in the Ant build file as follows:
>>
>> <jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
>>
>> You will have to ensure that the required classes are also in the path,
>> and
>> that may mean adding them to JMeter lib folder as documented on Jmeter
>> site
>>
>> with regards
>> Tushar
>>
>> ==============================================
>> Tushar Joshi, Nagpur
>> MCSD_NET C#, SCJP, RHCE, ZCE, PMP
>> Software Architect @ Infospectrum India Private Limited, JUGNagpur Leader
>> http://www.info-spectrum.com
>> http://www.tusharvjoshi.com
>> http://www.jugnagpur.com
>>
>>
>> On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <toufik.hamdani@gmail.com
>> >wrote:
>>
>> > Hello ! i'm a newbie in JMeter and I've created a test plan that uses
>> > external jars for accessing JMS queues. the creator of this jar added an
>> > ORB
>> > variable to JMeter.bat to specify the class to be used for the
>> connection
>> > Factory (i think) and initialized it like this :
>> > set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
>> > then added it to the args of the jmeter.jar
>> > when I run my test plan using JMeter GUI, everything seem to work (green
>> > arrows in the result tree).
>> >
>> > Now i wanted to automate the tests using Ant task. the problem is that
>> when
>> > I ran the same test plan that worked well with the GUI, I got this error
>> :
>> > [jmeter] javax.jms.JMSException: Failed to initialize the ORB
>> >
>> > anyone can help me please ?
>> >
>> > Thanks.
>> >
>>
>
>
Re: JMeter in console mode
Posted by Toufik HAMDANI <to...@gmail.com>.
Thank you for your reactivity. But I don't know where to put this line in my
ant script. this is how I call Jmeter inside my ant script :
<taskdef name="jmeter"
classname="org.programmerplanet.ant.taskdefs.jmeter.JMeterTask"/>
<jmeter
jmeterhome="${dossierjmeter}"
resultlog="${repracine}\tmp\JMeterResults.jtl">
<testplans dir="${repracine}\projects\${env}\jmeter"
includes="*.jmx"/>
</jmeter>
I tried to pu it inside but it didn't work.
Thanks
On Wed, Mar 31, 2010 at 11:12 AM, Tushar Joshi <tu...@gmail.com>wrote:
> Please try using jvmarg element in the Ant build file as follows:
>
> <jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
>
> You will have to ensure that the required classes are also in the path, and
> that may mean adding them to JMeter lib folder as documented on Jmeter site
>
> with regards
> Tushar
>
> ==============================================
> Tushar Joshi, Nagpur
> MCSD_NET C#, SCJP, RHCE, ZCE, PMP
> Software Architect @ Infospectrum India Private Limited, JUGNagpur Leader
> http://www.info-spectrum.com
> http://www.tusharvjoshi.com
> http://www.jugnagpur.com
>
>
> On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <toufik.hamdani@gmail.com
> >wrote:
>
> > Hello ! i'm a newbie in JMeter and I've created a test plan that uses
> > external jars for accessing JMS queues. the creator of this jar added an
> > ORB
> > variable to JMeter.bat to specify the class to be used for the connection
> > Factory (i think) and initialized it like this :
> > set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
> > then added it to the args of the jmeter.jar
> > when I run my test plan using JMeter GUI, everything seem to work (green
> > arrows in the result tree).
> >
> > Now i wanted to automate the tests using Ant task. the problem is that
> when
> > I ran the same test plan that worked well with the GUI, I got this error
> :
> > [jmeter] javax.jms.JMSException: Failed to initialize the ORB
> >
> > anyone can help me please ?
> >
> > Thanks.
> >
>
Re: JMeter in console mode
Posted by Tushar Joshi <tu...@gmail.com>.
Please try using jvmarg element in the Ant build file as follows:
<jvmarg value="-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB"/>
You will have to ensure that the required classes are also in the path, and
that may mean adding them to JMeter lib folder as documented on Jmeter site
with regards
Tushar
==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE, ZCE, PMP
Software Architect @ Infospectrum India Private Limited, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://www.jugnagpur.com
On Wed, Mar 31, 2010 at 2:26 PM, Toufik HAMDANI <to...@gmail.com>wrote:
> Hello ! i'm a newbie in JMeter and I've created a test plan that uses
> external jars for accessing JMS queues. the creator of this jar added an
> ORB
> variable to JMeter.bat to specify the class to be used for the connection
> Factory (i think) and initialized it like this :
> set ORB=-Dcom.ibm.CORBA.ORBInit=com.ibm.ws.sib.client.ORB
> then added it to the args of the jmeter.jar
> when I run my test plan using JMeter GUI, everything seem to work (green
> arrows in the result tree).
>
> Now i wanted to automate the tests using Ant task. the problem is that when
> I ran the same test plan that worked well with the GUI, I got this error :
> [jmeter] javax.jms.JMSException: Failed to initialize the ORB
>
> anyone can help me please ?
>
> Thanks.
>