Forum Discussion

kesav's avatar
kesav
Occasional Contributor
16 years ago

compare Response of test step with xml data

hi

i have rest service request and corresponding test step for that
and i want compare the response with  an xml file in the system

can u please tell how to do this?
thanks in advance

regards
kesava...

1 Reply

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    easiest is probably to create a Script Assertion that reads the desired file via groovy and compares it to the messageExchange.responseContentAsString (if it is text) property..

    Hope this helps!

    regards,

    /Ole
    eviware.com