| || |
How to handle error codes like http 400, http 500 in cloud test using script
I need to Automate the error code responses in cloud test for server. I need to Handle 400, 4xx, 500, 5xx codes using cloud test. Cloud test treats these responses as failures, but in tests this should be pass. So anyone can help me on this ?
Thanks vinod. Actually i am not able to understand how to do it..It would be great help if you tell me the steps.
I'm confused on why you're scaling up a 500's error code tests, unless you're testing the webserver itself.
Originally Posted by thatqaguy
500's should never happen under any situation, so they should always be error. The definition of 500 is internal server error, so that means something in your app went wrong.
As for scripting expected 400's. I think there's a way to edit expected behavior at a clip level. After you record and convert it into a clip to import into your scenarios. I think you can click on a frame of a clip and edit some of the expected behavior. I'm just guessing since I've done this to do parameterization.