jmeter中判断数据库是否存在相应的记录

jmeter判断数据库中是否存在相应记录可以使用count 配合case,然后再加个断言,后面用 变量JMeterThread.last_sample_ok来判断是否存在相应记录

select case count(1) when 1 then 'true' else 'false' end FROM gringotts.t_user where id = 18239391

猜你喜欢

转载自www.cnblogs.com/xiaodebing/p/10039549.html