How to show custom message and assert error message for soft assert assertAll

2,438 views
Skip to first unread message

Sudheer te

unread,
Apr 27, 2015, 12:11:25 PM4/27/15
to testng...@googlegroups.com
Hi,

Is there any way to display the default assertEquals error message along with the custom message given in soft assertion?

My requirement is to have custom message and assert error message as below, please see the detailed question from below link.


http://stackoverflow.com/questions/29203274/testng-soft-assertion-output-is-not-comprehensive/29896004#29896004

Thanks,
Sudheer

Mrunal Gosar

unread,
May 9, 2015, 10:38:31 AM5/9/15
to testng...@googlegroups.com
I believe i had already answered in that stackoverflow post. what more is needed?

regards
Mrunal

Sudheer NL

unread,
May 13, 2015, 2:35:29 AM5/13/15
to testng...@googlegroups.com
@ Mrunal

Thanks for your answer, have sent this email on the same day I posted the question in stackoverflow. I just wonder why this feature is not available by default in TestNg!! :-)


Thanks,
Sudheer

--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.

Cédric Beust ♔

unread,
May 13, 2015, 10:14:16 AM5/13/15
to testng...@googlegroups.com
Which features? You specify messages while you assert, as Mrunal pointed out.

-- 
Cédric

Sudheer te

unread,
May 13, 2015, 12:55:30 PM5/13/15
to testng...@googlegroups.com
Hi Cedric,

With / without specifying custom message I want soft assertions to print assert error message by default, when I use the TestNg's soft assertions it's prints only custom message and not assert's error message, to print the error message I have to have my own assertEqaul soft assertions.I have listed the code and my requirement in detail in this post. 


Thanks,
Sudheer
Reply all
Reply to author
Forward
0 new messages