How to get differnt HTTP-Response-Code in the VS Response

book

Article ID: 129068

calendar_today

Updated On:

Products

CA Application Test Service Virtualization CA Continuous Application Insight (PathFinder) CA Service Virtualization (DevTest / LISA / VSE / Application Test)

Issue/Introduction

We are getting the responses. But wanted to parametrize the response code as well. It is giving 200 always We wanted to check with 404 or other codes

Environment

Release:
Component: ITKOVS

Resolution

You can do this from the Portal:

1. From the Portal choose Manage.
2. Choose Virtual Services.
3. Choose you virtual service you want to change the response code in.
4. On the right of the page choose Advance Mode and set to on.
5. Choose your specific transaction and then change the response Metadata to what you want the HTTP-Response-Code to be..