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

Request and response attachments not showing when using allure-combine #25

Closed
sharathhatter1 opened this issue Apr 12, 2023 · 4 comments

Comments

@sharathhatter1
Copy link

sharathhatter1 commented Apr 12, 2023

Describe the bug
Request and response attachments not showing when generating complete.html.

But when generating using allure generate, all the request and response showing properly when we open index.html
.

Using version 2.21.0 both allure-rest-assured and allure-testng 2.13.18

Using -> addFilter(new AllureRestAssured())

Screenshots using allure generate attached-
local

Screenshot using allure-combine attached -
othersystemCapture

When we see the error in the file it says unable to get html file from data/attachments folder under allure-report. It is not merging the data properly.

@sharathhatter1 sharathhatter1 changed the title Request and response attachments not showing when sharing complete.html to others Request and response attachments not showing when using allure-combine Apr 13, 2023
@MihanEntalpo
Copy link
Owner

Hello. Please, attach zip-archive of your output directory, BEFORE running allure-combine

@sharathhatter1
Copy link
Author

Hi @MihanEntalpo, I have created allure-report
allure generate allure-results --clean -o allure-report

allure-report folder generated with all the data.

But when we use allure-combine, the complete.html file not including data from data->attachments folder.
I created zip archive of the allure-report directory and running the command allure-combine shows error( attached file - unable to find index.html)

image

@MihanEntalpo
Copy link
Owner

@sharathhatter1 it seems, that you are specifying rar-archive, not the folder

@MihanEntalpo
Copy link
Owner

According to this merged pull request allure-framework/allure2#2072 Allure itself now has command line argument --single-file that make it produce report as a single html file. As for now it's not described in official allure docs, but anyway it should make this package (allure-combine) useless. I'm encorage you to use Allure --single-file functionality, as it should work much better that my combiner!

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