Skip to content

Commit 42fc530

Browse files
committed
Implementing ability to use relative path to suite file in htmlrunner
1 parent 41ebe21 commit 42fc530

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/server/src/org/openqa/selenium/server/htmlrunner/HTMLLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private URL determineSuiteUrl(String browserUrl, String suiteURL) throws IOExcep
164164
ResourceHandler handler = new ResourceHandler();
165165
handler.setDirectoriesListed(true);
166166
handler.setWelcomeFiles(new String[]{path.getFileName().toString(), "index.html"});
167-
handler.setBaseResource(Resource.newResource(path.getParent().toFile()));
167+
handler.setBaseResource(Resource.newResource(path.toFile().getAbsoluteFile().getParentFile()));
168168

169169
ContextHandler context = new ContextHandler("/tests");
170170
context.setHandler(handler);

0 commit comments

Comments
 (0)