I am having trouble getting the result set object from JDBC Sampler in JMeter. The JMeter documentation says this exactly:
Result Variable Name
If specifie
Beanshell is not Java, you need to access it a little bit differently.
Those "diamond" brackets are not very supported by Beanshell. Please amend your code as follows:
ArrayList result = vars.getObject("resultList");
for (HashMap table : result) {
for (Object column : table.keySet()) {
log.info(column + "=" + table.get(column));
}
}
The code above assumes that you have set resultList
as a "Result Variable Name" in your JDBC Request Sampler.
That should print query result into jmeter.log file.
See How to use BeanShell guide for more details and kind of Beanshell cookbook.