in the site settings, how have you configured the testing server?
Is it connecting to a local server? or a remote server?
If connecting to the remote server, the database connections details needs to use the remote settings, if the testing server is connecting to local server, the database connection needs to use the local connection information.