I have an XML request with me, which needs to be sent over an IBM MQ channel. The client has not provided us the MQ connection details and has asked us to provide parametrised XML which they will manually copy and post it to MQ till the time they don't get the connection details
The issue is the XML's are big and they have to manually change each attribute and then Post it to MQ and thus they are asking for this process to be automated.
The idea is they will provide the data sheet and I would parameterize the xml, which I have already done.
I am also getting the different XML's with different data set in the HTTP request under View results tree.
The thing is I dont want to manually copy those request XML's and save it to notepad.
Is there a way using which I can directly save those Request XML's to a file?
Capturing Response is easy but how to capture the request itself!! Wejust need to capture the request!
PS: I have tried multiple option right from Bean shell to some Plugins as well as making changes to the User properties file of Jmeter but nothing worked.
It dosent matter if the requests are failing I just need to capture that request and save each of them seperately for multiple threads.
I have just executed 1 thread in the sample picture attached.Thanks for help in advance.
The easiest is going for the Flexible File Writer , the relevant configuration would be:
---------REQUEST----------------------\r\n|requestData|\r\n
As the result you will get the file which looks like:
---------REQUEST----------------------
POST http://example.com/
POST data:
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>jane</to>
<from>john</from>
<heading>hi</heading>
<body>how are you</body>
</note>
[no cookies]
---------REQUEST----------------------
POST http://example.com/
POST data:
<?xml version="1.0" encoding="UTF-8"?>
<note>
<to>john</to>
<from>jane</from>
<heading>Re:hi</heading>
<body> I'm perfect!</body>
</note>
[no cookies]
You can install Flexible File Writer using JMeter Plugins Manager
You probably missing configuration, Either in Test Plan level, check the Functional checkbox
Or Configure button in Listener and check relevant Request checkboxes
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.