I have rest API which returns response as multipart. So i couldn't use json assertor or diff to validate my response. is there anyother way to validate the response
Is there any guide for referring multipart request and responses?
You could use a Text Data Bank to extract the body of the part that you want to validate. You could then set up a JSON Assertor (assuming the content is in JSON format) that uses the extracted value as input to the assertor.
It sounds like the text boundaries that you are using in the Text Data Bank are not finding the right content. Do the MIME boundaries in your message change every time? If so, that might be why.
Comments
You could use a Text Data Bank to extract the body of the part that you want to validate. You could then set up a JSON Assertor (assuming the content is in JSON format) that uses the extracted value as input to the assertor.
Thanks for your reply. i have tried that option earlier. But it dint store any content on that. I am getting empty response there
It sounds like the text boundaries that you are using in the Text Data Bank are not finding the right content. Do the MIME boundaries in your message change every time? If so, that might be why.
Also see:
How to download decrypted pdf document in Traffic response for get method call