Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version: Available or changed with runtime version 15.0.
Specifies the behavior when encountering outgoing http requests in test executions.
Applies to
- Codeunit
Property value
Value | Available or changed with | Description |
---|---|---|
BlockOutboundRequests | runtime version 15.0 | Any HTTP request issued during the test execution that is not caught and handled by an HTTP client handler will raise an exception. |
AllowOutboundFromHandler | runtime version 15.0 | All HTTP requests issued during the test execution are required to be caught by an HTTP client handler. The handler is allowed to explicitly fall through to issue the original request to the external endpoint. |
AllowAllOutboundRequests | runtime version 15.0 | All outbound HTTP requests issued during the test execution are allowed. |
Remarks
With this property, you can control how outbound HTTP requests are treated during test execution. By default, all outbound requests are allowed, but you can further restrict this behavior to only allow ones issued from a handler, or to block all unhandled outbound requests. Learn more in Mock outbound HttpClient web service calls during testing.