How to increase the testng verbosity level in Eclipse

1,074 views
Skip to first unread message

berndg

unread,
Sep 17, 2012, 3:47:57 AM9/17/12
to testng...@googlegroups.com
I would like to see more TestNG log output running single classes in Eclipse (i.e. without a predefined test suite xml document). I tried it by using the template xml file as follows but that did not work:

<suite name="Default" verbose="10">
    <test name="Default test" verbose="10"/>
</suite>

The verbosity level for the suite is nicely picked up, but the verbosity of the single test entry is set back to "2", as you can see here:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Default" thread-count="5" verbose="10" allow-return-values="false" parallel="false" data-provider-thread-count="10" junit="false" configfailurepolicy="skip" skipfailedinvocationcounts="false">
  <test verbose="2" name="Default test">
    <classes>
      <class name="com.swissre.test.LoadTest"/>
    </classes>
  </test> <!-- Default test -->
</suite> <!-- Default -->


Any insights on how the test level verbosity can be overridden in Eclipse?

Krishnan Mahadevan

unread,
Sep 17, 2012, 4:03:19 AM9/17/12
to testng...@googlegroups.com
I didnt quite get your question here.
Your suite file defines a global verbosity of "10" and you are overriding it at the test level and reducing it to "2". So for your test alone it would be level 2, but for other tests [which hopefully havent overridden this value] they would have 10.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/cGGsD40Nu58J.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.

berndg

unread,
Sep 17, 2012, 9:41:17 AM9/17/12
to testng...@googlegroups.com
My description was not complete, I admin. The second xml configuration is generated by the TestNG Eclipse plugin (6.7.0) when I run a single test class (right click, Run as... TestNG test). I was hoping that I can override the verbosity settings by configuring the first xml configuration in Window, TestNG, "Template XML file" (see screenshot below) but it seems that there is no way to override the "2" at the test level. Maybe somebody else found a tweak on how change it (or I may need to dive into reading the TestNG plugin code =:-)
Regards,
Bernd

Cédric Beust ♔

unread,
Sep 17, 2012, 10:40:42 PM9/17/12
to testng...@googlegroups.com
This looks like a bug, I'll take a look.

-- 
Cédric




--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/PWlmobo6JdkJ.
Reply all
Reply to author
Forward
0 new messages