我需要使用Jmeter与使用Active Directory的Microsoft SQL服务器进行JDBC连接 - 集成身份验证方法来连接到DB . 以下是我在Jmeter中所做的设置 .
当我运行Jmeter时,它显示以下异常
java.sql.SQLException: Cannot create PoolableConnectionFactory (This driver is not configured for integrated authentication.
请告诉我是否需要修改任何设置以克服此问题 .
1 回答
下载Microsoft JDBC Driver
复制
mssql-jdbc-6.2.2.jre8.jar
至JMeter Classpath将
auth\x64
文件夹中的sqljdbc_auth.dll
复制到java.library.path或使用-D
命令行参数或通过system.properties文件指定java.library.path
属性以指向此文件位置重新启动JMeter以选择文件
将
integratedSecurity=true
行添加到JDBC URL更多信息:The Real Secret to Building a Database Test Plan With JMeter