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 <[email protected]> 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 | *: [email protected]
>
>
>
> www.staples.com
>
> 500 Staples Drive, Framingham, MA 01702
>
>
>
> *From:* Nandi, Prabir
> *Sent:* Wednesday, December 18, 2013 2:08 PM
> *To:* '[email protected]'
> *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: [email protected]
> For additional commands, e-mail: [email protected]
>

Reply via email to