1
resposta

Erro ao conectar WebDriver

Ao tentar construir a aplicação com o WebDriver conectado ja, fica dando este erro, estou usando no windows . Essa foi o caminho colocado:

DDwebdriver.chrome.driver="C:\Users\andre\Documents\ChromeDriver\"
INFORMAÇÕES: Running on PrimeFaces 5.3
jun 04, 2019 4:41:12 PM org.apache.catalina.startup.HostConfig deployWAR
INFORMAÇÕES: Deployment of web application archive C:\Program Files (x86)\Jenkins\workspace\argentum-web\target\tomcat-embedded-7\webapps\ROOT.war has finished in 16,347 ms
jun 04, 2019 4:41:15 PM org.apache.catalina.startup.ExpandWar deleteDir
GRAVE: [C:\Program Files (x86)\Jenkins\workspace\argentum-web\target\tomcat-embedded-7\webapps\ROOT\WEB-INF\lib] could not be completely deleted. The presence of the remaining files may cause problems
jun 04, 2019 4:41:15 PM org.apache.catalina.startup.ExpandWar deleteDir
GRAVE: [C:\Program Files (x86)\Jenkins\workspace\argentum-web\target\tomcat-embedded-7\webapps\ROOT\WEB-INF] could not be completely deleted. The presence of the remaining files may cause problems
jun 04, 2019 4:41:15 PM org.apache.catalina.startup.ExpandWar deleteDir
GRAVE: [C:\Program Files (x86)\Jenkins\workspace\argentum-web\target\tomcat-embedded-7\webapps\ROOT] could not be completely deleted. The presence of the remaining files may cause problems
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 44.4 sec <<< FAILURE! - in br.com.caelum.argentum.bean.FiltraNegociacoesIT
verificaResultadosFiltradosNaTabela(br.com.caelum.argentum.bean.FiltraNegociacoesIT)  Time elapsed: 2.663 sec  <<< ERROR!
java.lang.RuntimeException: Nao eh possivel determinar o navegador para execucao dos testes.
    at br.com.caelum.argentum.bean.FiltraNegociacoesIT.iniciaNavegador(FiltraNegociacoesIT.java:71)

jun 04, 2019 4:41:15 PM org.apache.coyote.AbstractProtocol pause
INFORMAÇÕES: Pausing ProtocolHandler ["http-bio-8888"]
jun 04, 2019 4:41:15 PM org.apache.catalina.core.StandardService stopInternal
INFORMAÇÕES: Stopping service arquillian-tomcat-embedded-7
jun 04, 2019 4:41:15 PM org.apache.coyote.AbstractProtocol stop
INFORMAÇÕES: Stopping ProtocolHandler ["http-bio-8888"]

Results :

Tests in error: 
  FiltraNegociacoesIT.iniciaNavegador:71 Runtime Nao eh possivel determinar o na...

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] 
[INFO] --- maven-pmd-plugin:3.6:pmd (default) @ argentum-web ---
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.6.201602180812:report (default) @ argentum-web ---
[INFO] Analyzed bundle 'argentum-web' with 12 classes
[INFO] 
[INFO] --- maven-failsafe-plugin:2.19.1:verify (default) @ argentum-web ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:18 min
[INFO] Finished at: 2019-06-04T16:41:40-03:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.19.1:verify (default) on project argentum-web: There are test failures.
[ERROR] 
[ERROR] Please refer to C:\Program Files (x86)\Jenkins\workspace\argentum-web\target\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
Build step 'Chamar alvos Maven de alto nível' marked build as failure
Finished: FAILURE
1 resposta

Qual versão do chrome você está usando?