0

Messages in my eclipse (testNG & selenium) projects are getting so much now that wanted outputs from sysout command are getting lost between them. This started recently. They were never these much. I heard there is a way to get rid of the unwanted warning messages or reduce them, at least. How can this be possibly achieved?

I get duplicates of messages like:

    [BaseMessageSender] Connection established, starting reader thread
    [BaseMessageSender] ReaderThread waiting for an admin message
    [JsonMessageSender] Sending message [GenericMessage ==> suiteCount:1, 
    
    testCount:1]
    TestNG] Time taken by org.testng.reporters.jq.Main@11531931: 80 ms
    [TestNG] Time taken by org.testng.reporters.EmailableReporter2@35bbe5e8: 19 ms
    [TestNG] Time taken by org.testng.reporters.XMLReporter@3f0ee7cb: 7 ms
    TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 1 ms
    [Utils] Attempting to create C:\Filepath\....
Testilla
  • 602
  • 8
  • 21
  • I suggest you configure TestNG to use a logging framework such as slf4j, in which you can specify the severity of each message and (for example) suppress the ones below "warning". – jsheeran Oct 25 '16 at 15:26
  • 1
    What if you change the log level to 0 and disable verbose + debug? http://testng.org/doc/eclipse.html#eclipse-create-launch – juherr Oct 25 '16 at 15:37
  • @ Julien Herr, thanks. This log level configuration worked like a charm. Super! – Testilla Oct 25 '16 at 16:23
  • @Julien Herr, please refer to: http://stackoverflow.com/questions/40386805/webdriver-can-login-in-chrome-not-in-firefox-unable-to-find-owning-document?noredirect=1#comment68047438_40386805 – Testilla Nov 03 '16 at 10:33

1 Answers1

1

right click on the file you want to run ,then click on the Run Configurations then make sure verbose and Debug checkbox is unchecked .

image link

MD AFSAR ALI
  • 167
  • 1
  • 3