You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by umesh prajapati <pr...@gmail.com> on 2013/06/24 18:07:58 UTC

Can Jmeter Read input from a multiple file?

Hi ,

I am wondering if Jmeter can read inputs from multiple file. If yes how can
I achieve it.

Re: Can Jmeter Read input from a multiple file?

Posted by Rakesh Dash <da...@gmail.com>.
 On Jun 24, 2013 12:22 PM, "hame" <ha...@gmail.com> wrote:

> yes it can. You can either use __StringFromFile() function or CSV data set
> configuration. You can use either of these per file.
> By the way what is your complete requirement. I believe most of the
> requirements are well satisfied by CSV data set configuration.
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#config_elements
>
>
>
> On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <praumesh86@gmail.com
> >wrote:
>
> > Hi ,
> >
> > I am wondering if Jmeter can read inputs from multiple file. If yes how
> can
> > I achieve it.
> >
>

Re: Can Jmeter Read input from a multiple file?

Posted by hame <ha...@gmail.com>.
Look into this beanshell examples
http://stackoverflow.com/questions/6675711/how-to-use-bean-shell-sampler-in-jmeter



On Mon, Jun 24, 2013 at 9:31 AM, umesh prajapati <pr...@gmail.com>wrote:

> I have a java class which can return the content for Raw Post Body for each
> request...So, If i can call that java class using jmeter would be great
>
>
> On Mon, Jun 24, 2013 at 9:27 AM, umesh prajapati <praumesh86@gmail.com
> >wrote:
>
> > I have tried CSV configuration but CSV configuration is only possible to
> > read from a single file...Could give me an example on how to read input
> > from a different files using _StringFromFile()
> > and I have one other question. Is there anyway we can call java program
> > from jmeter.
> >
> > My requirement regarding if we can read java program from jmeter is as
> > follow
> > I am trying to do load test on secured web services. And I am using HTTP
> > Request sampler with Raw Post Body and I have to load different content
> for
> > Raw Post Body for each request. So How can I achieve this?
> > Your help will be very helpful and great.
> >
> >
> >
> > On Mon, Jun 24, 2013 at 9:21 AM, hame <ha...@gmail.com> wrote:
> >
> >> yes it can. You can either use __StringFromFile() function or CSV data
> set
> >> configuration. You can use either of these per file.
> >> By the way what is your complete requirement. I believe most of the
> >> requirements are well satisfied by CSV data set configuration.
> >>
> >>
> >>
> http://jmeter.apache.org/usermanual/component_reference.html#config_elements
> >>
> >>
> >>
> >> On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <praumesh86@gmail.com
> >> >wrote:
> >>
> >> > Hi ,
> >> >
> >> > I am wondering if Jmeter can read inputs from multiple file. If yes
> how
> >> can
> >> > I achieve it.
> >> >
> >>
> >
> >
>

Re: Can Jmeter Read input from a multiple file?

Posted by umesh prajapati <pr...@gmail.com>.
I have a java class which can return the content for Raw Post Body for each
request...So, If i can call that java class using jmeter would be great


On Mon, Jun 24, 2013 at 9:27 AM, umesh prajapati <pr...@gmail.com>wrote:

> I have tried CSV configuration but CSV configuration is only possible to
> read from a single file...Could give me an example on how to read input
> from a different files using _StringFromFile()
> and I have one other question. Is there anyway we can call java program
> from jmeter.
>
> My requirement regarding if we can read java program from jmeter is as
> follow
> I am trying to do load test on secured web services. And I am using HTTP
> Request sampler with Raw Post Body and I have to load different content for
> Raw Post Body for each request. So How can I achieve this?
> Your help will be very helpful and great.
>
>
>
> On Mon, Jun 24, 2013 at 9:21 AM, hame <ha...@gmail.com> wrote:
>
>> yes it can. You can either use __StringFromFile() function or CSV data set
>> configuration. You can use either of these per file.
>> By the way what is your complete requirement. I believe most of the
>> requirements are well satisfied by CSV data set configuration.
>>
>>
>> http://jmeter.apache.org/usermanual/component_reference.html#config_elements
>>
>>
>>
>> On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <praumesh86@gmail.com
>> >wrote:
>>
>> > Hi ,
>> >
>> > I am wondering if Jmeter can read inputs from multiple file. If yes how
>> can
>> > I achieve it.
>> >
>>
>
>

