Forum Discussion

RJanecek's avatar
RJanecek
Regular Contributor
15 years ago

testing response header

Hello,
is there a way how to test header response ? For example I send bad request and then I expected in response header status 400

2 Replies

  • Hello,

    You can add a script assertion on test request and get header with

    context.currentStep.getHttpRequest().getResponse().properties["responseHeaders"]


    Hope this helps,
    robert