Hi,
Is there is any way to simply print a message on every assertTrue either the test is passed or Failed. Basically i wanted to have a better log in my tests.
Best Regards,
Mahadi
--To view this discussion on the web visit https://groups.google.com/d/msg/testng-users/-/6nQkm0Tk3RQJ.
You received this message because you are subscribed to the Google Groups "testng-users" group.
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.
--
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/-/yXa8feQEYJgJ.
@Testpublic class A {private FlexibleAssert m_assert = new FlexibleAssert();public void test1() {m_assert.assertTrue(true, "test1()");}}
public class LoggingAssert extends FlexibleAssert {private List<String> m_messages = Lists.newArrayList();@Overridepublic void onBeforeAssert(IAssert a) {m_messages.add("Test:" + a.getMessage());}public List<String> getMessages() {return m_messages;}}