i have selenium test suite using testng , reporter log results on jenkins. use reporter in methods log activity console, , in turn appears each test listed in reporter html output on jenkins. i'd do, see reporter log output in reports tests fail. if test passes, i'd see test case name in report no logging.
i thought in testngwatcher class override ontestsuccess(itestresult result) method , added following line:
reporter.clear();
that single line did wanted passing tests, disables reporter output failed tests. seems have turned of reporter output entirely.
is there way 'turn on' when test fails , turn off when test passes?
huge in advance!
Comments
Post a Comment