typhoon-hil / allure-docx

docx report generation based on allure-generated json files
MIT License
30 stars 13 forks source link

Not able to generate pdf report for selenium java maven testng framework #44

Open Sai7574 opened 12 months ago

Sai7574 commented 12 months ago

C:\Users\niranjan.pa\Downloads>allure-docx --pdf C:\WF\AllurereportingSeleniumTestNG\AllurereportingSeleniumTestNG\AllurereportingSeleniumTestNG\allure-results allure.docx Template: C:\Users\niranjan.pa\AppData\Local\Temp_MEI222082\template.docx Traceback (most recent call last): File "allure_docx\commandline.py", line 74, in File "lib\site-packages\click\core.py", line 722, in call File "lib\site-packages\click\core.py", line 697, in main File "lib\site-packages\click\core.py", line 895, in invoke File "lib\site-packages\click\core.py", line 535, in invoke File "allure_docx\commandline.py", line 51, in main File "allure_docx\process.py", line 300, in run File "allure_docx\process.py", line 95, in build_data KeyError: 'status' [16892] Failed to execute script commandline

can u help out me? Screenshot (7)

bjarnesc commented 11 months ago

It seems some of your test results don't have a status (e.g. successful, failed), which seems rather odd. The library was only tested with java junit and python pytest, so this might have to do with TestNG, but I cannot be sure. If you could provide the json test rusult data I could look over it.

Sai7574 commented 11 months ago

Hi thanks for letting me know iam sharing zip file of allure results. Plz help out me thanks for your help

On Tue, Sep 19, 2023, 5:53 PM Bjarne Scheimann @.***> wrote:

It seems some of your test results don't have a status (e.g. successful, failed), which seems rather odd. The library was only tested with java junit and python pytest, so this might have to do with TestNG, but I cannot be sure. If you could provide the json test rusult data I could look over it.

— Reply to this email directly, view it on GitHub https://github.com/typhoon-hil/allure-docx/issues/44#issuecomment-1725409500, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3AYQBU3JCXERKCXYAMXL23X3GFE5ANCNFSM6AAAAAA4WKVOPY . You are receiving this because you authored the thread.Message ID: @.***>

bjarnesc commented 11 months ago

Alright. I cannot see any shared files though.

Sai7574 commented 11 months ago

Can u try now Im forwarding zip file can u check your gmail once

On Mon, Oct 2, 2023, 7:59 PM Bjarne Scheimann @.***> wrote:

Alright. I cannot see any shared files though.

— Reply to this email directly, view it on GitHub https://github.com/typhoon-hil/allure-docx/issues/44#issuecomment-1743128298, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3AYQBWU5CGLQZZ7IOM2TX3X5LFWJAVCNFSM6AAAAAA4WKVOP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGEZDQMRZHA . You are receiving this because you authored the thread.Message ID: @.***>

Sai7574 commented 11 months ago

allure-results.zip

bjarnesc commented 11 months ago

It seems the "testCaseId" that is used is a parameter usually only used by allure test ops (see https://allurereport.org/docs/how-it-works/test-result-file/) and probably not mandatory. I exchanged it for "fullName", which should work. Please checkout and use https://github.com/bjarnesc/allure-docx/ while the merge request is being processed, as I do not have access rights for this repo.

Please give feedback if it does.

Sai7574 commented 11 months ago

There is no latest version v0.4.1 can u help out where can I find?

bjarnesc commented 11 months ago

There is no latest version v0.4.1 can u help out where can I find?

Simply install with pip from source

pip install allure-docx@git+https://github.com/bjarnesc/allure-docx.git#egg=allure_docx-0.4.1
Sai7574 commented 10 months ago

image allure.docx

PDF: image image allure.pdf

It is Generating in word Doc file and pdf format but pdf is not opening and screenshots are not displaying in word Doc can u check from your end also I have forwarded for u allure results zip Plz check and let me know thanks for helping out me Appreciate u r effort. First one is Word Doc File and Second One is Pdf File

bjarnesc commented 10 months ago

This seems to be because your attachment files do not have a proper type ending. Rename them to .png files (and update the attachement path inside the tests obviously). Then it should work.

This is a problem with Word as it does not seem to be able to process attachements without type ending.

Sai7574 commented 9 months ago

When iam generating allure results in that screen shot has file type and it is not having .png format and .png format is not generating in allure-results folder can u help on it thanks

bjarnesc commented 9 months ago

When iam generating allure results in that screen shot has file type and it is not having .png format and .png format is not generating in allure-results folder can u help on it thanks

I really tried but I cannot understand your sentence. Please try to use some grammar that makes sense.

Sai7574 commented 9 months ago

I am generating allure results in that screenshot, but the file type is not.png, and the.png format is not creating in the allure-results folder. Could you please assist? Thank you.