Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.
Dynamic response
abaraty
Posts: 1 ✭
in Virtualize
I have multi response correlated with URL PATH. but I need some id's in the path to send 404 message, how can I do it.
here is example:
/x/person/* is the URL path correlation
The followings should respond JSON message
/x/person/1111
/x/person/3333
the following should send 404 not found message.
/x/person/2222
0
Answers
-
@abaraty
you should add next responder which will handle /x/person/2222 path request.
You can achieve it, by using Multiple Response view in existing responder, or adding next responder for "404" handling only.PLease check following documentation of Virtualize:
Request URL Path Correlations
Understanding the Message Correlation Process--
Ireneusz Szmigiel
http://www.catb.org/esr/faqs/smart-questions.html0