Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Rest API - Multipart request and response

kalaivani
kalaivani Posts: 2

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?

Tagged:

Comments

  • jakubiak
    jakubiak Posts: 795 admin

    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.

  • kalaivani
    kalaivani Posts: 2

    Thanks for your reply. i have tried that option earlier. But it dint store any content on that. I am getting empty response there

  • jakubiak
    jakubiak Posts: 795 admin

    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.

Tagged