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 extension in hml id tag and I need to pass this values dynamically whether I have to generate it dynamically.
What I did:
I have created a Http Request sampler and BSF PreProcessor
Passed the XML to a parameter using (${__FileToString(${filepath},utf-8,No)}
Using below script
Sample File
I am not seeing any errors in Jmeter. But it's failing to generate unique extension. Please help me on this.Thanks,
Swarupa
<hmlid extension="${__RandomString(8,abcdefghijklmnopqrstuvwxyz,)}" root="6.840.1.113999.3.1472"/>
${__eval(${__FileToString(${filepath},UTF-8,)})}