[英]How to load excel or csv file using java in Jmeter within Webdriver Sampler
我想执行负载测试,因此需要访问存储在 excel 或 csv 文件中的至少 30 个用户名和密码,那么如何在 Jmeter 中使用 webdriver sampler 执行此操作。
In the WebDriver Sampler you have WDS.vars shorthand for JMeterVariables class instance so if you defined username
and password
variables in the CSV Data Set Config you should be able to use them as WDS.vars.get('username')
and WDS.vars.get(password')
in the WebDriver Sampler correspondingly在webdriver的采样你有WDS.vars速记JMeterVariables类的实例,所以如果你定义
username
和password
的CSV数据集配置变量,你应该能够使用它们作为WDS.vars.get('username')
和WDS.vars.get(password')
在 WebDriver Sampler 中相应
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.