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

ERR_FILE_NOT_FOUND after running Gradle aggregate #3415

Closed
s1apped opened this issue Mar 10, 2024 · 14 comments
Closed

ERR_FILE_NOT_FOUND after running Gradle aggregate #3415

s1apped opened this issue Mar 10, 2024 · 14 comments

Comments

@s1apped
Copy link

s1apped commented Mar 10, 2024

What happened?

After updating serenity from 4.0.27 to 4.1.3 test report is not aggregated properly (had to update because @TestTemplate displayName isn't working properly on 4.0.27)
When accessing scenario results I'm getting ERR_FILE_NOT_FOUND. Looks like aggregation fails to convert json to html because I can find the json with expected name.

What did you expect to happen?

No response

Serenity BDD version

4.1.3

JDK version

17

Execution environment

No response

How to reproduce the bug.

id 'net.serenity-bdd.serenity-gradle-plugin' version '4.1.3'
Zrzut ekranu 2024-03-10 o 11 26 38

How can we make it happen?

Work on this myself and propose a PR (with Serenity BDD team guidance)

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

Make sure you do a clean build

@s1apped
Copy link
Author

s1apped commented Mar 10, 2024

Tried multiple times.
image
image

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

It might be something to do with the name of the tests or scenarios - try setting serenity.compress.filenames to false and see if there are any patterns.

@s1apped
Copy link
Author

s1apped commented Mar 10, 2024

Not sure what to look for
before aggregate:
image
after:
image
Looks like there is no other way than to debug reports

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

image

You should see the html files with the end of the test names:

image

Then compare this with the link that doesn't work to see for which test or page the report isn't getting generated.

Also check the console logs for exceptions.

@s1apped
Copy link
Author

s1apped commented Mar 10, 2024

it's every test. initially I thought it's @TemplateTest but same behaviour for normal @Test. The expected html is missing and it's Scenario page with steps

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

OK, I can reproduce it. Seems to be a general problem with the Gradle plugin. Try rolling back the recent pull requests and see when the last version that worked was.

@s1apped
Copy link
Author

s1apped commented Mar 10, 2024

rolling back gradle plugin to 4.0.46 solved the issues. Libs remained with 4.1.3

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

If you can identify the change in the plugin code that causes the issue we might be able to fix it. Having different plugin and library versions is not recommended.

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

See if 4.1.4-RC1 fixes the issue for you.

@s1apped
Copy link
Author

s1apped commented Mar 10, 2024

works :)

@wakaleo
Copy link
Member

wakaleo commented Mar 10, 2024

Cool, I will include this in version 4.1.4

@khuenguyen-agilityio
Copy link

Screenshot 2024-03-19 091833
I got this when I open the report. Can anyone help me to solve it.
JDK : 21
Maven : 3.9.6
Serenity BDD : 4.1.0
Many thanks!

@wakaleo
Copy link
Member

wakaleo commented Mar 26, 2024

Screenshot 2024-03-19 091833 I got this when I open the report. Can anyone help me to solve it. JDK : 21 Maven : 3.9.6 Serenity BDD : 4.1.0 Many thanks!

This is unrelated to the original issue. Try doing a full clean build.

@wakaleo wakaleo closed this as completed Mar 26, 2024
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

3 participants