'is there way to write data in CSV file using jmx script in Azure load testing?
I have added beanshell postprocessor in sampler to write data in CSV file and it is working fine in Jmeter. But when I uploaded same jmx script in Azure load testing and ran it, I don't see any CSV file where my response data is added.
Logs: WARN o.a.j.u.SSLManager: Keystore file not found, loading empty keystore WARN c.a.c.j.j.c.MALTListener: TEST ENDED EVENT - uploading jmeter.log file
Solution 1:[1]
When JMeter is not doing what it is supposed to be doing first thing you should check is jmeter.log file
We cannot even assume what could be wrong without seeing your code
Since JMeter 3.1 it's recommended to use JSR223 Test Elements and Groovy language for scripting
I haven't seen your code but I don't think using scripting for saving data is a good idea due to race condition (when multiple threads are concurrently writing into the same file) which will result in data corruption or loss so I would rather go for one of the below options:
- Use Sample Variables property to add the values you need to save to the .jtl results file
- Amend JMeter Result File Configuration to store what you need to store to the .jtl results file (or alternatively use a separate listener like Simple Data Writer or Flexible File Writer). See How to Save Response Data in JMeter article for more details.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Dmitri T |