allure-framework / allure2

Allure Report is a flexible, lightweight multi-language test reporting tool. It provides clear graphical reports and allows everyone involved in the development process to extract the maximum of information from the everyday testing process
https://allurereport.org/
Apache License 2.0
4.22k stars 716 forks source link

Allure report not generated using allure results #1614

Open nithilaraja opened 2 years ago

nithilaraja commented 2 years ago

I am new to Selenium learning to generate reports from Allure please help me I have downloaded the latest Allure file for windows, 1.2.17.3.zip(I have set the bin path in Environmental variables) .I have given the pom.xml allure dependency as 2.17.3 Now after running the testng suite,I can see the report are falling in the allure-results folder(.json files).

But when I try to convert them into reports using (allure serve target/allure-results it says no results files in the path)but I can see the files. My pom.xml

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0 alluretest allurerep 0.0.1-SNAPSHOT allurerep http://www.example.com UTF-8 1.7 1.7 io.github.bonigarcia webdrivermanager 5.0.3 io.qameta.allure allure-testng 2.17.3 org.apache.httpcomponents httpclient 4.5.13 org.seleniumhq.selenium selenium-java 3.141.59 org.seleniumhq.selenium selenium-support 3.141.59 org.seleniumhq.selenium selenium-api 3.141.59 org.seleniumhq.selenium selenium-server 3.141.59 org.seleniumhq.selenium selenium-chrome-driver 3.141.59 org.seleniumhq.selenium selenium-firefox-driver 3.141.59 org.seleniumhq.selenium selenium-remote-driver 3.141.59 org.testng testng 6.14.3 test junit junit 4.10 test org.apache.poi poi-ooxml 3.17 commons-io commons-io 2.6 org.apache.poi poi 4.1.2 org.apache.poi poi-ooxml 4.1.2 org.apache.poi poi-ooxml-schemas 4.1.2 com.codeborne phantomjsdriver 1.4.1 org.seleniumhq.selenium htmlunit-driver 2.32.1 maven-clean-plugin 3.1.0 maven-resources-plugin 3.0.2 maven-compiler-plugin 3.8.0 maven-surefire-plugin 2.22.1 maven-jar-plugin 3.1.1 maven-install-plugin 2.5.2 maven-deploy-plugin 2.8.2 maven-site-plugin 3.7.1 maven-project-info-reports-plugin 3.0.0

allurepicture

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE suite SYSTEM "https://testng.org/testng-1.0.dtd">

kindly help me where i am going wrong When I run in command prompt it says its not in the path to generate the report.But i can see the report check screenshot C:\Users\Raja Family>allure serve C:\Users\Raja Family\eclipse-workspace\allurerep\allure-results Generating report to temp directory... Family\eclipse-workspace\allurerep\allure-results does not exist Report successfully generated to C:\Users\Raja Family\AppData\Local\Temp\14510116464729806576\allure-report Starting web server... 2022-03-24 07:55:57.212:INFO::main: Logging initialized @2602ms to org.eclipse.jetty.util.log.StdErrLog Server started at . Press to exit
pansila commented 2 years ago

use qoutes for space seperated path C:\Users\Raja Family>allure serve "C:\Users\Raja Family\eclipse-workspace\allurerep\allure-results"

nithilaraja commented 2 years ago

Thanks It's working now.Double quotes worked