sridharbandi / Java-a11y

Accessibility Automated Testing with Java Selenium
https://sridharbandi.github.io/Java-a11y/
MIT License
12 stars 12 forks source link

Issues getId return null value for gradle project #34

Open ankur1233 opened 3 months ago

ankur1233 commented 3 months ago

I have setup gradle project and getting Issues.getId() same project run with maven setup it work fine

invoke "io.github.sridharbandi.modal.axe.Issues.getId()" because "issues" is null java.lang.NullPointerException: Cannot invoke "io.github.sridharbandi.modal.axe.Issues.getId()" because "issues" is null at io.github.sridharbandi.IRunner.lambda$generateHtmlReport$0(IRunner.java:25) at java.base/java.util.ArrayList.forEach(ArrayList.java:1596) at io.github.sridharbandi.IRunner.generateHtmlReport(IRunner.java:24) at io.github.sridharbandi.AxeRunner.generateHtmlReport(AxeRunner.java:53)

sridharbandi commented 2 months ago

@ankur1233 Can I know the website you are using, I will check it from my side.

ankur1233 commented 1 month ago

yah sure it's : https://www.hilti.fr/

anonymous73612 commented 1 month ago

Hello @sridharbandi, we are getting this error ava.io.FileNotFoundException: ./target/java-a11y/axe/json/f9a05f92-9a3a-4486-a7b5-60ed4db7918d.json (No such file or directory) and that's the reason we are getting null pointer on Issues.getId().

But the interesting part is that the json file is correctly generated at this path testauto/target/java-a11y/axe/json/0c4844d2-e5fb-4be7-9fdf-a196f005547c.json but throws an error while reading the json

I see that the json is generated after the test is completed inside the target folder and while it tries to find the json during the test execution it fails as there is no json, could you please check this issue on priority as it's impacting our testing? Thanks in advance!