Re: [rest-assured] Multiple assertions' violations report

27 views
Skip to first unread message

Johan Haleby

unread,
Mar 7, 2013, 11:17:24 AM3/7/13
to rest-a...@googlegroups.com
Use the latest version :)

/Johan

On Thu, Mar 7, 2013 at 4:07 PM, Ariel Kogan <arik...@gmail.com> wrote:
Hello,

When my ResponseSpecification doesn't match the actual received response, I get on the log something that looks like:

java.lang.AssertionError: JSON path data.firstname doesn't match.
Expected: Ariel
  Actual: Colin

Is there a way I can configure REST assured to not stop on the first field but evaluate all of them and then fail? I would like to see in my log something like to following:

JSON path data.firstname doesn't match.
Expected: Ariel
  Actual: Colin
JSON path data.city doesn't match.
Expected: London
  Actual: Manchester

Thank you,


Ariel

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Ariel Kogan

unread,
Mar 8, 2013, 6:43:57 AM3/8/13
to rest-a...@googlegroups.com
Thanks very much Johan. I'm a happy man. That's great functionality.

Cheers,


Ariel

Johan Haleby

unread,
Mar 8, 2013, 6:59:24 AM3/8/13
to rest-a...@googlegroups.com
Glad to hear it!



Ariel

--
Reply all
Reply to author
Forward
0 new messages