Skip to content

Got exception when allure open browser #1122

@askfor

Description

@askfor

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:

awt.Desktop's way
this.checkActionSupport(Desktop.Action.BROWSE);

I think it should be the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions