Got this exception when allure trying to open the browser.
Exception in thread "main" java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
at java.awt.Desktop.checkActionSupport(Desktop.java:221)
at java.awt.Desktop.browse(Desktop.java:380)
at io.qameta.allure.Commands.openBrowser(Commands.java:213)
at io.qameta.allure.Commands.open(Commands.java:138)
at io.qameta.allure.Commands.serve(Commands.java:122)
at io.qameta.allure.CommandLine.run(CommandLine.java:144)
The way allure check if can open browser is supported is different from awt.Desktop.
allure's way:
|
if (Desktop.isDesktopSupported()) { |
awt.Desktop's way
this.checkActionSupport(Desktop.Action.BROWSE);
I think it should be the same.
Got this exception when allure trying to open the browser.
The way allure check if can open browser is supported is different from awt.Desktop.
allure's way:
allure2/allure-commandline/src/main/java/io/qameta/allure/Commands.java
Line 220 in 59384bd
awt.Desktop's way
this.checkActionSupport(Desktop.Action.BROWSE);I think it should be the same.