Forum Discussion
abhayguna
10 years agoOccasional Contributor
Hi Rao,
Thank you for your resonse. I would like to write an assertion, that should PASS when the request does not reply anything. Means, after Socket time out, my test case should pass.
Actually i am testing a negative scenario, in which, if there is no data in DB, My request returns nothing.
Thank you,
nmrao
10 years agoCommunity Hero
Ok, but how would the caller know that there is no value, should n't receive a response saying something like the requested data / information could not be found etc?
- abhayguna10 years agoOccasional Contributor
Rao,
As per the design, the Request does not reply anything, when there is no matching data in DB. They are not displaying any user friendly message with HTTP status code 200 and Message such as "No Data Found". Simply it runs till the Socket Time out and fails the test case