Run/Debug tests of a Spring-boot/vaadin application
Hi I'm having trouble to run and debug selenium-tests of a spring-boot/vaadin demo application from within IDEA. The whole testset does run on the command line (mvn verify -Pit). Whenever I select a test source, and select run or debug, the chromedriver does start chrome, but there is no process listening on port 8080. (I checked this with another browser and by looking at running processes). This happens on a Mac, as well as on a Windows 10 machine (have not tried with other IDE's) I did contact the Vaadin company, but found no solution yet.
The reported error, I don't think it is relevant:
objc[8829]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x1013484c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x1013d44e0). One of the two will be used. Which one is undefined.
Starting ChromeDriver 2.35.528157 (4429ca2590d6988c0745c24c8858745aaaec01ef) on port 46969
Only local connections are allowed.
Feb 27, 2018 9:31:08 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
----------------------------------------------------------------------------------
Vaadin TestBench 5 registered to w.sieburgh@emcatron.com (Pro Tools subscription)
----------------------------------------------------------------------------------
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"id","selector":"login"}
(Session info: chrome=64.0.3282.167)
(Driver info: chromedriver=2.35.528157 (4429ca2590d6988c0745c24c8858745aaaec01ef),platform=Mac OS X 10.13.3 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 19 milliseconds
For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
System info: host: 'wouters-mbp.home', ip: '2a02:a440:2641:1:a893:1530:71bf:1686', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.3', java.version: '1.8.0_131'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false, mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome={chromedriverVersion=2.35.528157 (4429ca2590d6988c0745c24c8858745aaaec01ef), userDataDir=/var/folders/pz/b8r_gnpn7t38mp9pbhmkjmz80000gn/T/.org.chromium.Chromium.tXkbDG}, takesHeapSnapshot=true, pageLoadStrategy=normal, databaseEnabled=false, handlesAlerts=true, hasTouchScreen=false, version=64.0.3282.167, platform=MAC, browserConnectionEnabled=false, nativeEvents=true, acceptSslCerts=false, acceptInsecureCerts=false, locationContextEnabled=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, cssSelectorsEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=}]
Session ID: 881ce38c961c0b8214be6e9bba451430
*** Element info: {Using=id, value=login}
The command line, also reported in the console (I stripped the jar files):
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java
-ea -Didea.test.cyclic.buffer.size=1048576 "
-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=59749:/Applications/IntelliJ IDEA.app/Contents/bin"
-Dfile.encoding=UTF-8
-classpath "lots-of-jars"
com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.emcatron.core2.be.p2.ui.view.LoginIT
Is there something essential missing that should start some embedded web-server or so???
Thanks for looking onto this.
Please sign in to leave a comment.
I'm not familiar with selenium testing but it looks like the Selenium server must be started additionally: https://github.com/lmc-eu/steward/wiki/Selenium-server-&-browser-drivers#3-start-selenium-server