The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error when trying to execute selenium automation test cases

Sourav Pratap
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 24, 2024
java.lang.ExceptionInInitializerError
3
at BDD.HART_listeners.TestListener.onTestStart(TestListener.java:26)
4
Caused by: java.lang.NullPointerException
5
at BDD.HART_utility.HARTLogger.initialize(HARTLogger.java:37)
6
at BDD.HART_utility.HARTLogger.getLogger(HARTLogger.java:65)
7
at BDD.HART_utility.ConfigReader.<clinit>(ConfigReader.java:12)
8
... 26 more
9
... Removed 25 stack frames
10
11
TestRunnerrunner
<1s
1
Could not initialize class BDD.HART_utility.ConfigReader
2
3
4
java.lang.NoClassDefFoundError: Could not initialize class BDD.HART_utility.ConfigReader
5
at BDD.HART_listeners.TestListener.onTestFailure(TestListener.java:59)
6
... Removed 25 stack frames
7

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 25, 2024

Hello @Sourav Pratap and welcome to the Community.

Are you running the automated test cases in Bitbucket Pipelines?

If yes, then I would suggest trying to debug your code locally with docker, as the error suggests the issue is with your current java code itself, rather than with the Pipelines environment.

After debugging it locally, once you've got it working well, you can update your bitbucket-pipelines.yml to match the changes.

Thank you, @Sourav Pratap !

Patrik S

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events