Re: Can Jmeter Read input from a multiple file?

Posted by hame <ha...@gmail.com>.
As I said earlier you can use muliple __stringfromfile() function call to
read from different file. But you can not read multiple file from single
function call.
you can use beanshell to write your own logic to read from different file.
Or you can write your own custom function as JMeter plugin.
http://code4reference.com/2013/05/gradle-build-file-for-jmeter-plugin-development-2/




On Mon, Jun 24, 2013 at 9:27 AM, umesh prajapati <pr...@gmail.com>wrote:

> I have tried CSV configuration but CSV configuration is only possible to
> read from a single file...Could give me an example on how to read input
> from a different files using _StringFromFile()
> and I have one other question. Is there anyway we can call java program
> from jmeter.
>
> My requirement regarding if we can read java program from jmeter is as
> follow
> I am trying to do load test on secured web services. And I am using HTTP
> Request sampler with Raw Post Body and I have to load different content for
> Raw Post Body for each request. So How can I achieve this?
> Your help will be very helpful and great.
>
>
>
> On Mon, Jun 24, 2013 at 9:21 AM, hame <ha...@gmail.com> wrote:
>
> > yes it can. You can either use __StringFromFile() function or CSV data
> set
> > configuration. You can use either of these per file.
> > By the way what is your complete requirement. I believe most of the
> > requirements are well satisfied by CSV data set configuration.
> >
> >
> >
> http://jmeter.apache.org/usermanual/component_reference.html#config_elements
> >
> >
> >
> > On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <praumesh86@gmail.com
> > >wrote:
> >
> > > Hi ,
> > >
> > > I am wondering if Jmeter can read inputs from multiple file. If yes how
> > can
> > > I achieve it.
> > >
> >
>

Re: Can Jmeter Read input from a multiple file?

Posted by umesh prajapati <pr...@gmail.com>.
I have tried CSV configuration but CSV configuration is only possible to
read from a single file...Could give me an example on how to read input
from a different files using _StringFromFile()
and I have one other question. Is there anyway we can call java program
from jmeter.

My requirement regarding if we can read java program from jmeter is as
follow
I am trying to do load test on secured web services. And I am using HTTP
Request sampler with Raw Post Body and I have to load different content for
Raw Post Body for each request. So How can I achieve this?
Your help will be very helpful and great.



On Mon, Jun 24, 2013 at 9:21 AM, hame <ha...@gmail.com> wrote:

> yes it can. You can either use __StringFromFile() function or CSV data set
> configuration. You can use either of these per file.
> By the way what is your complete requirement. I believe most of the
> requirements are well satisfied by CSV data set configuration.
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#config_elements
>
>
>
> On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <praumesh86@gmail.com
> >wrote:
>
> > Hi ,
> >
> > I am wondering if Jmeter can read inputs from multiple file. If yes how
> can
> > I achieve it.
> >
>

Re: Can Jmeter Read input from a multiple file?

Posted by hame <ha...@gmail.com>.
yes it can. You can either use __StringFromFile() function or CSV data set
configuration. You can use either of these per file.
By the way what is your complete requirement. I believe most of the
requirements are well satisfied by CSV data set configuration.

http://jmeter.apache.org/usermanual/component_reference.html#config_elements



On Mon, Jun 24, 2013 at 9:07 AM, umesh prajapati <pr...@gmail.com>wrote:

> Hi ,
>
> I am wondering if Jmeter can read inputs from multiple file. If yes how can
> I achieve it.
>