Error execution log4j Selenium

Asked

Viewed 154 times

1

I am new to automated testing and am creating a test script in Selenium and when I run I am getting this error response:

log4j:WARN No appenders could be found for logger (org.easetech.easytest.loader.CSVDataLoader).  
log4j:WARN Please initialize the log4j system properly.

I have no idea what that is log4j.
I wonder if anyone can help me?

My code’s too big, so I’m not gonna put it in here, but if you need any snippets I’ll put it here.

1 answer

0


Allan, log4j is a widely used logging tool, mainly in java.

This problem should be due to the configuration file (log4j.properties or log4j.xml) of your project, in the English stackoverflow you have a problem extremely similar to yours, give a look here, probably the answer marked as right will save you.

https://stackoverflow.com/a/1140498/8260882

Even in the answer there is a link to documentation.

If possible edit your question with which version of log4j you are using, and a little more background would be nice, the kind was working before and stopped? Did you modify something? You copied code from another class? And you’re just breaking it?

  • I managed to solve the problem, added a line of code that imported this log4j, and I do not use this tool in my project. After removing import I was able to run the test normally.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.