Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Below error iam getting when i entered command report is generating but no data how ? #28

Open
Sai7574 opened this issue Sep 16, 2023 · 9 comments

Comments

@Sai7574
Copy link

Sai7574 commented Sep 16, 2023

Found [13] rest results ...
log4j:WARN No appenders could be found for logger (org.apache.fop.fonts.apps.AbstractFontReader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
java.lang.NullPointerException
at io.github.eroshenkoam.allure.AllurePDFGenerator.addTestResultHeader(AllurePDFGenerator.java:145)
at io.github.eroshenkoam.allure.AllurePDFGenerator.printTestResultDetails(AllurePDFGenerator.java:133)
at io.github.eroshenkoam.allure.AllurePDFGenerator.generate(AllurePDFGenerator.java:107)
at io.github.eroshenkoam.allure.MainCommand.run(MainCommand.java:53)
at picocli.CommandLine.executeUserObject(CommandLine.java:1769)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2141)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2108)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975)
at picocli.CommandLine.execute(CommandLine.java:1904)
at io.github.eroshenkoam.allure.AllurePDF.main(AllurePDF.java:13)

@jayanthmuthu10
Copy link

Try like this..

C:\Users\54978\Playwright\allure-pdf-1.6.0\bin>allure-pdf "C:\Users\54978\Playwright\SGEF_V3_Jayanth\allure-results" -o report1.pdf

Also check in the bin folder. There might be a possibility that the report has been generated.

@Sai7574
Copy link
Author

Sai7574 commented Dec 8, 2023

Since I'm not using a playwright, how can I address Thanks for the response

@jayanthmuthu10
Copy link

You can use any automation tool thats not an issue.
Let me explain the command clearly..
C:\Users\54978\Playwright\allure-pdf-1.6.0\bin>allure-pdf "C:\Users\54978\Playwright\SGEF_V3_Jayanth\allure-results" -o report1.pdf

  1. C:\Users\54978\Playwright\allure-pdf-1.6.0\bin>allure-pdf - This is the path where I have downloaded the zip file and extracted. The zip file is available in the releases. You should give the path where you have the 'bin' folder.
    2)C:\Users\54978\Playwright\SGEF_V3_Jayanth\allure-results - This is the path where I have the 'allure-results' folder. You should give yours.
    3)report1.pdf - This is the name of the pdf that is gonna be generated. It will be downloaded in 'bin' folder.

Hope this helps.

@Sai7574
Copy link
Author

Sai7574 commented Dec 9, 2023

Yes it is generating but in pdf there is no data only empty pdf is generating are you also faced same issue if it reslove please guide me thanks

@jayanthmuthu10
Copy link

Clear the allure results folder. Run the test file. Generate now. I think it should work.

@Sai7574
Copy link
Author

Sai7574 commented Dec 18, 2023

report1.pdf
Yes it is generating but screenshots are not available and it is printing j-son data, how to overcome that and need to print screenshots as well Plz refer above report

@Sai7574
Copy link
Author

Sai7574 commented Jan 25, 2024

image
it is generating but in pdf there is no data only empty pdf is generating are you also faced same issue if it resolve please guide me thanks, Previous it was working fine but now again facing above error

@jayanthmuthu10
Copy link

allure-docx --detail-level compact "C:\Users\54978\Playwright\Testing\allure-results" "C:\Users\54978\Desktop\report1.docx"

Try this command or please remove '-o' from your command and try executing it.

@Sai7574
Copy link
Author

Sai7574 commented Jan 29, 2024

image
I tried, but an error was received.Please refer to the screenshot that is attached.
I am also getting errors when I remove "-o" from the command. Do what is necessary, please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants