REST API Testing Errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Error linking personal sandbox account with partner api in Sandbox Environment
- payee account invalid in Sandbox Environment
- Need Help Upgrading to PayPal complete payments in PayPal Upgrade Community
- UNPROCESSABLE_ENTITY MISSING_RECIPIENT_EMAIL in REST APIs
- How to confirm Paypal Checkout API Credential Setup is correct in Sandbox for X-Cart shopping cart in REST APIs