How can I test that a response header equals a certain value?

BrianQuantumBrianQuantum Posts: 21
edited February 19 in SOAtest

I have a rest command that returns a Content-Type of application/octet-stream and a Content-Disposition with a filename. What is the best way to validate that the values returned in the headers are what I am expecting?

Comments

  • OmarROmarR Posts: 206 admin

    There are a few ways to set this up, but the quickest way is to attach a Diff tool to the Response-Transport-Header Output:

    Copy/paste the header structure that is expected in the Diff tool.
    Run the client. You will likely get an error in the Quality task indicating the header Date/time has changed. Therefore, we can ignore this header by right-clicking the task and selecting "Ignore Difference".

  • BrianQuantumBrianQuantum Posts: 21

    Thank you. That's perfect

Sign In or Register to comment.