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

posted @ 2018-11-29 17:04  xiaodebing  阅读(578)  评论(0编辑  收藏  举报