2015-07-21 29 views
8

Ho appena provato ad avviare un webdrivertest su Jmeter con i plugin Extras, Hadoop, ExtraLibs e Webdriver. (Tutto 1.3.0) Quando sto cercando di avviare lo script seguente errore appare:Jmeter | Plugin 1.3 - Errore durante l'avvio di Webdrivertest

Chrome + IE:

jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory 
    at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:68) 
    at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:56) 
    at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:60) 
    at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) 
    at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.<init>(ApacheHttpClient.java:228) 
    at org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:89) 
    at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:63) 
    at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:58) 
    at org.openqa.selenium.remote.service.DriverCommandExecutor.<init>(DriverCommandExecutor.java:47) 
    at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170) 
    at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:61) 
    at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.createBrowser(ChromeDriverConfig.java:21) 
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233) 
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220) 
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:610) 
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998) 
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980) 
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:579) 
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:567) 
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) 
    at java.lang.Thread.run(Unknown Source) 




jmeter.JMeter: Uncaught exception: java.lang.NoClassDefFoundError: org/openqa/selenium/os/Kernel32 
    at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:133) 
    at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81) 
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:248) 
    at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:200) 
    at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:124) 
    at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:153) 
    at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:190) 
    at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.quitBrowser(ChromeDriverConfig.java:69) 
    at com.googlecode.jmeter.plugins.webdriver.config.ChromeDriverConfig.quitBrowser(ChromeDriverConfig.java:21) 
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadFinished(WebDriverConfig.java:244) 
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:612) 
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998) 
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980) 
    at org.apache.jmeter.threads.JMeterThread.threadFinished(JMeterThread.java:584) 
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:315) 
    at java.lang.Thread.run(Unknown Source) 

Firefox:

jmeter.threads.JMeterThread: Test failed! java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory 
    at org.openqa.selenium.remote.internal.HttpClientFactory.getClientConnectionManager(HttpClientFactory.java:68) 
    at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:56) 
    at org.openqa.selenium.remote.internal.HttpClientFactory.<init>(HttpClientFactory.java:60) 
    at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.getDefaultHttpClientFactory(ApacheHttpClient.java:251) 
    at org.openqa.selenium.remote.internal.ApacheHttpClient$Factory.<init>(ApacheHttpClient.java:228) 
    at org.openqa.selenium.remote.HttpCommandExecutor.getDefaultClientFactory(HttpCommandExecutor.java:89) 
    at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:63) 
    at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:58) 
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:95) 
    at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:275) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:116) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:220) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:215) 
    at com.googlecode.jmeter.plugins.webdriver.config.FirefoxDriverConfig.createBrowser(FirefoxDriverConfig.java:95) 
    at com.googlecode.jmeter.plugins.webdriver.config.FirefoxDriverConfig.createBrowser(FirefoxDriverConfig.java:21) 
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.getPreparedBrowser(WebDriverConfig.java:233) 
    at com.googlecode.jmeter.plugins.webdriver.config.WebDriverConfig.threadStarted(WebDriverConfig.java:220) 
    at org.apache.jmeter.threads.JMeterThread$ThreadListenerTraverser.addNode(JMeterThread.java:610) 
    at org.apache.jorphan.collections.HashTree.traverseInto(HashTree.java:998) 
    at org.apache.jorphan.collections.HashTree.traverse(HashTree.java:980) 
    at org.apache.jmeter.threads.JMeterThread.threadStarted(JMeterThread.java:579) 
    at org.apache.jmeter.threads.JMeterThread.initRun(JMeterThread.java:567) 
    at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:257) 
    at java.lang.Thread.run(Unknown Source) 

Apache JMeter Version 2.13
Java 1.8.0.45

Ho usato anche Jmeter 2.13 con gli stessi plugin (1.2.1) e funziona perfettamente. Ma per il test ho bisogno dei plugin 1.3.

Qualcuno usa Jmeter con i plugin 1.3 e ha lo stesso errore?

risposta

13

Hai un problema in il fatto che si dispone di diverse versioni dello stesso JAR in lib:

  • httpclient-4.2.6.jar
  • httpclient-4.5.jar
  • httpcore- 4.2.5.jar
  • httpcore-4.4.1.jar
  • httpmime-4.2.6.jar
  • httpmime-4.5.jar

È necessario mantenere la versione più aggiornata di entrambi non entrambi.

Vedi un tutorial completo su questo a:

+0

Grazie per la tua risposta veloce! Ho provato di nuovo come hai detto, ma c'è lo stesso errore. Espandere tutti i barattoli e iniziare con Standard, quindi Extra, Extralibs e infine Webdriver. Ho ottenuto Jmeter 2.13 da http://jmeter.apache.org/download_jmeter.cgi (lo zip-one) e Plugin da http://jmeter-plugins.org/downloads/all/. C'è la possibilità di inviarti la struttura di cartelle e contenuti privati? Perché questo è più di 2000 righe e penso che sarebbe molto testo qui: D – Paili

+0

usa pastebin per mostrare questo –

+0

Cool, grazie: http://pastebin.com/qfFqRAUD – Paili