Jmeter我的JDBC连接使用Property file
进行参数化,我正在读取值using ${__P(propertyname)}
,但它只读取第一个值而不读取属性文件中的第二个值。
创建了自定义属性文件
服务器1 = 10:1433;实例= SQL2014;数据库名= Repository15;域= ABC 服务器2 = 20:1433;实例= SQL2008R2;数据库名= Repository14;域= ABC
在Jmeter测试计划中,我有两个线程。在每个线程下,我添加了JDBC连接配置
First Thread Database URL = ${__P(Server1)}
Second Thread Database URL = ${__P(Server2)}
当我们运行测试时,它只读取第一个属性文件并结束连接
答案 0 :(得分:0)
您需要为每个JDBC Connection Configuration
定义different variable name,并为每个JDBC Requests
连接相关的NotificationManager notificationManager =
(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
String channelId = "some_channel_id";
CharSequence channelName = "Some Channel";
int importance = NotificationManager.IMPORTANCE_LOW;
NotificationChannel notificationChannel = new NotificationChannel(channelId, channelName, importance);
notificationManager.createNotificationChannel(notificationChannel);
。
每个名称必须不同。如果有两个使用相同名称的配置元素,则只保存一个。如果检测到重复的名称,JMeter会记录一条消息。