Selenium与JMeter的Internet Explorer中的WebDriver采样器?

时间:2017-10-09 03:42:21

标签: selenium jmeter jmeter-plugins

大家好我想用JMeters WebDriver Sampler来测试我的应用程序..我尝试在Mozilla和Google Chrome中测试它的工作原理..但是当我尝试使用Internet Explorer测试时,我收到了这个错误:

java.lang.IllegalStateException: The driver executable does not exist: C:\Users\PNB01\Desktop\JMETER\apache-jmeter-3.3\bin
    at com.google.common.base.Preconditions.checkState(Preconditions.java:197) ~[guava-19.0.0.jar:?]
    at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121) ~[selenium-remote-driver-2.52.0.jar:?]
    at org.openqa.selenium.remote.service.DriverService$Builder.usingDriverExecutable(DriverService.java:222) ~[selenium-remote-driver-2.52.0.jar:?]
    at com.googlecode.jmeter.plugins.webdriver.config.InternetExplorerDriverConfig.getThreadService(InternetExplorerDriverConfig.java:63) ~[jmeter-plugins-webdriver-1.4.0.jar:?]
    at com.googlecode.jmeter.plugins.webdriver.config.InternetExplorerDriverConfig.createBrowser(InternetExplorerDriverConfig.java:44) ~[jmeter-plugins-webdriver-1.4.0.jar:?]
    at com.googlecode.jmeter.plugins.webdriver.config.InternetExplorerDriverConfig.createBrowser(InternetExplorerDriverConfig.java:16) ~[jmeter-plugins-webdriver-1.4.0.jar:?]
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233) ~[jmeter-plugins-webdriver-1.4.0.jar:?]
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220) ~[jmeter-plugins-webdriver-1.4.0.jar:?]
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:683) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:996) ~[jorphan.jar:3.3 r1808647]
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:978) ~[jorphan.jar:3.3 r1808647]
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:652) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:640) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:251) [ApacheJMeter_core.jar:3.3 r1808647]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_111]

这是我的JMeter

enter image description here

1 个答案:

答案 0 :(得分:0)

  1. 下载Internet Explorer Driver的匹配版本(在您的情况下为2.52)并将其解压缩到您的本地驱动器
  2. 切换到Internet Explorer Driver ConfigInternet Explorer标签,并在那里输入Internet Explorer驱动程序可执行文件的完整路径:

    JMeter Internet Explorer

  3. 有关通过WebDriver Sampler插件实现JMeter和Selenium集成的更多信息,请参阅The WebDriver Sampler: Your Top 10 Questions Answered文章