-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HTML tests on the local FS not being served correctly.
This fixes issue #2706.
- Loading branch information
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2683fbc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello,
i does not achieve to launch test suite which is not located in same directory than test case.
i Wonder if is not linked to this patch ?
when launching this command : (with suite URL = "file:///C:/")
java -Dwebdriver.gecko.driver=C:\dev\SeleniumMyScm\geckodriver.exe -cp C:\dev\SeleniumMyScm -jar "C:\dev\SeleniumMyScm\selenium-html-runner-3.4.0.jar" -htmlSuite "*firefox" "http://myfmtest/" "file:///C:/dev/SeleniumMyScm/001_TestSuites/TntSearchAndOpen.suite" "C:\dev\SeleniumMyScm\TntSearchAndOpen"
i get this error :
java.nio.file.InvalidPathException: Illegal char <:> at index 4: file:///C:/dev/ SeleniumMyScm/001_TestSuites/TntSearchAndOpen.suite at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.nio.file.Paths.get(Paths.java:84) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.determineSuiteUrl( HTMLLauncher.java:150) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.runHTMLSuite(HTMLL auncher.java:108) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.mainInt(HTMLLaunch er.java:245) at org.openqa.selenium.server.htmlrunner.HTMLLauncher.main(HTMLLauncher. java:273)
if i launch this command : (with suite URL = "C:/dev/...")
java -Dwebdriver.gecko.driver=C:\dev\SeleniumMyScm\geckodriver.exe -cp C:\dev\SeleniumMyScm -jar "C:\dev\SeleniumMyScm\selenium-html-runner-3.4.0.jar" -htmlSuite "*firefox" "http://myfmtest/" "C:/dev/SeleniumMyScm/001_TestSuites/TntSearchAndOpen.suite" "C:\dev\SeleniumMyScm\TntSearchAndOpen"
I get this error :