Forum Discussion
RJanecek
14 years agoRegular Contributor
you can add script assertion to assert header. Here I expecting 405:
def header = context.currentStep.getHttpRequest().getResponse().properties["responseHeaders"]
assert header["#status#"].toString().contains("405 Method Not Allowed")
def header = context.currentStep.getHttpRequest().getResponse().properties["responseHeaders"]
assert header["#status#"].toString().contains("405 Method Not Allowed")
Related Content
- 3 years ago
- 2 years ago
Recent Discussions
- 8 days ago