REST API Testing Errors

swaltamirano
Contributor
Contributor

Hi Community, I've implemented the REST API in a .Net System, I'm using the Payments solution. In the happy path everything is working fine but now I need to test my solution with a negative testing, it means that I need to receive a "Host is not available" error or something like that. I've tried to use the "Negative Testing" as in the PayPal documentation but I only can active this one but that's all. Have anyone tried something like that? Thanks a lot.

Login to Me Too
1 REPLY 1

MTS_Ciaran
Moderator
Moderator

The negative testing method on the sandbox is useful for testing API error code scenarios mostly. For host not available errors or timeouts it would be of much use, I would recommend just to send the API call to a non-existent endpoint so that it times out and give you the failure you need to test for. 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.