我正在查询。
我正在使用存储过程。我想使用带参数化的Jmeter来运行它。
{call ssp_Devx_ClientInvoiceNewTabReport (?,?,?,?,?,?,?,?)}
//Till here I am able to do it.
查询
SELECT TOP 1 d.object_id, d.database_id,OBJECT_NAME(object_id,database_id) 'proc name',
d.cached_time,d.last_execution_time, d.total_elapsed_time,
(d.total_elapsed_time/d.execution_count)/1000 AS[avg_elapsed_time],
d.last_elapsed_time/1000 as last_elapsed_time,d.execution_count,
*FROM sys.dm_exec_procedure_stats AS d Where
OBJECT_NAME(object_id,database_id)='ssp_Devx_ClientInvoiceNewTabReport'
Order by d.Last_Execution_Time DESC
// For this I added this as another JDBC request.
Select查询给了我很多记录。我想获取一些记录,如last_elapsed_time
," total_worker_time"对于每组参数化数据和我希望保存到单个文件中的整个结果。
我添加了文件侦听器和图形侦听器,但是对于每个参数化数据集,它们都会在不同的文件中提供结果,并且所有结果都由选择查询返回。
问题:
有什么方法可以确保在每个参数化数据集之后触发选择请求。
有没有办法可以将每个参数的选择查询结果存储到文件中。
任何帮助/猜测/链接都将不胜感激。
答案 0 :(得分:0)
查看Debugging JDBC Sampler Results in JMeter指南的An example of iterating the result set using Beanshell PostProcessor
节。
它应该让您了解JDBC请求结果的样子以及如何使用它们