jmeter测试jdbc、mysql

1、打入jar包,在测试计划或者直接放在lib/ext下(第三方的包)
2、添加jdbc-connection-config,variable  name  和后面的jdbc请求的参数保持一致
Database URL:在上面的基础上如果加上   ?allowMultQueries=true,query  type=callable  statement
就可以在一个脚本里编写插入、搜索、修改、删除操作() 例如:Databaseurl: jdbc:mysql://211.149.218.16/szz?allowMultQueries=true,query type=callable statement
备注:(jdbc:mysql是必要前缀) 3、添加jdbc请求(query type其他(非一个脚本实现)对应的选择对应的要求)
query_type :select请求选择select statment 其他选择 update statment mysql:com.mysql.jdbc.Driver

  

原文地址:https://www.cnblogs.com/lingxia/p/6839789.html