jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugene Kazakov <yugene1...@gmail.com>
Subject Re: SOAP Request and user variable expansion
Date Wed, 03 Oct 2012 11:16:58 GMT
Hi,
You can try something like
${__eval(${__FileToString(D:\jakarta-jmeter\JMeter\soap.xml)})}
and if file contain some variable and Jmeter has that value in the same
variable, it evaluate that
I attached example, and try to read
http://jmeter.apache.org/usermanual/functions.html#__eval


On 3 October 2012 12:06, Fabio Strozzi <fabio.strozzi@mapsengineering.com>wrote:

> Hi,
>     I'm new to Jmeter and I'm trying to stress test my webservices.
> The content of the SOAP message varies from call to call, so I reference
> some user variables within it.
> If I paste the content of the SOAP message in the Soap/XML-RPC Data box of
> the WebService(SOAP) Request sampler, then the variables get expanded as
> expected.
> On the other hand, if I configure JMeter to read the SOAP message from a
> file, JMeter is not expanding the user variables and the SOAP message that
> is sent contains the text ${variable}. I left the "Memory Cache" flag
> unchecked (but then I also tried falgging it, in vain).
>
> Is this the expected behaviour?
>
> I'm using JMeter 2.7 r1342410.
>
> Thanks in advance.
>
> Fabio
>
> --
> Fabio Strozzi - Maps spa
> tel: +39 0521 052341
> skype: sfragis
> gtalk: fabio.strozzi.maps@gmail.com
>



-- 
Thank you,
Eugene Kazakov

Mime
View raw message