Troubleshooting "Access Denied" Errors During Test Execution

Overview

Occasionally, a test may fail when navigating to a page, such as a Product Detail Page (PDP), displaying an "Access Denied" error. This can happen even when the page loads correctly when accessed manually. This error typically indicates that the request from the automated test is being blocked by a security layer in the application's environment.

How It Works

An error message such as, “You don't have permission to access 'http://...' on this server,” suggests that the application's server is actively blocking the request from the Functionize execution environment. This is often due to a Web Application Firewall (WAF) or a server-side security rule, sometimes managed by services like Akamai Technologies. These security measures may interpret automated traffic as a potential threat and deny access, causing the test step to fail because the expected page does not load.

Limitations

This access issue is not caused by the Functionize platform but by the security configuration of the application under test. The resolution requires adjusting the security settings of your application's environment. To fix this, your development or security team will need to whitelist the Functionize execution agents in your WAF or other server-side security configurations. This will allow the automated tests to access the application without being blocked.

Related Info

Please contact your support representative for assistance with identifying the necessary information for whitelisting.