Forum Discussion

AAB's avatar
AAB
Regular Contributor
3 years ago

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:

 

 

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

 

How can I solve this please?

 

Thanks in advance,

Kind regards, 

AAB

 

 

 

 

1 Reply

  • AAB's avatar
    AAB
    Regular Contributor

    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?