Hi All,
Can somebody the reason of selenium html runner problem?
If I execute this command
java -jar selenium-html-runner-3.0.1.jar -htmlSuite "*iexplore" "
http://www.google.com" "c:\selenium\tsRcTest.html" "c:\selenium\results.html"
The internet explorer is opened, and
"This is the initial start page for the WebDriver server"
then finally the result this exception:
WARNING: Test of browser failed: *iexplore
java.io.IOException: java.lang.RuntimeException: java.net.BindException: Address already in use: JVM_Bind
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.determineSuiteUrl(HTMLLauncher.java:180)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLLauncher.java:108)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLauncher.java:245)
at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher.java:273)
Caused by: java.lang.RuntimeException: java.net.BindException: Address already in use: JVM_Bind
at org.openqa.selenium.net.PortProber.pollPort(PortProber.java:154)
...
I extended with port number the start command
java -jar selenium-html-runner-3.0.1.jar -htmlSuite "*iexplore"
"
http://www.google.com" "c:\selenium\tsRcTest.html"
"c:\selenium\results.html" -port 7272
reading more I modified the code to this:
java -jar selenium-html-runner-3.0.1.jar -port 7272 -htmlSuite "*iexplore" "
http://www.google.com" "file:///c:/selenium/sRcTest.html" "c:\selenium\results.html"