serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
721 stars 517 forks source link

Error when including Manual tests and empty space in the report shows Summary #2620

Closed r2d2-github closed 2 years ago

r2d2-github commented 2 years ago

Unable to include manual tests in serenity 3.1.1 version. Following error is occured

java.lang.NoClassDefFoundError: org/eclipse/jetty/util/StringUtil Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.util.StringUtil

[ERROR] myorg.proj.sample.testrunners.ProjectCompleteTestSuite Time elapsed: 181.507 s <<< ERROR! org.junit.runner.notification.StoppedByUserException

image

Also noticed that report does not show any graph/chart in Summary tab.

image

wakaleo commented 2 years ago

"java.lang.NoClassDefFoundError: org/eclipse/jetty/util/StringUtil" is a dependency conflict. This class is not directly used by Serenity, so try (a) to see where it is being called, and (b) analyse the dependencies to identify the conflict.

r2d2-github commented 2 years ago

Looks like, it is strange issue, I am not using Jetty or Eclipse related libraries, I will try to investigate further.

wakaleo commented 2 years ago

I just did a search on the Serenity code base too. Do you have a stack dump?

r2d2-github commented 2 years ago

Never heard of Stack dump, but If this strack trace, I have only one usage for exceptions lke below

try{
my code
        } catch (IOException e) {
            e.printStackTrace();
        }
wakaleo commented 2 years ago

There should be a stack trace printed to your console output - that will tell you where this code is being called.

r2d2-github commented 2 years ago

None of my manual or automated test cases are calling this method so I am still checking if this exception is really related to this issue.

Regarding other issue with report side, could you please confirm if is it expected to have blank space in the Summary area?

wakaleo commented 2 years ago

No it is not.

wakaleo commented 2 years ago

I can't reproduce this, can you provide a sample project?

wakaleo commented 2 years ago

Closing due to inactivity.