First Steps to Try for Error: "Aborted due to an internal error or the test execution timeout."

Prev Next

Situation

During test execution, the error message "Aborted due to an internal error or the test execution timeout." is shown
Image

Resolution

1. Try again

The connection with your local device may unexpectedly disconnect after a certain period of time. Try starting mobile link again.

autify mobile link start

2. Adjust the recorder’s screen quality

Depending on your network, local environment, or device specifications, Autify may fail to retrieve the screen information from the local mobile device, resulting in an error. Decreasing the recorder’s screen quality may prevent such errors.

Run autify mobile link setup and select 2. Low in the Choose the screen quality for recording: setting.
Image

Note

This does not impact Autify’s functionality or test execution quality in any way. It simply changes how frequently the UI refreshes as you use the recorder.

3. Confirm that your IP address is stable

If your IP address changes periodically, especially during recording, the connection may drop. In such cases, please reconnect as needed.

4. Confirm your Xcode account (iOS device only)

Confirm that your Xcode account is properly configured as outlined in this document. If you don't have the necessary permissions, it will result in an error.

5. Confirm your local device's screen (iOS device only)

Ensure that the local device's screen is unlocked before running the test. If the screen is locked during test execution, an error will occur.

6. Confirm the log file (OPPO device only)

If your recording logs (e.g., recording-1234XXX-appium.log) contain the following error, the issue may be due to permission settings on your OPPO device.

"info: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE_SECURE_SETTINGS"

Try changing your device's settings as follows to resolve the problem and try recording again:

  1. Enable Developer Options on the device (external link)
  2. In the "Developer Options" or "Security" settings, both switch "Disable Permission Monitoring" to ON and switch "App Permission Monitor" to OFF.