jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From UBIK LOAD PACK Support <supp...@ubikloadpack.com>
Subject Re: send dynamic value to a XML attribute in Jmeter
Date Wed, 18 Dec 2013 22:06:26 GMT
Hello,
Why not just use Http Request,
put xml in Body Data
and it should work.

Easier and better perfs




-- 

Regards
Ubik Load Pack <http://ubikloadpack.com> Team
Follow us on Twitter <http://twitter.com/ubikloadpack>


Cordialement
L'équipe Ubik Load Pack <http://ubikloadpack.com>
Suivez-nous sur Twitter <http://twitter.com/ubikloadpack>

On Wed, Dec 18, 2013 at 10:59 PM, MiguelFonseca <luismgfonseca@gmail.com>wrote:

> Seems to me that you are doing it correctly.
> Try to use a debug sampler to check the value of the variable.
>
> I have used it as you mention and works fine
>
>
> On 18 December 2013 19:17, Nandi, Prabir <Prabir.Nandi@staples.com> wrote:
>
>>  Hi All,
>>
>>
>>
>> Sending the images as an attachment file.
>>
>>
>>
>> Regards,
>>
>> Prabir
>>
>>
>>
>> *Prabir Nandi*
>>
>> Process and Metrics Engineering IT Consultant
>>
>> NAD Shared Order Management Systems
>>
>>
>>
>> (: +1 508 253 0164 | Extn: 30164 | *: Prabir.Nandi@Staples.com
>>
>>
>>
>> www.staples.com
>>
>> 500 Staples Drive, Framingham, MA 01702
>>
>>
>>
>> *From:* Nandi, Prabir
>> *Sent:* Wednesday, December 18, 2013 2:08 PM
>> *To:* 'user@jmeter.apache.org'
>> *Subject:* send dynamic value to a XML attribute in Jmeter
>>
>>
>>
>> Hi All,
>>
>>
>>
>> I am very new to Jmeter am facing an issues, I have a requirement as
>> mentioned below. I need your inputs/suggestions.
>>
>>
>>
>> I need to send a XML input in an HTTP Request Sampler
>>
>> I need to pass the xml content to a http Parameter.
>>
>> In XML file there is a placeholder of order_no and I need to pass this
>> values dynamically whether I have to generate it dynamically or user will
>> put a value somewhere
>>
>>
>>
>> What I did:
>>
>>
>>
>> I have created a Http Request sampler
>>
>> Passed the XML to a parameter using FileToString() function.
>>
>> Added a placeholder(${ORDER_NO} in XML file and passing the value from
>> another parameter in request called ORDER_NO, but its not replacing the
>> ORDER_NO in xml file before hitting the http request.
>>
>>
>>
>>
>>
>>
>>
>> Sample XML file :
>>
>>
>>
>>
>>
>>
>>
>> So how I can I achieve this solution? Any help is greatly appreciated.
>>
>>
>>
>> Regards,
>>
>> Prabir Nandi
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>
>

<http://twitter.com/ubikloadpack>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message