Error while running allure command line generate command
So there is no solution as such but as per @Nicolai I downgraded to JAVA 8 and it has fixed the issue.
On how I downgraded follow these simple steps mentioned here
getting 404 error when generating allure report in protractor using allure command line tool
You should not open index.html file like a normal html.
allure will spin up a web server.
"scripts": {
"allure": "node_modules/.bin/allure generate ./allure-results -c && allure open"
},
add this to your script in package.json.
After your allure-results folder is created (i.e) test completes run npm run allure
After you run npm run allure
. Your default browser will automatically open the report.
How to execute Allure command using Java
The below code works perfectly fine for me. I have Java 1.8 installed on my mac machine.
String[] cmd = {"allure", "serve","/Users/kireeti/IdeaProjects/testautomationframeworkshaft/allure-results"};
Runtime.getRuntime().exec(cmd);
Thread.sleep(90000);
allure: command not found on linux
To run an executable (which is any file with executable permission); you just specify it by its path: path/to/allure/bin/allure
or './allure'.
Also you can add bin
folder to your PATH variable, and then simply run allure
.
See the following question for more details: How to run a shell script on a Unix console or Mac terminal?
I'm trying to generate allure report for gradle IntelliJ project through terminal command. Its showing loading for long, other menu showing 404 error
Try to use direct Allure's command:
allure serve /path/to/target/folder/in/your/project/
Related Topics
How to Find Max Duplicate Number Count in Given Array Using for Loop
Rsa Decryption Error - Illegalblocksizeexception: Data Must Not Be Longer Than 128 Bytes
How to Send Parallel Get Requests and Wait for Result Responses
Spring Boot Application Shutdown Immediate After Starting
Why How to Declare a Variable Without an Initial Value
Best Way to Run Jar Application With Arguments from Env Variables
Javafx Column in Tableview Auto Fit Size
Method to Find the Smallest Number from an Integer
How to Get Exponents Without Using the Math.Pow for Java
How to Exclude a Dependency from Parent'S Project in Maven
Spring-Boot @Autowired Interface (Crudrepository) in My Service Class => Null Pointer Exception
Map Json String Column of a JPA Entity to Java Object Automatically
Several Ports (8005, 8080, 8009) Required by Tomcat Server At Localhost Are Already in Use
Filenotfoundexception in Src/Main/Resources
How to Link Feature and Step Definition in Cucumber