cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual service doesn't show the created 404 text in Request

AAB
Frequent Contributor

Virtual service doesn't show the created 404 text in Request

Hi,

I'm working with the API's(Virtual) service. It's great to be able to mock responses! But, if I add a second request in my testcase that should give me e.g. 404 error message, the text isn't showing in the json response. How come please? 

 

Setup:

VirtService:

AAB_0-1620219262836.png

 

AAB_0-1620218987968.png

AAB_1-1620219025971.png

 

I've filled in the wrong Nbr number thus expecting a 404 with my text. I do see the 404 but not my text:

AAB_2-1620219084942.png

 

How can I solve this please?

 

Thanks in advance,

Kind regards, 

AAB

 

 

 

 

1 REPLY 1
AAB
Frequent Contributor

Re: Virtual service doesn't show the created 404 text in Request

oh, Ok, I've found out why. As this Nbr is a part of the URL, there is no connection possible. That's why ReadyAPI gives an HTTP404 on its own.
Might the number have been a parameter, this should be working.

 

@Anastasia can you aknowledge please?

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors