-
Notifications
You must be signed in to change notification settings - Fork 294
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
Failed to generate the serenity report if a test failed in a set (eg: set contains 3 tests (2 tests passed and 1 failed)) - Serenity version 4.2.8 #158
Comments
That sounds like an issue with your build configuration. Do you have a project that reproduces this? |
Yes, John, this appears to be the configuration for the Serenity Testrunner. I will implement this in my project and keep you updated on the results. I just wanted to give you a heads-up, John. After a lengthy process, we are finally upgrading Serenity from version 2.0.81 to 4.2.8 (from junit 4 to junit 5). While this isn't a challenge, I would appreciate your assistance if in case I overlook any configuration-related issues. Thank you for your continued support, John! |
Hi John, I have finally upgraded to JUnit 5 with Serenity 4.2.8. However, our Serenity 4.x.x JUnit 5 project is experiencing a slowdown in execution speed when I instantiate more than 10 @steps in a step definition, particularly because each helper method contains over 8000 lines of code. (If I instantiate one or two @steps, the execution speed meets my expectations.) Moreover, the execution speed is at its best when there are fewer lines in the helper class. But I'm not certain if I've overlooked something or if it's a bug in the newer version? Note: Sorry John, I cannot create a sample project with 8000+ lines of code to reproduce this issue. The Source code compiler version is Java 21 Additionally, I do not encounter this issue in Version 2.0.81. Sample StepDefination class: public class BankGlobalSteps { @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps @steps Sample Helper Class public class NavigationHelper extends ScenarioSteps{ public NavigationHelper(Pages pages) { Sample Page Class public class LoginPage extends PageObject { } Serenity Properties: webdriver.driver = chrome TestRunnerSuite: @suite My POM.xml: 4.0.0 com.gehc.cb.bdd test 1.0-SNAPSHOT jar
|
Hmmm, sound's like the byte-buddy byte code instrumentation takes some time with larger classes. Have you tried breaking your step definition class into a number of smaller ones? |
John, I haven't had the chance to test that scenario yet, but I will let you know as soon as I do. I also want to take a moment to thank you for your exceptional support over the past 10 years! Thank you, John. |
If I executed a set of multiple tests (let's say the set includes 5 tests) and 4 of those tests passed while 1 test failed, then the Serenity report is not being generated correctly.
After conducting the analysis, running the mvn serenity:aggregate command generates the complete report.
Note: If all five tests are successfully completed, then the report will be generated as anticipated.
The text was updated successfully, but these errors were encountered: