In testng.xml, the "verbose" attribute of the suite tag is very useful for troubleshooting configuration related error. Its values can be set as 1 to 10, and smaller value means lower verbose and bigger value means higher verbose.
How to pass testng command line arguments dynamically when Ant is used for invoking testng task.
With Jenkins “This build is parameterized” feature, we can dynamically pass testng parameters (i.e. test config or data input) through Ant.
TestNG custom listener to log individual result of test method execution and custom reporter to log summary report of test suite execution.
When developing test automation framework in java with TestNG and log4j, one can append log4j logs to the "Reporter output" section of TestNG html report and this post shows how to achieve that.
TestNG parameters and dataprovider.