You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Gabriel Oliveira <ga...@gmail.com> on 2011/03/09 14:22:30 UTC
Building a Custom TCP Sampler
Hello,
I'm new to JMeter, and wanted to create a custom TCP Sampler. What do I need
to do that ? Need to rebuild JMeter from Src ? Do you guys have any
tutorials/other-discussion-threads available ?
Thanks in advance !
--
*Gabriel P.A. de Oliveira*
*Linkedin* - www.linkedin.com/in/gabrielPAoliveira
*Skype* - gabriel.pa.oliveira
*Computer Science - UFRGS - Brazil
*
Re: Building a Custom TCP Sampler
Posted by sebb <se...@gmail.com>.
http://jakarta.apache.org/jmeter/usermanual/get-started.html#classpath
2011/3/9 Gabriel Oliveira <ga...@gmail.com>:
> Hi Andrey,
>
> JMeter will find my class in what path ? JAVAPATH ?
>
> Reading the instalations note of URL that you sent me, i realized that
> Jmeter has hiw own path, the JMETER_INSTALL_DIR. How to configure it ? In OS
> or in JMeter configure files ? Tryed to find that variable in
> jmeter.properties, system.properties and user.properties, with no sucess =/
>
> Besides, in http://code.google.com/p/jmeter-plugins/wiki/DCERPCSampler, the
> Marshaling options are exclusive of that Sampler ?
>
> Many thank !!
>
> --
>
> *Gabriel P.A. de Oliveira*
> *Linkedin* - www.linkedin.com/in/gabrielPAoliveira
> *Skype* - gabriel.pa.oliveira
> *Computer Science - UFRGS - Brazil
> *
> 2011/3/9 Andrey Pohilko <ap...@apc.kg>
>
>> Hi,
>>
>> In most cases all you need to do is implement TCP Client class, then
>> specify
>> this class in TCP sampler GUI.
>>
>> Example on extending TCP Client: http://code.google.com/p/jmeter-
>> plugins/source/browse/trunk/src/kg/apc/jmeter/dcerpc/DCERPCSampler.java
>>
>> Using extended class: http://code.google.com/p/jmeter-
>> plugins/wiki/DCERPCSampler
>>
>> Good luck!
>>
>> В сообщении от 9 марта 2011 16:22:30 автор Gabriel Oliveira написал:
>> > Hello,
>> >
>> > I'm new to JMeter, and wanted to create a custom TCP Sampler. What do I
>> > need to do that ? Need to rebuild JMeter from Src ? Do you guys have any
>> > tutorials/other-discussion-threads available ?
>> >
>> > Thanks in advance !
>>
>> ---------------------------------------------------------------------
>> 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: Building a Custom TCP Sampler
Posted by Andrey Pohilko <ap...@apc.kg>.
My preffered way is to create JAR file containing class, put it into lib/ext
directory of jmeter installation and specify full class name with package in
TCP Sampler.
Yes, marshaling options in DCERPCSampler is totally custom.
В сообщении от 9 марта 2011 18:11:45 автор Gabriel Oliveira написал:
> Hi Andrey,
>
> JMeter will find my class in what path ? JAVAPATH ?
>
> Reading the instalations note of URL that you sent me, i realized that
> Jmeter has hiw own path, the JMETER_INSTALL_DIR. How to configure it ? In
> OS or in JMeter configure files ? Tryed to find that variable in
> jmeter.properties, system.properties and user.properties, with no sucess =/
>
> Besides, in http://code.google.com/p/jmeter-plugins/wiki/DCERPCSampler, the
> Marshaling options are exclusive of that Sampler ?
>
> Many thank !!
>
> > Hi,
> >
> > In most cases all you need to do is implement TCP Client class, then
> > specify
> > this class in TCP sampler GUI.
> >
> > Example on extending TCP Client: http://code.google.com/p/jmeter-
> > plugins/source/browse/trunk/src/kg/apc/jmeter/dcerpc/DCERPCSampler.java
> >
> > Using extended class: http://code.google.com/p/jmeter-
> > plugins/wiki/DCERPCSampler
> >
> > Good luck!
> >
> > В сообщении от 9 марта 2011 16:22:30 автор Gabriel Oliveira написал:
> > > Hello,
> > >
> > > I'm new to JMeter, and wanted to create a custom TCP Sampler. What do I
> > > need to do that ? Need to rebuild JMeter from Src ? Do you guys have
> > > any tutorials/other-discussion-threads available ?
> > >
> > > Thanks in advance !
> >
> > ---------------------------------------------------------------------
> > 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: Building a Custom TCP Sampler
Posted by Gabriel Oliveira <ga...@gmail.com>.
Hi Andrey,
JMeter will find my class in what path ? JAVAPATH ?
Reading the instalations note of URL that you sent me, i realized that
Jmeter has hiw own path, the JMETER_INSTALL_DIR. How to configure it ? In OS
or in JMeter configure files ? Tryed to find that variable in
jmeter.properties, system.properties and user.properties, with no sucess =/
Besides, in http://code.google.com/p/jmeter-plugins/wiki/DCERPCSampler, the
Marshaling options are exclusive of that Sampler ?
Many thank !!
--
*Gabriel P.A. de Oliveira*
*Linkedin* - www.linkedin.com/in/gabrielPAoliveira
*Skype* - gabriel.pa.oliveira
*Computer Science - UFRGS - Brazil
*
2011/3/9 Andrey Pohilko <ap...@apc.kg>
> Hi,
>
> In most cases all you need to do is implement TCP Client class, then
> specify
> this class in TCP sampler GUI.
>
> Example on extending TCP Client: http://code.google.com/p/jmeter-
> plugins/source/browse/trunk/src/kg/apc/jmeter/dcerpc/DCERPCSampler.java
>
> Using extended class: http://code.google.com/p/jmeter-
> plugins/wiki/DCERPCSampler
>
> Good luck!
>
> В сообщении от 9 марта 2011 16:22:30 автор Gabriel Oliveira написал:
> > Hello,
> >
> > I'm new to JMeter, and wanted to create a custom TCP Sampler. What do I
> > need to do that ? Need to rebuild JMeter from Src ? Do you guys have any
> > tutorials/other-discussion-threads available ?
> >
> > Thanks in advance !
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: Building a Custom TCP Sampler
Posted by Andrey Pohilko <ap...@apc.kg>.
Hi,
In most cases all you need to do is implement TCP Client class, then specify
this class in TCP sampler GUI.
Example on extending TCP Client: http://code.google.com/p/jmeter-
plugins/source/browse/trunk/src/kg/apc/jmeter/dcerpc/DCERPCSampler.java
Using extended class: http://code.google.com/p/jmeter-
plugins/wiki/DCERPCSampler
Good luck!
В сообщении от 9 марта 2011 16:22:30 автор Gabriel Oliveira написал:
> Hello,
>
> I'm new to JMeter, and wanted to create a custom TCP Sampler. What do I
> need to do that ? Need to rebuild JMeter from Src ? Do you guys have any
> tutorials/other-discussion-threads available ?
>
> Thanks in advance !
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org