-
Notifications
You must be signed in to change notification settings - Fork 90
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
Aggregated report index.html is not generated automatically #7
Comments
Try putting the serenity-maven-plugin section in the section, not in |
Hi @wakaleo, thanks a lot for your comment. It seems like it wasn't completed at the most interesting point. Could you please have one more look and tell me what section should I try putting it in? |
Even i am facing the same issue blank report is getting generated sometimes in my index.html .. Below is mybuild.gradle file: buildscript { group 'hided the group details' repositories { test.finalizedBy(aggregate) test { +++++++++++++++++++++++++ |
Hi.. were u able to figure out what's causing reports not be generated? Suddenly, am facing similar issue, even though I did not make any change to my pom.xml .. Appreciate your inputs |
@s9g0 |
This seems like expected behaviour. The index file is generated by the aggregate task, not by the individual tests. This is intentional and normal behaviour. |
@wakaleo , agree index file will be get generated by aggregate task..but why does sometimes index file is getting generated with blank report.. can u plz tell us what and where may be the issue in this case? |
If the index.html file is blank, it's generally because no Serenity tests were executed or because there was an issue in the report generation - you will know which from the console output. |
I can see my tests are getting pass from the console but when i see the index.html it is blank report.. so unable to know what is the issue in the report generation ?? how can we find it ?? |
If there are issues with the report generation, you will see the error messages when you run "mvn serenity:aggregate" or "mvn verify" from the command line. What do you mean by "blank report"? |
Thanks guys for your suggestions. Please note, i have the same configuration i.e. pom.xml, JDK version, code files etc,. in a different laptop, and it works fine there. |
Hello @wakaleo I have a similar problem, the issue that runs all fine. but the report comes out blank. This is how it comes out on the console I leave my Pom.xml just in case.
|
For me this got resolved without doing much. I was playing around with running in debug mode and removed the eclipse run configurations and re-created them. Somewhere in those multiple trial and errors, it worked. Sorry, I do not have any detailed steps to suggest. |
Hello, Can you please help me why it's showing 'zero' result. Thanks, |
@kempegowdad - unfortunately there wasn't any specific solution that worked.. it was trial and error as others suggested where we run in debug mode couple of times and doing clean builds.. and surprisingly it started working.. |
This is generally due to an error in the maven-failsafe-plugin configuration. |
@s9g0 @wakaleo Thank you for your response. I was using maven-failsafe-pluging version 3.0.0-M5 and I changed to 3.0.0-M7, still facing same issue. Can you please have look of my pom.xml and suggested me something if you find some solution. Please find my pom.xml here
|
Also in Jenkins getting this error failed to execute goal �[32mnet.serenity-bdd.maven.plugins:serenity-maven-plugin:2.6.0:aggregate�[m �[1m(serenity-reports)�[m on project �[36mfca-hydra-Harvester-Test-Automation�[m: �[1;31mExecution serenity-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:2.6.0:aggregate failed: Plugin net.serenity-bdd.maven.plugins:serenity-maven-plugin:2.6.0 or one of its dependencies could not be resolved: Failed to collect dependencies at net.serenity-bdd.maven.plugins:serenity-maven-plugin:jar:2.6.0 -> net.serenity-bdd:serenity-core:jar:2.6.0 -> net.serenity-bdd:serenity-model:jar:2.6.0 -> org.reflections:reflections:jar:0.9.12 -> org.javassist:javassist:jar:3.21.0-GA�[m: Failed to read artifact descriptor for org.javassist:javassist:jar:3.21.0-GA: Could not transfer artifact org.javassist:javassist:pom:3.21.0-GA from/to central (https://jcenter.bintray.com/): Connection reset -> �[1m[Help 1]�[m |
@kempegowdad - you are using quite an old version of serenity. Update to latest version and refer to the cucumber-starter template project for reference.. link below.. With respect to Jenkins, I am not sure what it means, and am no expert on Jenkins side of things.. One hunch is to check if your jenkins server is able to access the maven repo. I believe Jcenter public version was being decommissioned. You may try other maven repos "https://repo.maven.apache.org/maven2" or even better remove that repository tag. Hope this helps and good luck |
Thank you @s9g0 I referred cucumber-starter project which you shared but for that I am getting an exception io.cucumber.core.exception.cucumberexception: failed to instantiate class Also, I am using rest assured along with it if I update serenity version to 3.2.5 and not using serenity-cucumber6 instead took cucumber-started project reference I am getting this error io.cucumber.core.exception.cucumberexception: failed to instantiate class |
I am not sure how you're using Serenity. This is my pom.xml. And I use @RunWith(CucumberWithSerenity.class) on CucumberTestSuite.java.
|
@s9g0 which serenity version are you using, my project is only backend no UI and also which java version are you using for this project (Sample Serenity BDD + RestAssured project using Cucumber) |
@kempegowdad - its in the pom.xml. Mostly i use Java 1.8, but this works on jdk 17.0.1 as well <serenity.version>3.2.1</serenity.version> |
@s9g0 Thank you, I can run my tests using <serenity.version>3.2.1</serenity.version> but still same issue index.html returns '0' scenarios. |
What is the console output showing? |
In console test results are displaying as expected and giving the link to individual test results html page for each feature files. But these result files are not aggregating into index.html |
Are oyu seeing this with the starter project? |
@wakaleo yes with starter project, but I have error (Plugin 'net.serenity-bdd.maven.plugins:serenity-maven-plugin:3.2.1' not found) for serenity maven plugin in pom.xml for serenity 3.2.1 version
|
Hello guys.. |
Hello guys.. |
Hello guys.. |
Hello,
I cannot get my index.html report generated in target/site/serenity after I run my Serenity tests using
mvn clean verify
ormvn clean
both in case when some tests fail and when none fail. However it gets generated after runningmvn serenity:aggregate
.Could you please help me find the solution to generate the report automatically?
Here's my pom.xml file, I mostly used the pom.xml provided in the serenity-junit-starter:
The text was updated successfully, but these errors were encountered: