jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: How to load data from a file to SOAP Requests in JMeter
Date Tue, 01 Apr 2008 12:40:01 GMT
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 <Steve.Kapinos@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 <sebbaz@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 <joe.smithian@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


Mime
View raw message