Reputation: 7795
I have a XML request as follows:
<Request>
<Header><Log><Level>None</Level></Log></Header>
<Body>
<Action>
<GetService>
<Code>ABC</Code>
<CodeValue>XYZ</CodeValue>
</GetService>
</Action>
</Body> </Request>
I would like to have a file which has data for two columns - Code and CodeValue. For example,
Code|CodeValue
--------------
ABC|XYZ
DEF|MNO
How should I parameterize my XML request body so that Jmeter can dynamically use data from the file as the XML values? How should I structure my file?
Thanks in advance!
Upvotes: 0
Views: 8874
Reputation: 15400
You can use csv file in JMeter to parameterize the test data.
CSV Data Set Config
CSV Data Set Config
in your test plan. Update the file path.<Request>
<Header><Log><Level>None</Level></Log></Header>
<Body>
<Action>
<GetService>
<Code>${Code}</Code>
<CodeValue>${CodeValue}</CodeValue>
</GetService>
</Action>
</Body> </Request>
Upvotes: 2