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

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

Closed
r2d2-github opened this issue Nov 30, 2021 · 9 comments

Comments

@r2d2-github
Copy link

r2d2-github commented Nov 30, 2021

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
Copy link
Member

wakaleo commented Nov 30, 2021

"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
Copy link
Author

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

@wakaleo
Copy link
Member

wakaleo commented Nov 30, 2021

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

@r2d2-github
Copy link
Author

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
Copy link
Member

wakaleo commented Nov 30, 2021

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

@r2d2-github
Copy link
Author

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
Copy link
Member

wakaleo commented Nov 30, 2021

No it is not.

@wakaleo
Copy link
Member

wakaleo commented Dec 5, 2021

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

@wakaleo
Copy link
Member

wakaleo commented Dec 26, 2021

Closing due to inactivity.

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

2 participants