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

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events