java - JMeter distributed testing from Java code - csv dependent data in slaves
问题描述
I am running JMETER DISTRIBUTED test from my JAVA CODE. So far , it is working fine for the JMX files that doesn't have any dependent CSV test data. Now , I'd like to run a test with csv dependent data but it seems the csv file needs to be placed in the SLAVE machines as well. Is there a way we could execute the test without placing the dependent CSV file in SLAVE machines. I am trying to automate the tests through java code , so it would not be feasible for me to manually place the csv files in SLAVE machines. Please let me know your suggestions on this.
解决方案
从当前的JMeter 版本 5.4.1开始,不支持将依赖文件传输到从机,只有 .jmx 脚本通过网络从主机传递。
您可以考虑使用HTTP Simple Table Server或Redis Dataset之类的插件,或者将测试数据放入数据库并使用JDBC 测试元素从集中式远程存储中获取数据,而不是依赖本地 CSV 文件。
推荐阅读
- python - Django 休息框架,根据当前日期/时间返回已预订或免费的项目状态
- swiftui - 几何阅读器和 Firebase 请求
- java - spring cloud stream kafka binder无法以功能样式消费消息
- sql - 在 Impala SQL 中获取时间戳行的差异,每次都会更新差异条件
- django - Djongo 不断关闭并为每个请求创建新的 MongoClient DB 连接
- javascript - 我应该如何在 Odoo 14 中重新定义这个 OWL js?
- python - 哪种方法是使用 python 获取具有近 5000 万条记录的表的最有效和防故障的方法?
- arrays - Laravel 6 Collection Transform 数组中的索引函数
- python - 如何在 Python 中使用正则表达式(re.finditer)在字符串中的任何位置找到所有匹配项?
- powershell - 无法使用 PowerShell 将文件从文件夹上传到报表服务器文件夹