I need to get value of http status code and text (present in response meta data) from excel file.
Presently, I have given {{resp_code}} and {{resp_code_text}} in response meta data in VSI and fetching the values from excel file in VSM script.
I have checked in INSPECTION VIEW - the data from excel file is fetched properly but I am getting this error in "Virtual HTTPS Responder" - "java.lang.RuntimeException: The response object is not formed properly. It is missing the response code meta data entry or it is invalid: code=400"
(I had given status code = 400 and text = Fail in excel file)
Please guide me on the resolution of this issue.
Thanks in advance.
Which version of DevTest are you using? We recently experienced similar behavior. Check out this post which seems to discuss a similar issue:
HTTP-Response-Code to {{=request_string_local_name_returnCode_}} a property