allure2 icon indicating copy to clipboard operation
allure2 copied to clipboard

Allure report not generated using allure results

Open nithilaraja opened this issue 3 years ago • 2 comments

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

<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"> <modelVersion>4.0.0</modelVersion>

<groupId>alluretest</groupId> <artifactId>allurerep</artifactId> 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

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 http://192.168.1.6:50904/. Press <Ctrl+C> to exit

nithilaraja avatar Mar 24 '22 15:03 nithilaraja

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

pansila avatar Apr 20 '22 12:04 pansila

Thanks It's working now.Double quotes worked

nithilaraja avatar Apr 20 '22 13:04 nithilaraja