You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Joe Smithian <jo...@gmail.com> on 2008/03/26 20:27:39 UTC
How to load data from a file to SOAP Requests in JMeter
Hi all,
I have a JMeter test plan for SOAP operations, my data is hard-coded in the
SOAP request in the Sampler. This works fine, but I need a way to load data
from files and put them in the SOAP Sampler request. Any idea how we can do
it?
I'd appreciate your help.
Joe
Re: How to load data from a file to SOAP Requests in JMeter
Posted by Joe Smithian <jo...@gmail.com>.
Thank you Sebb. It worked! That was exactly what I needed. It was a great
help, appreciate it.
Joe
On Tue, Apr 1, 2008 at 8:40 AM, sebb <se...@gmail.com> wrote:
> Or in this case StringFromFile might be simpler, just put
>
> <data>${__StringFromFile(filename)}</data>
>
> In either case, each line is a data item.
>
> On 01/04/2008, Steve Kapinos <St...@tandberg.com> wrote:
> > Use a variable in the soap data part of the element surrounded by your
> > other relevant information. Load that variable up from the file.. Say
> > using CSV data set elements.
> >
> >
> > -----Original Message-----
> > From: Joe Smithian [mailto:joe.smithian@gmail.com]
> > Sent: Tuesday, April 01, 2008 4:58 AM
> > To: JMeter Users List
> > Subject: Re: How to load data from a file to SOAP Requests in JMeter
> >
> > Yes, I can load the whole SOAP request from a file but what I want is
> to
> > load only one 'Element' of the SOAP request, which is my 'data' to be
> > included in the SOAP Request, from a file. I can't load the whole SOAP
> > request from file because of the dependency among various SOAP request
> > and response messages in my test plan. In the following example, I want
> > to load only ${myData} from a file:
> > <soapenv>
> > <body>
> > <data>${myData} </data>
> > </body>
> > </soapenv>
> >
> > I hope that makes it clear what I want.
> >
> > Joe
> >
> >
> > On Sat, Mar 29, 2008 at 7:04 AM, sebb <se...@gmail.com> wrote:
> >
> > > Both SOAP samplers already allow data to be read from files.
> > >
> > > Why can't you use that?
> > >
> > > On 26/03/2008, Joe Smithian <jo...@gmail.com> wrote:
> > > > Hi all,
> > > >
> > > > I have a JMeter test plan for SOAP operations, my data is
> > > > hard-coded in
> > > the
> > > > SOAP request in the Sampler. This works fine, but I need a way to
> > > > load
> > > data
> > > > from files and put them in the SOAP Sampler request. Any idea how
> > > > we
> > > can do
> > > > it?
> > > >
> > > > I'd appreciate your help.
> > > >
> > > >
> > > > Joe
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > 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
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: How to load data from a file to SOAP Requests in JMeter
Posted by sebb <se...@gmail.com>.
Or in this case StringFromFile might be simpler, just put
<data>${__StringFromFile(filename)}</data>
In either case, each line is a data item.
On 01/04/2008, Steve Kapinos <St...@tandberg.com> wrote:
> Use a variable in the soap data part of the element surrounded by your
> other relevant information. Load that variable up from the file.. Say
> using CSV data set elements.
>
>
> -----Original Message-----
> From: Joe Smithian [mailto:joe.smithian@gmail.com]
> Sent: Tuesday, April 01, 2008 4:58 AM
> To: JMeter Users List
> Subject: Re: How to load data from a file to SOAP Requests in JMeter
>
> Yes, I can load the whole SOAP request from a file but what I want is to
> load only one 'Element' of the SOAP request, which is my 'data' to be
> included in the SOAP Request, from a file. I can't load the whole SOAP
> request from file because of the dependency among various SOAP request
> and response messages in my test plan. In the following example, I want
> to load only ${myData} from a file:
> <soapenv>
> <body>
> <data>${myData} </data>
> </body>
> </soapenv>
>
> I hope that makes it clear what I want.
>
> Joe
>
>
> On Sat, Mar 29, 2008 at 7:04 AM, sebb <se...@gmail.com> wrote:
>
> > Both SOAP samplers already allow data to be read from files.
> >
> > Why can't you use that?
> >
> > On 26/03/2008, Joe Smithian <jo...@gmail.com> wrote:
> > > Hi all,
> > >
> > > I have a JMeter test plan for SOAP operations, my data is
> > > hard-coded in
> > the
> > > SOAP request in the Sampler. This works fine, but I need a way to
> > > load
> > data
> > > from files and put them in the SOAP Sampler request. Any idea how
> > > we
> > can do
> > > it?
> > >
> > > I'd appreciate your help.
> > >
> > >
> > > Joe
> > >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
RE: How to load data from a file to SOAP Requests in JMeter
Posted by Steve Kapinos <St...@tandberg.com>.
Use a variable in the soap data part of the element surrounded by your
other relevant information. Load that variable up from the file.. Say
using CSV data set elements.
-----Original Message-----
From: Joe Smithian [mailto:joe.smithian@gmail.com]
Sent: Tuesday, April 01, 2008 4:58 AM
To: JMeter Users List
Subject: Re: How to load data from a file to SOAP Requests in JMeter
Yes, I can load the whole SOAP request from a file but what I want is to
load only one 'Element' of the SOAP request, which is my 'data' to be
included in the SOAP Request, from a file. I can't load the whole SOAP
request from file because of the dependency among various SOAP request
and response messages in my test plan. In the following example, I want
to load only ${myData} from a file:
<soapenv>
<body>
<data>${myData} </data>
</body>
</soapenv>
I hope that makes it clear what I want.
Joe
On Sat, Mar 29, 2008 at 7:04 AM, sebb <se...@gmail.com> wrote:
> Both SOAP samplers already allow data to be read from files.
>
> Why can't you use that?
>
> On 26/03/2008, Joe Smithian <jo...@gmail.com> wrote:
> > Hi all,
> >
> > I have a JMeter test plan for SOAP operations, my data is
> > hard-coded in
> the
> > SOAP request in the Sampler. This works fine, but I need a way to
> > load
> data
> > from files and put them in the SOAP Sampler request. Any idea how
> > we
> can do
> > it?
> >
> > I'd appreciate your help.
> >
> >
> > Joe
> >
>
> ---------------------------------------------------------------------
> 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: How to load data from a file to SOAP Requests in JMeter
Posted by Joe Smithian <jo...@gmail.com>.
Yes, I can load the whole SOAP request from a file but what I want is to
load only one 'Element' of the SOAP request, which is my 'data' to be
included in the SOAP Request, from a file. I can't load the whole SOAP
request from file because of the dependency among various SOAP request and
response messages in my test plan. In the following example, I want to load
only ${myData} from a file:
<soapenv>
<body>
<data>${myData} </data>
</body>
</soapenv>
I hope that makes it clear what I want.
Joe
On Sat, Mar 29, 2008 at 7:04 AM, sebb <se...@gmail.com> wrote:
> Both SOAP samplers already allow data to be read from files.
>
> Why can't you use that?
>
> On 26/03/2008, Joe Smithian <jo...@gmail.com> wrote:
> > Hi all,
> >
> > I have a JMeter test plan for SOAP operations, my data is hard-coded in
> the
> > SOAP request in the Sampler. This works fine, but I need a way to load
> data
> > from files and put them in the SOAP Sampler request. Any idea how we
> can do
> > it?
> >
> > I'd appreciate your help.
> >
> >
> > Joe
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
Re: How to load data from a file to SOAP Requests in JMeter
Posted by sebb <se...@gmail.com>.
Both SOAP samplers already allow data to be read from files.
Why can't you use that?
On 26/03/2008, Joe Smithian <jo...@gmail.com> wrote:
> Hi all,
>
> I have a JMeter test plan for SOAP operations, my data is hard-coded in the
> SOAP request in the Sampler. This works fine, but I need a way to load data
> from files and put them in the SOAP Sampler request. Any idea how we can do
> it?
>
> I'd appreciate your help.
>
>
> Joe
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org