我想知道如何在jp@gc
中使用jp@gc - HtmlUnit Driver Config
运行JMeter
- WebDriver Sampler。
WDS.sampleResult.sampleStart()
WDS.browser.get('http://jmeter-plugins.org')
WDS.sampleResult.sampleEnd()
获取错误消息:
Thread Name: Thread Group 1-1
Sample Start: 2017-06-29 16:49:13 IST
Load time: 7
Connect Time: 0
Latency: 0
Size in bytes: 1705
Sent bytes:0
Headers size in bytes: 0
Body size in bytes: 1705
Sample Count: 1
Error Count: 1
Data type ("text"|"bin"|""): text
Response code: 500
Response message: java.lang.IllegalArgumentException: Cannot locate declared field class org.apache.http.impl.client.HttpClientBuilder.sslcontext
Build info: version: '2.47.0', revision: '0e4837e94b1fad0db93e88cd972ed3e235a22892', time: '2015-07-29 15:58:41'
System info: host: 'zconl-37', ip: '10.235.4.31', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_40'
Driver info: driver.version: HtmlUnitDriver
回复标题: SampleResult字段: ContentType:text / plain DataEncoding:UTF-8
答案 0 :(得分:1)
查看Build info: version: '2.47.0'
行,您似乎正在使用非常过时的内容,我无法使用最新软件重现您的问题
所以我的推荐是:
使用JMeter插件管理器安装Selenium/WebDriver Support
软件包
答案 1 :(得分:0)
有一个关于错误的HttpComponent jar的Bug。
您可以检查HttpComponent位置,它应该是版本4.5.1,而不是更早:
System.out.println(HttpClientBuilder.class.getProtectionDomain().getCodeSource().getLocation());