Forum Discussion

NicoF's avatar
NicoF
Occasional Visitor
9 years ago
Solved

Response get Header

Hi everyone,   Is there a way to get the header-data(raw) from response in a teststep? I want to extract informations from there and i have no idea.   Thanks a lot.   regards Nico
  • Lucian's avatar
    Lucian
    6 years ago

    You only need to add an index like:

     

    def value = testRunner.testCase.testSteps["Request"].testRequest.response.responseHeaders["param name"][0]

    Cheers!