代码之家  ›  专栏  ›  技术社区  ›  User-235

J计jp@gc-HtmlUnit驱动程序配置

  •  0
  • User-235  · 技术社区  · 9 年前

    jp@gc -WebDriver采样器使用 jp@gc - HtmlUnit Driver Config JMeter

    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字段: 内容类型:文本/普通

    2 回复  |  直到 9 年前
        1
  •  0
  •   Dmitri T    9 年前

    调查 Build info: version: '2.47.0'

    JMeter HtmlUnit Demo

    1. 安装 JMeter 3.2 (或任何最新版本将在 JMeter Downloads 页码)
    2. 安装 JMeter Plugins Manager
    3. Selenium/WebDriver Support

      JMeter Plugins Manager WebDriver Set Installation

        2
  •  0
  •   Ori Marko    9 年前

    Bug 关于错误的HttpComponent jar。

    您可以检查HttpComponent的位置,它应该是版本4.5.1,而不是更早的版本:

    System.out.println(HttpClientBuilder.class.getProtectionDomain().getCodeSource().getLocation());